]> git.dujemihanovic.xyz Git - linux.git/commit
mips: fix compat_sys_lseek syscall
authorArnd Bergmann <arnd@arndb.de>
Thu, 20 Jun 2024 16:23:04 +0000 (18:23 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Jun 2024 08:16:34 +0000 (10:16 +0200)
commit0d5679a0aae2d8cda72169452c32e5cb88a7ab33
tree40c286154322b524d0770f72bb29f05632350bcf
parent4a3e37b3caea817199757a0b13aa53dd7c9376c8
mips: fix compat_sys_lseek syscall

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>
arch/mips/kernel/syscalls/syscall_o32.tbl