Star64_linux/arch/x86/um
Ammar Faizi 6147b62baf x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list
[ Upstream commit 5541992e51 ]

The 'syscall' instruction clobbers '%rcx' and '%r11', but they are not
listed in the inline Assembly that performs the syscall instruction.

No real bug is found. It wasn't buggy by luck because '%rcx' and '%r11'
are caller-saved registers, and not used in the functions, and the
functions are never inlined.

Add them to the clobber list for code correctness.

Fixes: f1c2bb8b99 ("um: implement a x86_64 vDSO")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 18:00:28 +08:00
..
asm um: elf.h: Fix W=1 warning for empty body in 'do' statement 2021-04-15 23:10:50 +02:00
os-Linux um: remove process stub VMA 2021-02-12 21:37:38 +01:00
shared/sysdep um: Cleanup syscall_handler_t cast in syscalls_32.h 2023-04-19 17:54:14 +08:00
vdso x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list 2023-04-19 18:00:28 +08:00
bugs_32.c
bugs_64.c
checksum_32.S x86: Prepare asm files for straight-line-speculation 2023-04-19 17:48:43 +08:00
delay.c
elfcore.c
fault.c
Kconfig
ldt.c um: Fix out-of-bounds read in LDT setup 2023-04-19 17:50:04 +08:00
Makefile x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2023-04-19 17:52:48 +08:00
mem_32.c
mem_64.c
ptrace_32.c
ptrace_64.c
ptrace_user.c
setjmp_32.S x86: Prepare asm files for straight-line-speculation 2023-04-19 17:48:43 +08:00
setjmp_64.S x86: Prepare asm files for straight-line-speculation 2023-04-19 17:48:43 +08:00
signal.c
stub_32.S um: rework userspace stubs to not hard-code stub location 2021-02-12 21:35:02 +01:00
stub_64.S um: rework userspace stubs to not hard-code stub location 2021-02-12 21:35:02 +01:00
stub_segv.c um: fix stub location calculation 2021-08-26 22:28:03 +02:00
sys_call_table_32.c x86/uml/syscalls: Remove array index from syscall initializers 2021-05-25 16:59:23 +02:00
sys_call_table_64.c x86/uml/syscalls: Remove array index from syscall initializers 2021-05-25 16:59:23 +02:00
syscalls_32.c
syscalls_64.c um: registers: Rename function names to avoid conflicts and build problems 2023-04-19 17:44:26 +08:00
sysrq_32.c
sysrq_64.c
tls_32.c um: Cleanup compiler warning in arch/x86/um/tls_32.c 2023-04-19 17:54:14 +08:00
tls_64.c
user-offsets.c