Christophe Leroy 3160e84aba powerpc/mm: Fix CONFIG_PPC_KUAP_DEBUG on PPC32
commit feb8e960d780e170e992a70491eec9dd68f4dbf2 upstream.

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: stable@vger.kernel.org # v5.2+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/540242f7d4573f7cdf1b3bf46bb35f743b2cd68f.1587124651.git.christophe.leroy@c-s.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:33:25 +02:00
..
2019-07-29 09:34:27 +10:00
2019-12-17 19:56:47 +01:00
2019-12-17 19:56:47 +01:00
2019-12-17 19:56:47 +01:00
2019-07-13 16:08:36 -07:00
2019-09-20 11:48:06 -07:00
2019-08-30 09:52:57 +10:00
2019-09-06 23:58:43 +02:00
2019-07-13 16:08:36 -07:00
2019-07-13 16:08:36 -07:00
2019-09-20 11:48:06 -07:00
2018-06-07 10:23:33 -07:00
2019-09-20 11:48:06 -07:00
2018-05-25 12:04:46 +10:00
2020-03-25 08:25:42 +01:00