linux/arch
Aleksey Gorelov 4031ff3881 [PATCH] fix broken vm86 interrupt/signal handling
Commit c3ff8ec31c ("[PATCH] i386: Don't
miss pending signals returning to user mode after signal processing")
meant that vm86 interrupt/signal handling got broken for the case when
vm86 is called from kernel space.

In this scenario, if signal is pending because of vm86 interrupt,
do_notify_resume/do_signal exits immediately due to user_mode() check,
without processing any signals.  Thus, resume_userspace handler is spinning
in a tight loop with signal pending and TIF_SIGPENDING is set.  Previously
everything worked Ok.

No in-tree usage of vm86() from kernel space exists, but I've heard
about a number of projects out there which use vm86 calls from kernel,
one of them being this, for instance:

	http://dev.gentoo.org/~spock/projects/vesafb-tng/

The following patch fixes the issue.

Signed-off-by: Aleksey Gorelov <aleksey_gorelov@phoenix.com>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-27 17:32:38 -07:00
..
alpha [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
arm [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
arm26 [PATCH] No arch-specific strpbrk implementations 2006-04-11 06:18:40 -07:00
cris [PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM 2006-06-25 10:00:55 -07:00
frv [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
h8300 [PATCH] fix incorrect SA_ONSTACK behaviour for 64-bit processes 2006-06-23 07:43:05 -07:00
i386 [PATCH] fix broken vm86 interrupt/signal handling 2006-06-27 17:32:38 -07:00
ia64 [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
m32r [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
m68k [PATCH] arch: use list_move() 2006-06-26 09:58:17 -07:00
m68knommu [PATCH] m68knommu: use configurable RAM setup in start up code 2006-06-26 10:59:07 -07:00
mips [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
parisc [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
powerpc [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
ppc [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
s390 [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
sh [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
sh64 [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
sparc [SPARC]: Add iomap interfaces. 2006-06-25 23:24:24 -07:00
sparc64 [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
um spelling fixes 2006-06-26 18:35:02 +02:00
v850 [PATCH] fix incorrect SA_ONSTACK behaviour for 64-bit processes 2006-06-23 07:43:05 -07:00
x86_64 [PATCH] x86: increase interrupt vector range 2006-06-27 17:32:37 -07:00
xtensa Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2006-06-26 11:05:15 -07:00