sst-linux/arch/s390
Heiko Carstens d09cf51421 s390/traps: Fix test_monitor_call() inline assembly
commit 5623bc23a1cb9f9a9470fa73b3a20321dc4c4870 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:53:15 +01:00
..
appldata
boot
configs
crypto
hypfs
include s390/futex: Fix FUTEX_OP_ANDN implementation 2025-02-21 13:49:38 +01:00
kernel s390/traps: Fix test_monitor_call() inline assembly 2025-03-13 12:53:15 +01:00
kvm KVM: s390: vsie: fix some corner-cases when grabbing vsie pages 2025-02-21 13:49:39 +01:00
lib
mm
net
pci
purgatory s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS 2025-02-21 13:49:28 +01:00
tools
Kbuild
Kconfig
Kconfig.debug
Makefile s390: Add '-std=gnu11' to decompressor and purgatory CFLAGS 2025-02-21 13:49:28 +01:00