kernel_samsung_a53x/arch/x86/entry
Arnd Bergmann e0221b0a4a syscalls: fix compat_sys_io_pgetevents_time64 usage
commit d3882564a77c21eb746ba5364f3fa89b88de3d61 upstream.

Using sys_io_pgetevents() as the entry point for compat mode tasks
works almost correctly, but misses the sign extension for the min_nr
and nr arguments.

This was addressed on parisc by switching to
compat_sys_io_pgetevents_time64() in commit 6431e92fc827 ("parisc:
io_pgetevents_time64() needs compat syscall in 32-bit compat mode"),
as well as by using more sophisticated system call wrappers on x86 and
s390. However, arm64, mips, powerpc, sparc and riscv still have the
same bug.

Change all of them over to use compat_sys_io_pgetevents_time64()
like parisc already does. This was clearly the intention when the
function was originally added, but it got hooked up incorrectly in
the tables.

Cc: stable@vger.kernel.org
Fixes: 48166e6ea47d ("y2038: add 64-bit time_t syscalls to all 32-bit architectures")
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:34 +01:00
..
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-11-19 14:19:34 +01:00
vdso Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsyscall x86/mm: Remove broken vsyscall emulation code from the page fault code 2024-11-19 12:27:13 +01:00
calling.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry.S x86/bugs: Add asm helpers for executing VERW 2024-11-19 09:22:40 +01:00
entry_32.S x86/entry_32: Add VERW just before userspace transition 2024-11-19 09:22:40 +01:00
entry_64.S x86/xen: Drop USERGS_SYSRET64 paravirt call 2024-11-19 12:26:38 +01:00
entry_64_compat.S x86/entry_64: Add VERW just before userspace transition 2024-11-19 09:22:40 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_x32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thunk_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thunk_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00