kernel-hacking-2024-linux-s.../arch
Bodo Stroesser 81efcd3300 [PATCH] uml: more carefully test whether we are in a system call
For security reasons, UML in is_syscall() needs to have access to code in
vsyscall-page.  The current implementation grants this access by explicitly
allowing access to vsyscall in access_ok_skas().  With this change,
copy_from_user() may be used to read the code.  Ptrace access to vsyscall-page
for debugging already was implemented in get_user_pages() by mainline.  In
i386, copy_from_user can't access vsyscall-page, but returns EFAULT.

To make UML behave as i386 does, I changed is_syscall to use
access_process_vm(current) to read the code from vsyscall-page.  This doesn't
hurt security, but simplifies the code and prepares implementation of
stub-vmas.

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-27 08:44:38 -08:00
..
alpha [PATCH] bitops: alpha: use generic bitops 2006-03-26 08:57:11 -08:00
arm [PATCH] bitops: arm: use generic bitops 2006-03-26 08:57:12 -08:00
arm26 [PATCH] bitops: arm26: use generic bitops 2006-03-26 08:57:12 -08:00
cris [PATCH] bitops: cris: use generic bitops 2006-03-26 08:57:12 -08:00
frv [PATCH] bitops: frv: use generic bitops 2006-03-26 08:57:12 -08:00
h8300 [PATCH] bitops: h8300: use generic bitops 2006-03-26 08:57:12 -08:00
i386 [PATCH] PM-Timer: don't use workaround if chipset is not buggy 2006-03-27 08:44:37 -08:00
ia64 [PATCH] bitops: ia64: make partial_page.bitmap an unsigned long 2006-03-26 08:57:15 -08:00
m32r [PATCH] bitops: m32r: use generic bitops 2006-03-26 08:57:12 -08:00
m68k [PATCH] bitops: m68k: use generic bitops 2006-03-26 08:57:12 -08:00
m68knommu [PATCH] bitops: m68knommu: use generic bitops 2006-03-26 08:57:13 -08:00
mips [PATCH] bitops: mips: use generic bitops 2006-03-26 08:57:13 -08:00
parisc [PATCH] bitops: parisc: use generic bitops 2006-03-26 08:57:14 -08:00
powerpc [PATCH] bitops: powerpc: use generic bitops 2006-03-26 08:57:14 -08:00
ppc [PATCH] ppc: fix undefined reference to hweight32 2006-03-26 08:57:13 -08:00
s390 [PATCH] bitops: s390: use generic bitops 2006-03-26 08:57:14 -08:00
sh [PATCH] bitops: sh: use generic bitops 2006-03-26 08:57:14 -08:00
sh64 [PATCH] bitops: sh64: use generic bitops 2006-03-26 08:57:14 -08:00
sparc [PATCH] bitops: sparc: use generic bitops 2006-03-26 08:57:14 -08:00
sparc64 [SPARC64]: Kill duplicate exports of string library functions. 2006-03-26 15:30:29 -08:00
um [PATCH] uml: more carefully test whether we are in a system call 2006-03-27 08:44:38 -08:00
v850 [PATCH] bitops: v850: use generic bitops 2006-03-26 08:57:14 -08:00
x86_64 [PATCH] bitops: x86_64: use generic bitops 2006-03-26 08:57:14 -08:00
xtensa [PATCH] bitops: xtensa: use generic bitops 2006-03-26 08:57:15 -08:00