Helge Deller 844a857bbc parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode
commit 6431e92fc827bdd2d28f79150d90415ba9ce0d21 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-17 15:13:48 +02:00
..
2022-03-11 19:49:30 +01:00
2022-03-11 19:49:30 +01:00
2021-11-01 20:05:19 -07:00
2022-01-11 11:57:37 +01:00
2020-10-15 08:10:37 +02:00
2022-05-08 20:01:12 +02:00
2022-03-11 19:49:30 +01:00
2022-03-28 17:29:53 -07:00
2022-05-08 20:01:12 +02:00
2022-03-11 19:49:30 +01:00