linux-yocto/arch/s390/include
Heiko Carstens 2eb70a0b5b s390/futex: Fix FUTEX_OP_ANDN implementation
commit 26701574ce upstream.

The futex operation FUTEX_OP_ANDN is supposed to implement

*(int *)UADDR2 &= ~OPARG;

The s390 implementation just implements an AND instead of ANDN.
Add the missing bitwise not operation to oparg to fix this.

This is broken since nearly 19 years, so it looks like user space is
not making use of this operation.

Fixes: 3363fbdd6f ("[PATCH] s390: futex atomic operations")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-21 13:49:38 +01:00
..
asm s390/futex: Fix FUTEX_OP_ANDN implementation 2025-02-21 13:49:38 +01:00
uapi/asm s390/dasd: add autoquiesce feature 2024-03-26 18:20:28 -04:00