]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/xor: Fix xor_xc_5() inline assembly
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 2 Mar 2026 18:03:34 +0000 (19:03 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 3 Mar 2026 15:42:14 +0000 (16:42 +0100)
commit5f25805303e201f3afaff0a90f7c7ce257468704
tree16e46f2dacb5c7d54d2903dd25df9be76dd28464
parent11439c4635edd669ae435eec308f4ab8a0804808
s390/xor: Fix xor_xc_5() inline assembly

xor_xc_5() contains a larl 1,2f that is not used by the asm and is not
declared as a clobber. This can corrupt a compiler-allocated value in %r1
and lead to miscompilation. Remove the instruction.

Fixes: 745600ed6965 ("s390/lib: Use exrl instead of ex in xor functions")
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/lib/xor.c