WSL2-Linux-Kernel/arch/parisc
Kyle McMartin 1fcbf053e5 [PATCH] sys_hpux: fix strlen_user() race
Userspace can alter the string after the kernel has run strlen_user().

Also: the strlen_user() return value includes the \0, so fix that.

Also: handle EFAULT from strlen_user().

It's unlikely anyone is using this code.  Very, very unlikely.  If I
remember correctly, CONFIG_HPUX turns this code on, but one would actually
need CONFIG_BINFMT_SOM to load a binary that could cause a problem, and
BINFMT_SOM has had an #error in it for quite some time.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-07 16:12:33 -08:00
..
configs [PARISC] Update b180_defconfig 2006-01-22 20:26:29 -05:00
hpux [PATCH] sys_hpux: fix strlen_user() race 2006-02-07 16:12:33 -08:00
kernel [PARISC] New syscalls (inotify, *at, pselect6/ppoll, migrate_pages) 2006-01-30 00:53:14 -05:00
lib [PARISC] Specify level to fix binutils level promotion bug 2005-10-21 22:56:35 -04:00
math-emu [PARISC] Fix floating point invalid exception trap handler 2006-01-22 20:26:39 -05:00
mm [PARISC] Use DEBUG_KERNEL to catch used-after-free __init data 2006-01-22 20:26:55 -05:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PARISC] Simplify DISCONTIGMEM in Kconfig 2006-01-29 19:33:40 -05:00
Kconfig.debug [PARISC] Add CONFIG_DEBUG_RODATA to protect read-only data 2006-01-22 20:26:54 -05:00
Makefile [PARISC] Update minimum compiler version and CROSS_COMPILE for parisc64 2005-10-21 22:52:00 -04:00
defconfig [PARISC] defconfig updates 2005-10-21 23:11:03 -04:00
defpalo.conf Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
install.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00