linux-stable/arch/mips
Jiaxun Yang b6628a94f7 MIPS: scall: Save thread_info.syscall unconditionally on entry
[ Upstream commit 4370b673cc ]

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:14:45 +02:00
..
alchemy MIPS: Alchemy: Fix missing prototypes 2024-01-22 10:32:36 +01:00
ath25
ath79 MIPS: ath79: remove obsolete ATH79_DEV_* configs 2023-03-17 10:28:04 +01:00
bcm47xx MIPS: Fix typos 2024-01-08 10:39:12 +01:00
bcm63xx MIPS: BCM63XX: Fix missing prototypes 2024-01-26 10:33:20 +01:00
bmips MIPS: Explicitly include correct DT includes 2023-07-25 10:42:01 +02:00
boot Just cleanups and fixes 2024-01-17 11:20:50 -08:00
cavium-octeon Just cleanups and fixes 2024-01-17 11:20:50 -08:00
cobalt MIPS: Cobalt: Fix missing prototypes 2024-01-22 10:32:21 +01:00
configs vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
crypto crypto: mips/crc32 - remove redundant setting of alignmask to 0 2023-10-27 18:04:24 +08:00
dec
fw MIPS: fw arc: Fix missing prototypes 2024-01-22 11:12:01 +01:00
generic mips: ingenic: Enable EXT/2 divider on JZ4750/55/60 if EXT is 24 MHz 2023-06-09 09:54:17 +02:00
include MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 12:14:45 +02:00
ingenic
jazz vgacon, arch/*: remove unused screen_info definitions 2023-10-17 10:17:02 +02:00
kernel MIPS: scall: Save thread_info.syscall unconditionally on entry 2024-05-17 12:14:45 +02:00
kvm Generic: 2024-01-17 13:03:37 -08:00
lantiq MIPS: lantiq: register smp_ops on non-smp platforms 2024-01-26 10:36:21 +01:00
lib mips: implement xor_unlock_is_negative_byte 2023-10-18 14:34:17 -07:00
loongson2ef MIPS: Fix typos 2024-01-08 10:39:12 +01:00
loongson32 MIPS: loongson32: Remove dma.h and nand.h 2023-10-06 10:10:13 +02:00
loongson64 MIPS: loongson64: set nid for reserved memblock region 2024-01-27 11:07:57 +01:00
math-emu MIPS: Fix comment typo 2022-09-12 15:33:24 +02:00
mm IOMMU Updates for Linux v6.8 2024-01-18 15:16:57 -08:00
mti-malta vgacon: clean up global screen_info instances 2023-10-17 10:17:02 +02:00
n64
net MIPS: Fix typos 2024-01-08 10:39:12 +01:00
pci Just cleanups and fixes 2024-01-17 11:20:50 -08:00
pic32 MIPS: Fixup explicit DT include clean-up 2023-07-28 11:41:09 +02:00
power mips: suspend: include linux/suspend.h as needed 2023-12-10 17:21:41 -08:00
ralink MIPS: Fix typos 2024-01-08 10:39:12 +01:00
rb532
sgi-ip22 driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
sgi-ip27 MIPS: sgi-ip27: Fix missing prototypes 2024-01-22 11:11:49 +01:00
sgi-ip30 MIPS: sgi-ip30: Fix missing prototypes 2024-01-22 11:12:08 +01:00
sgi-ip32 MIPS: sgi-ip32: Fix missing prototypes 2024-01-22 11:12:19 +01:00
sibyte vgacon: fix mips/sibyte build regression 2023-10-24 08:54:37 +02:00
sni vgacon: clean up global screen_info instances 2023-10-17 10:17:02 +02:00
tools
txx9 MIPS: Fix typos 2024-01-08 10:39:12 +01:00
vdso arch: vdso: consolidate gettime prototypes 2023-11-23 11:32:32 +01:00
Kbuild arch: turn off -Werror for architectures with known warnings 2023-12-10 17:21:33 -08:00
Kbuild.platforms MIPS: AR7: remove platform 2023-10-19 10:39:46 +02:00
Kconfig MIPS: Loongson64: Enable DMA noncoherent support 2023-12-05 18:45:14 +01:00
Kconfig.debug
Makefile Revert MIPS: Loongson: Fix build error when make modules_install 2023-07-25 10:42:01 +02:00
Makefile.postlink kbuild: remove ARCH_POSTLINK from module builds 2023-10-28 21:10:08 +09:00