Files
android_kernel_xiaomi_sm8450/arch/mips/include/asm
Jiaxun Yang 7c355faad0 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 11:48:04 +02:00
..
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2020-09-07 22:25:27 +02:00
2021-03-04 11:37:41 +01:00
2020-05-22 09:09:01 +02:00
2019-10-31 15:03:10 -07:00
2024-01-25 14:37:53 -08:00
2020-05-22 09:09:01 +02:00
2019-05-22 18:45:52 -07:00
2020-05-22 09:09:01 +02:00
2020-07-28 22:49:53 +02:00
2020-05-19 17:39:32 +02:00
2019-02-04 10:56:41 -08:00
2019-02-04 10:56:41 -08:00
2020-05-22 09:10:53 +02:00
2020-05-07 11:55:47 +02:00
2019-10-31 15:03:10 -07:00
2018-08-01 13:20:15 -07:00
2023-03-11 16:40:04 +01:00
2019-04-03 10:32:54 +02:00
2020-08-12 10:57:58 -07:00
2019-10-02 14:06:41 -07:00
2019-07-25 21:45:05 -07:00
2023-03-11 16:39:45 +01:00
2020-09-07 22:25:27 +02:00
2016-05-09 12:00:02 +02:00