kernel_samsung_a53x/arch/mips
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
..
alchemy MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-11-18 12:12:48 +01:00
ar7 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath25 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath79 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm47xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmips mips: bmips: BCM6358: make sure CBR is correctly set 2024-11-19 14:19:07 +01:00
boot Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cavium-octeon Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cobalt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fw Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-11-19 11:32:44 +01:00
ingenic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jazz Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kernel syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-11-19 14:19:34 +01:00
kvm MIPS: KVM: Fix a build warning about variable set but not used 2024-11-18 12:10:56 +01:00
lantiq Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson2ef Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson64 Revert "MIPS: Loongson64: Enable DMA noncoherent support" 2024-11-18 12:12:04 +01:00
math-emu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mm mips: Fix max_mapnr being uninitialized on early stages 2024-11-18 12:13:33 +01:00
mti-malta Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netlogic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oprofile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci MIPS: Routerboard 532: Fix vendor retry check code 2024-11-19 14:19:07 +01:00
pic32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pistachio Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ralink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rb532 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip22 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip27 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip30 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-ip32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sibyte Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sni Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tools Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txx9 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vr41xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild.platforms Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Revert "MIPS: Loongson64: Enable DMA noncoherent support" 2024-11-18 12:12:04 +01:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.postlink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00