android_kernel_xiaomi_sm8350/arch/um/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
..
sysdep-i386 [PATCH] uml: fix syscall stubs 2005-11-07 07:53:30 -08:00
sysdep-ia64
sysdep-ppc
sysdep-x86_64 [PATCH] uml: fix syscall stubs 2005-11-07 07:53:30 -08:00
aio.h
chan_kern.h
chan_user.h [PATCH] uml console channels: fix the API of console_write 2005-11-13 18:14:14 -08:00
choose-mode.h
common-offsets.h
elf_user.h
frame_kern.h
init.h
initrd.h
irq_kern.h
irq_user.h
kern_util.h
kern.h
line.h
mconsole_kern.h
mconsole.h
mem_kern.h
mem_user.h [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
mem.h
mode_kern.h
mode.h
net_kern.h [PATCH] missing platform_device.h includes 2005-11-01 21:50:01 -08:00
net_user.h [PATCH] uml: fix UML network driver endianness bugs 2005-11-07 07:53:30 -08:00
os.h [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
process.h
ptrace_user.h
registers.h
sigcontext.h
sigio.h
signal_kern.h
signal_user.h
skas_ptrace.h
skas_ptregs.h
syscall.h
sysrq.h
task.h
tempfile.h
time_user.h
tlb.h [PATCH] mm: uml kill unused 2005-10-29 21:40:42 -07:00
ubd_user.h
um_mmu.h
um_uaccess.h [PATCH] uml: fix access_ok 2005-11-13 18:14:15 -08:00
umid.h
uml_uaccess.h [PATCH] uml: separate libc-dependent uaccess code 2005-11-07 07:53:31 -08:00
user_util.h
user.h