Jiaxun Yang f91955da81 MIPS: scall: Save thread_info.syscall unconditionally on entry
[ Upstream commit 4370b673ccf240bf7587b0cb8e6726a5ccaf1f17 ]

thread_info.syscall is used by syscall_get_nr to supply syscall nr
over a thread stack frame.

Previously, thread_info.syscall is only saved at syscall_trace_enter
when syscall tracing is enabled. However rest of the kernel code do
expect syscall_get_nr to be available without syscall tracing. The
previous design breaks collect_syscall.

Move saving process to syscall entry to fix it.

Reported-by: Xi Ruoyao <xry111@xry111.site>
Link: https://github.com/util-linux/util-linux/issues/2867
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 12:02:15 +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