2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 17:53:56 +08:00
linux-next/arch/parisc/kernel/syscalls
Helge Deller 6431e92fc8 parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode
For all syscalls in 32-bit compat mode on 64-bit kernels the upper
32-bits of the 64-bit registers are zeroed out, so a negative 32-bit
signed value will show up as positive 64-bit signed value.

This behaviour breaks the io_pgetevents_time64() syscall which expects
signed 64-bit values for the "min_nr" and "nr" parameters.
Fix this by switching to the compat_sys_io_pgetevents_time64() syscall,
which uses "compat_long_t" types for those parameters.

Cc: <stable@vger.kernel.org> # v5.1+
Signed-off-by: Helge Deller <deller@gmx.de>
2022-08-01 18:43:24 +02:00
..
Makefile arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
syscall.tbl parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode 2022-08-01 18:43:24 +02:00