tmp_suning_uos_patched/arch/um/kernel/tt
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
..
include [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00
ptproxy Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
exec_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
exec_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gdb_kern.c [PATCH] uml: hot-unplug code cleanup 2005-06-25 16:24:36 -07:00
gdb.c [PATCH] uml: hot-unplug code cleanup 2005-06-25 16:24:36 -07:00
ksyms.c [PATCH] uml: Export clear_user_* 2005-05-20 15:48:18 -07:00
Makefile [PATCH] uml: time initialization tidying 2005-06-25 16:24:35 -07:00
mem_user.c [PATCH] uml: move libc code out of mem_user.c and tempfile.c 2005-09-17 11:50:00 -07:00
mem.c [PATCH] uml: Use CONFIG variable for address space size 2005-05-06 22:09:30 -07:00
process_kern.c [PATCH] uml: fix compile warning after consolidation patch 2005-09-21 16:16:30 -07:00
syscall_kern.c [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
syscall_user.c [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
tlb.c [PATCH] mm: uml kill unused 2005-10-29 21:40:42 -07:00
tracer.c [PATCH] uml: Fix SIGWINCH relaying 2005-05-05 16:36:36 -07:00
trap_user.c [PATCH] uml: S390 preparation, abstract host page fault data 2005-05-05 16:36:36 -07:00
uaccess_user.c [PATCH] uml: separate libc-dependent uaccess code 2005-11-07 07:53:31 -08:00
uaccess.c [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00