original_kernel/drivers
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
..
acorn
acpi
atm [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
base [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
block [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
bluetooth [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
cdrom
char [ARM] 2963/1: S3C2410 - add .owner field to device_driver 2005-10-10 10:20:06 +01:00
connector [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c
ide [PATCH] ide: Workaround PM problem 2005-10-10 08:40:47 -07:00
ieee1394 [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
infiniband [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
input
isdn
macintosh
mca
md [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
media
message
mfd [ARM] 2956/1: fix the "Fix gcc4 build errors in ucb1x00-core.c" 2005-10-10 18:22:17 +01:00
misc
mmc
mtd
net [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
nubus
oprofile
parisc
parport
pci
pcmcia [PATCH] pcmcia: fix task state at pccard thread exit 2005-10-10 08:33:27 -07:00
pnp
s390 [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
sbus
scsi [PATCH] missing include in megaraid_sas 2005-10-04 13:22:00 -07:00
serial [ARM] 2964/1: S3C2410 - serial: add .owner to driver 2005-10-10 10:20:07 +01:00
sh
sn
tc
telephony
usb [PATCH] Fix signal sending in usbdevio on async URB completion 2005-10-10 16:16:33 -07:00
video [SPARC]: Fix p9100 framebuffer in 2.6 2005-10-07 13:05:56 -07:00
w1
zorro
Kconfig
Makefile