linux-stable-rt/arch/um
Jeff Dike 0a6d3a2a38 uml: fix request->sector update
It is theoretically possible for a request to finish and be freed between
writing it to the I/O thread and updating the sector count.  In this case, the
update will dereference a freed pointer.

To avoid this, I delay the update until processing the next sg segment, when
the request pointer is known to be good.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:38 -07:00
..
drivers uml: fix request->sector update 2007-07-16 09:05:38 -07:00
include uml: remove PAGE_SIZE from libc code 2007-06-16 13:16:16 -07:00
kernel uml: get declaration of simple_strtoul 2007-06-08 17:23:33 -07:00
os-Linux uml: remove PAGE_SIZE from libc code 2007-06-16 13:16:16 -07:00
scripts
sys-i386 uml: more page fault path trimming 2007-05-07 12:13:04 -07:00
sys-ia64
sys-ppc uml: remove user_util.h 2007-05-07 12:13:01 -07:00
sys-x86_64 fix uml-x86_64 2007-05-15 18:56:37 -07:00
Kconfig uml: fix kernel stack size on x86_64 2007-06-08 17:23:33 -07:00
Kconfig.char
Kconfig.debug
Kconfig.i386
Kconfig.net
Kconfig.x86_64
Makefile
Makefile-i386
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-tt
Makefile-x86_64
config.release
defconfig uml: shrink kernel stacks 2007-05-11 08:29:34 -07:00