Harald Welte
46113830a1
[PATCH] Fix signal sending in usbdevio on async URB completion
...
If a process issues an URB from userspace and (starts to) terminate
before the URB comes back, we run into the issue described above. This
is because the urb saves a pointer to "current" when it is posted to the
device, but there's no guarantee that this pointer is still valid
afterwards.
In fact, there are three separate issues:
1) the pointer to "current" can become invalid, since the task could be
completely gone when the URB completion comes back from the device.
2) Even if the saved task pointer is still pointing to a valid task_struct,
task_struct->sighand could have gone meanwhile.
3) Even if the process is perfectly fine, permissions may have changed,
and we can no longer send it a signal.
So what we do instead, is to save the PID and uid's of the process, and
introduce a new kill_proc_info_as_uid() function.
Signed-off-by: Harald Welte <laforge@gnumonks.org>
[ Fixed up types and added symbol exports ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-10 16:16:33 -07:00
..
acpi
asm-alpha
[PATCH] slab: alpha inlining fix
2005-09-22 22:17:34 -07:00
asm-arm
[ARM] 2962/1: scoop: Allow GPIO pin suspend state to be specified
2005-10-10 10:20:06 +01:00
asm-arm26
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-cris
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-frv
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-generic
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
asm-h8300
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-i386
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
asm-ia64
[PATCH] ia64 basic __user annotations
2005-09-29 08:46:27 -07:00
asm-m32r
[PATCH] m32r: more basic __user annotations
2005-09-26 18:29:50 -07:00
asm-m68k
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-m68knommu
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-mips
[PATCH] mm: move_pte to remap ZERO_PAGE
2005-09-28 07:46:40 -07:00
asm-parisc
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-powerpc
[PATCH] ppc64: Add definitions for new PTRACE calls
2005-09-12 17:19:12 +10:00
asm-ppc
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
asm-ppc64
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
asm-s390
[PATCH] s390 signal annotations
2005-09-29 08:46:27 -07:00
asm-sh
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-sh64
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-sparc
[PATCH] fix the breakage in sparc headers
2005-10-05 07:33:42 -07:00
asm-sparc64
[SPARC64]: Kill arch/sparc64/prom/memory.c
2005-09-29 18:05:28 -07:00
asm-um
[PATCH] uml: Fix sysrq-r support for skas mode
2005-10-04 13:22:01 -07:00
asm-v850
[PATCH] Remove unused var from asm/futex.h
2005-09-21 16:16:29 -07:00
asm-x86_64
[PATCH] x86_64: Add missing () around arguments of pte_index macro
2005-09-30 08:54:38 -07:00
asm-xtensa
[PATCH] xtensa: remove io_remap_page_range and minor clean-ups
2005-09-22 22:17:37 -07:00
linux
[PATCH] Fix signal sending in usbdevio on async URB completion
2005-10-10 16:16:33 -07:00
math-emu
media
[PATCH] v4l: tveeprom improved to support newer Hauppage cards
2005-09-09 13:57:54 -07:00
mtd
net
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
pcmcia
[PATCH] yenta: auto-tune EnE bridges for CardBus cards
2005-09-26 13:09:20 +02:00
rdma
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
rxrpc
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
scsi
[SCSI] allow REPORT LUN scanning even for LUN 0 PQ of 3
2005-09-25 12:01:48 -05:00
sound
[PATCH] gfp flags annotations - part 1
2005-10-08 15:00:57 -07:00
video
[PATCH] drivers/video: Replace custom macro with isdigit()
2005-09-13 08:22:33 -07:00