android_kernel_xiaomi_sm8350/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 [ARM] Fix pcf8583 to build 2005-09-20 21:01:13 +01:00
acpi [PATCH] remove ACPI S4bios support 2005-09-10 10:06:35 -07:00
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 [PATCH] drivers/cdrom: fix-up schedule_timeout() usage 2005-09-10 10:06:38 -07:00
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 [PATCH] dell_rbu tidy 2005-09-17 11:50:02 -07:00
hwmon [PATCH] hdaps: small update. 2005-09-22 22:17:34 -07:00
i2c [PATCH] ppc64: SMU driver update & i2c support 2005-09-22 22:17:35 -07:00
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 [PATCH] Input: check switch bitmap when matching handlers 2005-09-24 10:44:25 -07:00
isdn [PATCH] proc_mkdir() should be used to create procfs directories 2005-09-29 08:46:26 -07:00
macintosh [PATCH] Fix ppc64 smu driver locking 2005-09-29 15:42:58 -07:00
mca
md [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
media [PATCH] v4l: DViCO FusionHDTV5 Lite GPIO Fix 2005-09-30 12:41:18 -07:00
message [PATCH] Fix I2O config-osm init to return proper error 2005-09-21 10:11:54 -07:00
mfd [ARM] 2956/1: fix the "Fix gcc4 build errors in ucb1x00-core.c" 2005-10-10 18:22:17 +01:00
misc [PATCH] hdpu_cpustate.c: misc_register() can fail 2005-09-10 10:06:25 -07:00
mmc [MMC] Clean up wbsd detection handling 2005-09-12 20:36:19 +01:00
mtd Merge master.kernel.org:/home/rmk/linux-2.6-arm 2005-09-30 08:39:56 -07:00
net [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
nubus
oprofile
parisc [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl 2005-10-03 14:35:55 -07:00
parport [PATCH] parport: fix-up schedule_timeout() usage 2005-09-10 10:06:38 -07:00
pci [PATCH] pci: fixup parent subordinate busnr 2005-09-23 08:05:16 -07:00
pcmcia [PATCH] pcmcia: fix task state at pccard thread exit 2005-10-10 08:33:27 -07:00
pnp Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
s390 [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
sbus [PATCH] Remove unnecessary check_region references in comments 2005-09-13 08:22:29 -07:00
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 [PATCH] Remove unnecessary check_region references in comments 2005-09-13 08:22:29 -07:00
telephony [PATCH] telephony: fix-up schedule_timeout() usage 2005-09-10 10:06:39 -07:00
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 [PATCH] crc16: remove w1 specific comments. 2005-09-12 12:35:17 -07:00
zorro
Kconfig [NET]: Add netlink connector. 2005-09-11 19:15:07 -07:00
Makefile [NET]: Add netlink connector. 2005-09-11 19:15:07 -07:00