Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc/powermac: Fix low_sleep_handler with KUAP and KUEP
commit 2c637d2 upstream. low_sleep_handler() has an hardcoded restore of segment registers that doesn't take KUAP and KUEP into account. Use head_32's load_segment_registers() routine instead. Fixes: a68c31f ("powerpc/32s: Implement Kernel Userspace Access Protection") Fixes: 31ed2b1 ("powerpc/32s: Implement Kernel Userspace Execution Prevention.") Cc: stable@vger.kernel.org Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/21b05f7298c1b18f73e6e5b4cd5005aafa24b6da.1599820109.git.christophe.leroy@csgroup.eu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information