tmp_suning_uos_patched/arch/x86/um
Daniel Borkmann b485342bd7 x86, um: actually mark system call tables readonly
Commit a074335a37 ("x86, um: Mark system call tables readonly") was
supposed to mark the sys_call_table in UML as RO by adding the const,
but it doesn't have the desired effect as it's nevertheless being placed
into the data section since __cacheline_aligned enforces sys_call_table
being placed into .data..cacheline_aligned instead. We need to use
the ____cacheline_aligned version instead to fix this issue.

Before:

$ nm -v arch/x86/um/sys_call_table_64.o | grep -1 "sys_call_table"
                 U sys_writev
0000000000000000 D sys_call_table
0000000000000000 D syscall_table_size

After:

$ nm -v arch/x86/um/sys_call_table_64.o | grep -1 "sys_call_table"
                 U sys_writev
0000000000000000 R sys_call_table
0000000000000000 D syscall_table_size

Fixes: a074335a37 ("x86, um: Mark system call tables readonly")
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2015-01-04 14:21:25 +01:00
..
asm arch: Add lightweight memory barriers dma_rmb() and dma_wmb() 2014-12-11 21:15:06 -05:00
os-Linux
shared/sysdep
vdso x86, vdso: Clean up 32-bit vs 64-bit vdso params 2014-05-05 13:18:40 -07:00
bug.c
bugs_32.c
bugs_64.c
checksum_32.S um: remove csum_partial_copy_generic_i386 to clean up exception table 2014-10-13 17:15:02 +02:00
delay.c
elfcore.c switch elf_core_write_extra_data() to dump_emit() 2013-11-09 00:16:23 -05:00
fault.c
Kconfig arch/um: make it work with defconfig and x86_64 2013-11-17 11:31:48 +01:00
ksyms.c
ldt.c
Makefile
mem_32.c
mem_64.c arm64,ia64,ppc,s390,sh,tile,um,x86,mm: remove default gate area 2014-08-08 15:57:27 -07:00
ptrace_32.c
ptrace_64.c
ptrace_user.c
setjmp_32.S
setjmp_64.S
signal.c um: Use get_signal() signal_setup_done() 2014-08-06 13:03:41 +02:00
stub_32.S
stub_64.S
stub_segv.c
sys_call_table_32.c x86, um: actually mark system call tables readonly 2015-01-04 14:21:25 +01:00
sys_call_table_64.c x86, um: actually mark system call tables readonly 2015-01-04 14:21:25 +01:00
syscalls_64.c
sysrq_32.c um: Rewrite show_stack() 2013-11-17 11:27:25 +01:00
sysrq_64.c um: Rewrite show_stack() 2013-11-17 11:27:25 +01:00
tls_32.c
tls_64.c
user-offsets.c