android_kernel_xiaomi_sm8350/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
asm-offsets.c kbuild: um fix so it compile with generic asm-offsets.h support 2005-09-09 23:10:54 +02:00
config.c.in
dyn.lds.S [PATCH] i386 / uml: add dwarf sections to static link script 2005-09-10 12:00:17 -07:00
exec_kern.c [PATCH] uml: remove 2_5compat.h 2005-05-28 16:46:11 -07:00
exitcode.c [PATCH] uml: Clean up prink calls 2005-07-28 21:46:05 -07:00
gmon_syms.c
gprof_syms.c
init_task.c [PATCH] uml: move libc code out of mem_user.c and tempfile.c 2005-09-17 11:50:00 -07:00
initrd.c
irq_user.c [PATCH] uml: add and use generic hw_controller_type->release 2005-06-21 19:07:32 -07:00
irq.c [PATCH] useless linux/irq.h includes (arch/um) 2005-09-30 08:42:24 -07:00
ksyms.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
Makefile [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 [PATCH] Don't export machine_restart, machine_halt, or machine_power_off. 2005-07-26 14:35:42 -07:00
resource.c
sigio_kern.c
sigio_user.c [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
signal_kern.c [PATCH] convert signal handling of NODEFER to act like other Unix boxes. 2005-08-29 10:03:11 -07:00
signal_user.c
smp.c
syscall_kern.c [PATCH] uml: fork cleanup 2005-06-25 16:24:35 -07:00
syscall.c [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
sysrq.c [PATCH] uml: Fix sysrq-r support for skas mode 2005-10-04 13:22:01 -07:00
time_kern.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
time.c [PATCH] uml: Proper clone support for skas0 2005-07-07 18:23:44 -07:00
tlb.c [PATCH] uml: fix condition in tlb flush 2005-09-22 22:17:36 -07:00
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 [PATCH] uml: remove debugging code from page fault path 2005-09-05 00:06:19 -07:00
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 [PATCH] strlcat: use for uml umid.c 2005-09-22 22:17:36 -07:00
uml.lds.S [PATCH] i386 / uml: add dwarf sections to static link script 2005-09-10 12:00:17 -07:00
user_util.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
vmlinux.lds.S