diff options
author | Helge Deller <deller@gmx.de> | 2023-08-13 22:11:19 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-14 09:54:49 +0200 |
commit | 7a894c87374771f3cfb1b8e5453fbe03f1fb8135 (patch) | |
tree | cbc33d9cdc7db86d67970edc18cd1e2d90c837fb /crypto/ecrdsa.c | |
parent | 2ccdd1b13c591d306f0401d98dedc4bdcd02b421 (diff) |
parisc: Fix CONFIG_TLB_PTLOCK to work with lightweight spinlock checks
For the TLB_PTLOCK checks we used an optimization to store the spc
register into the spinlock to unlock it. This optimization works as
long as the lightweight spinlock checks (CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK)
aren't enabled, because they really check if the lock word is zero or
__ARCH_SPIN_LOCK_UNLOCKED_VAL and abort with a kernel crash
("Spinlock was trashed") otherwise.
Drop that optimization to make it possible to activate both checks
at the same time.
Noticed-by: Sam James <sam@gentoo.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Sam James <sam@gentoo.org>
Cc: stable@vger.kernel.org # v6.4+
Fixes: 15e64ef6520e ("parisc: Add lightweight spinlock checks")
Diffstat (limited to 'crypto/ecrdsa.c')
0 files changed, 0 insertions, 0 deletions