linux/drivers
Jens Axboe 4a534f93b3 [PATCH] possible use-after-free of bio
There is a possibility that a bio will be accessed after it has been freed
on SCSI.  It happens if you submit a bio with BIO_SYNC marked and the
auto-unplugging kicks the request_fn, SCSI re-enables interrupts in-between
so if the request completes between the add_request() in __make_request()
and the bio_sync() call, we could be looking at a dead bio.  It's a slim
race, but it has been triggered in the Real World.

So assign bio_sync() to a local variable instead.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-16 15:25:40 -07:00
..
acorn Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
acpi Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
base [PATCH] pm_message_t: more fixes in common and i386 2005-04-16 15:25:24 -07:00
block [PATCH] possible use-after-free of bio 2005-04-16 15:25:40 -07:00
bluetooth Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cdrom Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
char [PATCH] Fix u32 vs. pm_message_t in drivers/char 2005-04-16 15:25:24 -07:00
cpufreq Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crypto Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dio Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
eisa Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fc4 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
firmware Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i2c [PATCH] i2c-i801: I2C patch for Intel ESB2 2005-04-16 15:24:45 -07:00
ide [PATCH] fix u32 vs. pm_message_t in rest of the tree 2005-04-16 15:25:37 -07:00
ieee1394 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
infiniband Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
input Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isdn Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
macintosh [PATCH] fix few remaining u32 vs. pm_message_t problems 2005-04-16 15:25:38 -07:00
mca Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
md [PATCH] Avoid deadlock in sync_page_io by using GFP_NOIO 2005-04-16 15:23:54 -07:00
media [PATCH] fix u32 vs. pm_message_t in drivers/media 2005-04-16 15:25:27 -07:00
message [PATCH] fix u32 vs. pm_message_t in drivers/message 2005-04-16 15:25:28 -07:00
misc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmc [PATCH] fix u32 vs. pm_message_t in drivers/mmc,mtd,scsi 2005-04-16 15:25:29 -07:00
mtd [PATCH] fix u32 vs. pm_message_t in drivers/mmc,mtd,scsi 2005-04-16 15:25:29 -07:00
net [PATCH] u32 vs. pm_message_t fixes for drivers/net 2005-04-16 15:25:25 -07:00
nubus Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
parisc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
parport Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci [PATCH] fix u32 vs. pm_message_t in PCI, PCIE 2005-04-16 15:25:33 -07:00
pcmcia [PATCH] fix u32 vs. pm_message_t in pcmcia 2005-04-16 15:25:26 -07:00
pnp Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
s390 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbus Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi [PATCH] fix u32 vs. pm_message_t in drivers/mmc,mtd,scsi 2005-04-16 15:25:29 -07:00
serial [PATCH] fix u32 vs. pm_message_t in drivers/ 2005-04-16 15:25:35 -07:00
sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sn Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
telephony Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usb Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
video [PATCH] fix u32 vs. pm_message_t in driver/video 2005-04-16 15:25:36 -07:00
w1 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zorro Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00