Arnd Bergmann be7b66d360 mips: fix compat_sys_lseek syscall
[ Upstream commit 0d5679a0aae2d8cda72169452c32e5cb88a7ab33 ]

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>
2024-07-25 09:50:48 +02:00
..
2021-04-07 16:11:05 +02:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2022-02-22 09:35:49 +01:00
2022-05-19 19:30:31 +02:00
2022-02-22 09:35:49 +01:00
2022-03-28 17:29:53 -07:00
2023-06-09 10:34:14 +02:00
2023-04-27 17:46:52 -07:00
2020-05-07 11:55:47 +02:00