parisc: Fix mask used to select futex spinlock
authorJohn David Anglin <dave.anglin@bell.net>
Tue, 21 Dec 2021 18:33:16 +0000 (13:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:26:02 +0000 (12:26 +0100)
commit0ffb9f83e4f6e6a8b68f926173a8d0646b57bedf
treebc6f43b9bb57a5f7ba2906ace5e47c5e53ed42e1
parent5deeb9ad598b2b3b79c8d1455a276b3d9a8bac31
parisc: Fix mask used to select futex spinlock

commit d3a5a68cff47f6eead84504c3c28376b85053242 upstream.

The address bits used to select the futex spinlock need to match those used in
the LWS code in syscall.S. The mask 0x3f8 only selects 7 bits.  It should
select 8 bits.

This change fixes the glibc nptl/tst-cond24 and nptl/tst-cond25 tests.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Fixes: 53a42b6324b8 ("parisc: Switch to more fine grained lws locks")
Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/futex.h