android_kernel_xiaomi_sm8350/arch/um/kernel/skas
Paolo 'Blaisorblade' Giarrusso 275e6e1ee2 [PATCH] uml: fix compilation and execution with hardened GCC
To make some half-assembly stubs compile, disable various "hardened" GCC
features:

*) we can't make it build PIC code as we need %ebx to do syscalls and GCC
   wants it free for PIC

*) we can't leave stack protection as the stub is moved (not relocated!) in
   memory so the RIP-relative access to the canary tries reading from an
   unmapped address and causes a segfault, since we move the stub of various
   megabytes (the exact amount will be decided at runtime) away from the
   link-time address.

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>
2006-05-01 18:17:45 -07:00
..
clone.c [PATCH] uml skas0: stop gcc's insanity 2005-12-18 11:19:44 -08:00
exec_kern.c [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
Makefile [PATCH] uml: fix compilation and execution with hardened GCC 2006-05-01 18:17:45 -07:00
mem.c [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
mmu.c [PATCH] uml: move LDT creation 2006-01-18 19:20:18 -08:00
process_kern.c [PATCH] uml: add arch_switch_to for newly forked thread 2006-03-31 12:18:52 -08:00
syscall.c [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
tlb.c [PATCH] uml: skas0 stubs now check system call return values 2005-09-05 00:06:24 -07:00
uaccess.c [PATCH] uml: move libc-dependent utility procedures 2006-01-18 19:20:19 -08:00