diff options
author | Christophe Leroy <[email protected]> | 2020-04-17 11:58:36 +0000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-04-22 20:24:02 +1000 |
commit | feb8e960d780e170e992a70491eec9dd68f4dbf2 (patch) | |
tree | f39964da6fd4d8526bdb818e915dd584087f5893 /lib/mpi | |
parent | b61c38baa98056d4802ff5be5cfb979efc2d0f7a (diff) |
powerpc/mm: Fix CONFIG_PPC_KUAP_DEBUG on PPC32
CONFIG_PPC_KUAP_DEBUG is not selectable because it depends on PPC_32
which doesn't exists.
Fixing it leads to a deadlock due to a vital register getting
clobbered in _switch().
Change dependency to PPC32 and use r0 instead of r4 in _switch()
Fixes: e2fb9f544431 ("powerpc/32: Prepare for Kernel Userspace Access Protection")
Cc: [email protected] # v5.2+
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/540242f7d4573f7cdf1b3bf46bb35f743b2cd68f.1587124651.git.christophe.leroy@c-s.fr
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions