linux/arch/powerpc
Cameron Kaiser 24ce099a53 KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR
[ Upstream commit 1006284c5e ]

When an OS (currently only classic Mac OS) is running in KVM-PR and makes a
linked jump from code with split hack addressing enabled into code that does
not, LR is not correctly updated and reflects the previously munged PC.

To fix this, this patch undoes the address munge when exiting split
hack mode so that code relying on LR being a proper address will now
execute. This does not affect OS X or other operating systems running
on KVM-PR.

Signed-off-by: Cameron Kaiser <spectre@floodgap.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-24 08:20:15 +01:00
..
boot libfdt: Ensure INT_MAX is defined in libfdt_env.h 2019-11-20 18:47:00 +01:00
configs powerpc/mm/radix: Make Radix require HUGETLB_PAGE 2019-05-02 09:58:55 +02:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include powerpc: Fix duplicate const clang warning in user access code 2019-11-20 18:46:59 +01:00
kernel powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer 2019-11-24 08:20:09 +01:00
kvm KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR 2019-11-24 08:20:15 +01:00
lib powerpc/64: Fix memcmp reading past the end of src/dest 2019-04-03 06:26:29 +02:00
math-emu
mm powerpc/64s/radix: Explicitly flush ERAT with local LPID invalidation 2019-11-24 08:20:09 +01:00
net powerpc/bpf: use unsigned division instruction for 64-bit operations 2019-06-25 11:36:00 +08:00
oprofile treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
perf powerpc/perf: Fix MMCRA corruption by bhrb_filter 2019-06-09 09:17:17 +02:00
platforms powerpc/pseries: Fix how we iterate over the DTL entries 2019-11-24 08:19:53 +01:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc/xive: Move a dereference below a NULL test 2019-11-24 08:19:53 +01:00
tools powerpc: Add a checkpatch wrapper with our preferred settings 2018-08-07 21:49:25 +10:00
xmon powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL 2019-10-07 18:56:48 +02:00
Kconfig powerpc: disable support for relative ksymtab references 2018-08-29 16:12:07 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile powerpc: avoid -mno-sched-epilog on GCC 4.9 and newer 2019-01-13 09:51:05 +01:00
Makefile.postlink