mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
275e6e1ee2
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> |
||
---|---|---|
.. | ||
bugs.c | ||
checksum.S | ||
delay.c | ||
fault.c | ||
ksyms.c | ||
ldt.c | ||
Makefile | ||
ptrace_user.c | ||
ptrace.c | ||
sigcontext.c | ||
signal.c | ||
stub_segv.c | ||
stub.S | ||
sys_call_table.S | ||
syscalls.c | ||
sysrq.c | ||
tls.c | ||
unmap.c | ||
user-offsets.c |