original_kernel/arch/um/kernel
Paolo 'Blaisorblade' Giarrusso 7a590611c0 [PATCH] uml: fix access_ok
The access_ok_tt() macro is bogus, in that a read access is unconditionally
considered valid.

I couldn't find in SCM logs the introduction of this check, but I went back to
2.4.20-1um and the definition was the same.

Possibly this was done to avoid problems with missing set_fs() calls, but
there can't be any I think because they would fail with SKAS mode.
TT-specific code is still to check.

Also, this patch joins common code together, and makes the "address range
wrapping" check happen for all cases, rather than for only some.

This may, possibly, be reoptimized at some time, but the current code doesn't
seem clever, just confused.

* Important: I've also had to change references to access_ok_{tt,skas} back to
  access_ok - the kernel wasn't that happy otherwise.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-13 18:14:15 -08:00
..
skas [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00
tt [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00
Makefile [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
asm-offsets.c
config.c.in
dyn.lds.S
exec_kern.c
exitcode.c
gmon_syms.c
gprof_syms.c
init_task.c
initrd.c
irq.c
irq_user.c
ksyms.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
mem.c [PATCH] uml: fix hardcoded ZONE_* constants in zone setup 2005-11-07 07:53:32 -08:00
physmem.c [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
process_kern.c [PATCH] mm: uml pte atomicity 2005-10-29 21:40:42 -07:00
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
reboot.c
resource.c
sigio_kern.c
sigio_user.c [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
signal_kern.c
signal_user.c
smp.c
syscall.c
syscall_kern.c
sysrq.c
time.c
time_kern.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
tlb.c
trap_kern.c [PATCH] uml: remove bogus WARN_ON, triggerable harmlessly on a page fault race 2005-11-13 18:14:14 -08:00
trap_user.c
tty_log.c
uaccess.c [PATCH] uml: separate libc-dependent uaccess code 2005-11-07 07:53:31 -08:00
um_arch.c [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
umid.c
uml.lds.S
user_util.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
vmlinux.lds.S