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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
elfcore.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fault.c
Kconfig kbuild: use KBUILD_DEFCONFIG as the fallback for DEFCONFIG_LIST 2020-03-03 20:49:21 +09:00
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mem_64.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 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 signal: Remove task parameter from force_sig 2019-05-27 09:36:28 -05:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h> 2017-03-02 08:42:34 +01:00
sysrq_64.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h> 2017-03-02 08:42:34 +01:00
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 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