OpenCloudOS-Kernel/arch/arm64
Arnd Bergmann e04886b50c 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 6431e92fc8 ("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: 48166e6ea4 ("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-07-05 09:34:04 +02:00
..
boot arm64: dts: imx8qm-mek: fix gpio number for reg_usdhc2_vmmc 2024-06-27 13:49:13 +02:00
configs arm64: defconfig: enable the vf610 gpio driver 2024-06-27 13:49:10 +02:00
crypto crypto: arm64/neonbs - fix out-of-bounds access on short input 2024-03-06 14:48:40 +00:00
hyperv arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing 2023-06-17 23:09:47 +00:00
include syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-07-05 09:34:04 +02:00
kernel randomize_kstack: Remove non-functional per-arch entropy filtering 2024-07-05 09:33:54 +02:00
kvm KVM: arm64: Disassociate vcpus from redistributor region on teardown 2024-06-27 13:49:11 +02:00
lib arm64 fixes for -rc1 2023-09-08 12:48:37 -07:00
mm arm64: hibernate: Fix level3 translation fault in swsusp_save() 2024-04-27 17:11:41 +02:00
net bpf, arm64: Fix incorrect runtime stats 2024-05-17 12:02:01 +02:00
tools arm64: Rename ARM64_WORKAROUND_2966298 2024-01-31 16:18:55 -08:00
xen
Kbuild
Kconfig arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang 2024-03-26 18:19:53 -04:00
Kconfig.debug
Kconfig.platforms STM32 STM32MP25 for v6.5, round 1 2023-06-20 22:28:44 +02:00
Makefile kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00