linux/arch/mips/kernel/syscalls
Arnd Bergmann be7b66d360 mips: fix compat_sys_lseek syscall
[ Upstream commit 0d5679a0aa ]

This is almost compatible, but passing a negative offset should result
in a EINVAL error, but on mips o32 compat mode would seek to a large
32-bit byte offset.

Use compat_sys_lseek() to correctly sign-extend the argument.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-07-25 09:50:48 +02:00
..
Makefile arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
syscall_n32.tbl syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-07-05 09:34:04 +02:00
syscall_n64.tbl arch: Register fchmodat2, usually as syscall 452 2023-07-27 12:25:35 +02:00
syscall_o32.tbl mips: fix compat_sys_lseek syscall 2024-07-25 09:50:48 +02:00
syscallnr.sh mips: syscalls: define syscall offsets directly in <asm/unistd.h> 2021-06-01 11:17:24 +02:00