summaryrefslogtreecommitdiff
path: root/fs/hfs
diff options
context:
space:
mode:
authorBalbir Singh <bsingharora@gmail.com>2017-06-29 14:57:26 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-10 14:07:38 +0300
commit1e2a516e89fc412a754327522ab271b42f99c6b4 (patch)
tree91c3b77eebf85145f24f06ccc30adae85462bf3b /fs/hfs
parentaf3c8d98508d37541d4bf57f13a984a7f73a328c (diff)
downloadlinux-1e2a516e89fc412a754327522ab271b42f99c6b4.tar.xz
powerpc/kexec: Fix radix to hash kexec due to IAMR/AMOR
This patch fixes a crash seen while doing a kexec from radix mode to hash mode. Key 0 is special in hash and used in the RPN by default, we set the key values to 0 today. In radix mode key 0 is used to control supervisor<->user access. In hash key 0 is used by default, so the first instruction after the switch causes a crash on kexec. Commit 3b10d0095a1e ("powerpc/mm/radix: Prevent kernel execution of user space") introduced the setting of IAMR and AMOR values to prevent execution of user mode instructions from supervisor mode. We need to clean up these SPR's on kexec. Fixes: 3b10d0095a1e ("powerpc/mm/radix: Prevent kernel execution of user space") Cc: stable@vger.kernel.org # v4.10+ Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions