android_kernel_xiaomi_sm8350/arch/um/kernel/tt/include
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
..
debug.h [PATCH] uml: hot-unplug code cleanup 2005-06-25 16:24:36 -07:00
mmu-tt.h
mode_kern-tt.h [PATCH] uml: _switch_to code consolidation 2005-09-17 11:49:59 -07:00
mode-tt.h [PATCH] uml: time initialization tidying 2005-06-25 16:24:35 -07:00
tt.h
uaccess-tt.h [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00