linux-stable/arch
Heiko Carstens 03f075d560 s390/traps: Fix test_monitor_call() inline assembly
commit 5623bc23a1 upstream.

The test_monitor_call() inline assembly uses the xgr instruction, which
also modifies the condition code, to clear a register. However the clobber
list of the inline assembly does not specify that the condition code is
modified, which may lead to incorrect code generation.

Use the lhi instruction instead to clear the register without that the
condition code is modified. Furthermore this limits clearing to the lower
32 bits of val, since its type is int.

Fixes: 17248ea036 ("s390: fix __EMIT_BUG() macro")
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-13 12:51:03 +01:00
..
alpha alpha: replace hardcoded stack offsets with autogenerated ones 2025-03-13 12:50:45 +01:00
arc
arm ARM: dts: dra7: Add bus_dma_limit for l4 cfg bus 2025-03-13 12:50:46 +01:00
arm64 arm64: dts: mediatek: mt8183: Disable DSI display output by default 2025-03-13 12:50:49 +01:00
csky
h8300
hexagon hexagon: Fix unbalanced spinlock in die() 2025-03-13 12:50:14 +01:00
ia64
m68k m68k: vga: Fix I/O defines 2025-03-13 12:50:23 +01:00
microblaze
mips MIPS: ftrace: Declare ftrace_get_parent_ra_addr() as static 2025-03-13 12:50:33 +01:00
nds32
nios2
openrisc
parisc
powerpc powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC 2025-03-13 12:50:52 +01:00
riscv
s390 s390/traps: Fix test_monitor_call() inline assembly 2025-03-13 12:51:03 +01:00
sh
sparc
um
x86 x86/cpu: Properly parse CPUID leaf 0x2 TLB descriptor 0x63 2025-03-13 12:51:02 +01:00
xtensa
.gitignore
Kconfig