Commit 32a82067 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/powermac: Blacklist functions running with MMU disabled for kprobe

kprobe does not handle events happening in real mode, all
functions running with MMU disabled have to be blacklisted.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Acked-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/6316e8883753499073f47301857e4e88b73c3ddd.1585670437.git.christophe.leroy@c-s.fr
parent 7aa85127
...@@ -184,6 +184,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC) ...@@ -184,6 +184,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
mtlr r10 mtlr r10
blr blr
_ASM_NOKPROBE_SYMBOL(flush_disable_75x)
/* This code is for 745x processors */ /* This code is for 745x processors */
flush_disable_745x: flush_disable_745x:
...@@ -351,4 +352,5 @@ END_FTR_SECTION_IFSET(CPU_FTR_L3CR) ...@@ -351,4 +352,5 @@ END_FTR_SECTION_IFSET(CPU_FTR_L3CR)
mtmsr r11 /* restore DR and EE */ mtmsr r11 /* restore DR and EE */
isync isync
blr blr
_ASM_NOKPROBE_SYMBOL(flush_disable_745x)
#endif /* CONFIG_PPC_BOOK3S_32 */ #endif /* CONFIG_PPC_BOOK3S_32 */
...@@ -244,7 +244,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450) ...@@ -244,7 +244,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
mtmsr r2 mtmsr r2
isync isync
b 1b b 1b
_ASM_NOKPROBE_SYMBOL(low_cpu_die)
/* /*
* Here is the resume code. * Here is the resume code.
*/ */
...@@ -282,6 +282,7 @@ _GLOBAL(core99_wake_up) ...@@ -282,6 +282,7 @@ _GLOBAL(core99_wake_up)
lwz r1,0(r3) lwz r1,0(r3)
/* Pass thru to older resume code ... */ /* Pass thru to older resume code ... */
_ASM_NOKPROBE_SYMBOL(core99_wake_up)
/* /*
* Here is the resume code for older machines. * Here is the resume code for older machines.
* r1 has the physical address of SL_PC(sp). * r1 has the physical address of SL_PC(sp).
...@@ -429,6 +430,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS) ...@@ -429,6 +430,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS)
lwz r0,4(r1) lwz r0,4(r1)
mtlr r0 mtlr r0
blr blr
_ASM_NOKPROBE_SYMBOL(grackle_wake_up)
turn_on_mmu: turn_on_mmu:
mflr r4 mflr r4
...@@ -438,6 +440,7 @@ turn_on_mmu: ...@@ -438,6 +440,7 @@ turn_on_mmu:
sync sync
isync isync
rfi rfi
_ASM_NOKPROBE_SYMBOL(turn_on_mmu)
#endif /* defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ) */ #endif /* defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment