android_kernel_google_msm/arch/x86/um
Daniel Borkmann acc0b23411 x86, um: actually mark system call tables readonly
commit b485342bd79af363c77ef1a421c4a0aef2de9812 upstream.

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>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-04-14 17:33:49 +08:00
..
asm um: Use asm-generic/switch_to.h 2012-04-10 00:13:45 +02:00
os-Linux
shared/sysdep uml: fix compile for x86-64 2012-01-18 19:26:11 -08:00
vdso coredump: remove VM_ALWAYSDUMP flag 2012-03-23 16:58:42 -07:00
Kconfig um: allow SUBARCH=x86 2012-03-25 00:29:56 +01:00
Makefile x86, um: Use the same style generated syscall tables as native 2011-12-05 16:08:49 -08:00
bug.c
bugs_32.c um: kill HOST_TASK_PID 2012-03-25 00:29:55 +01:00
bugs_64.c
checksum_32.S
delay.c
elfcore.c
fault.c
ksyms.c
ldt.c
mem_32.c coredump: remove VM_ALWAYSDUMP flag 2012-03-23 16:58:42 -07:00
mem_64.c
ptrace_32.c
ptrace_64.c
ptrace_user.c
setjmp_32.S
setjmp_64.S
signal.c
stub_32.S
stub_64.S
stub_segv.c
sys_call_table_32.c x86, um: actually mark system call tables readonly 2015-04-14 17:33:49 +08:00
sys_call_table_64.c x86, um: actually mark system call tables readonly 2015-04-14 17:33:49 +08:00
syscalls_32.c
syscalls_64.c
sysrq_32.c
sysrq_64.c
tls_32.c
tls_64.c
user-offsets.c x32: Add x32 system calls to syscall/syscall_64.tbl 2012-02-20 12:48:49 -08:00