linux-stable/arch/x86/um
Ammar Faizi 8ba6b0fade 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-03-11 13:57:26 +01: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 2022-10-12 09:53:27 +02:00
vdso x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list 2023-03-11 13:57:26 +01:00
Kconfig kbuild: use KBUILD_DEFCONFIG as the fallback for DEFCONFIG_LIST 2020-03-03 20:49:21 +09:00
Makefile x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-17 14:24:15 +02:00
bugs_32.c
bugs_64.c
checksum_32.S x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
delay.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
elfcore.c
fault.c
ldt.c um: Fix out-of-bounds read in LDT setup 2022-06-09 10:23:27 +02:00
mem_32.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mem_64.c
ptrace_32.c
ptrace_64.c um: Remove dead usage of TIF_IA32 2020-10-11 23:19:36 +02:00
ptrace_user.c
setjmp_32.S x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
setjmp_64.S x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02: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 2022-01-27 11:04:48 +01:00
sysrq_32.c
sysrq_64.c
tls_32.c um: Cleanup compiler warning in arch/x86/um/tls_32.c 2022-10-12 09:53:27 +02:00
tls_64.c um: Implement copy_thread_tls 2020-01-07 13:31:29 +01:00
user-offsets.c um: Some fixes to build UML with musl 2020-10-11 23:13:06 +02:00