powerpc/book3s/kup: Mark the kuap/keup function non __init
PATCH v2 1/1 powerpc/book3s/kup: Mark the kuap/keup function non __init
The kernel call these functions on cpu online and hence they should not be marked __init.
Fixes 3b47b7549ead ("powerpc/book3s64/kuap: Move KUAP related function outside radix")
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- arch/powerpc/mm/book3s64/pkeys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/mm/book3s64/pkeys.c +2 -2
@@ -251,7 +251,7 @@ void __init pkey_early_init_devtree(void) }#ifdef CONFIG_PPC_KUEP -void __init setup_kuep (bool disabled) +void setup_kuep (bool disabled) {if (disabled)return ;
@@ -277,7 +277,7 @@ void __init setup_kuep(bool disabled)#endif #ifdef CONFIG_PPC_KUAP -void __init setup_kuap (bool disabled) +void setup_kuap (bool disabled) {if (disabled)return ;
Signature · 1 line
2.28.0
Quoted 10 lines · Aneesh Kumar K.V
The kernel call these functions on cpu online and hence they should not be marked
__init.Fixes 3b47b7549ead ("powerpc/book3s64/kuap: Move KUAP related function outside radix")Signed-off-by Aneesh Kumar K.V <[email protected]>—
This fixes the reported crash I ran into during a cpu online operation.
Reported-by Sachin Sant <[email protected]>
Tested-by Sachin Sant <[email protected]>
-Sachin
Michael Ellerman
AppliedQuoted 2 lines · Aneesh Kumar K.V
The kernel call these functions on cpu online and hence they should not be marked
__init.
Applied to powerpc/next.
[1/1] powerpc/64s: Mark the kuap/kuep functions non __init
https://git.kernel.org/powerpc/c/44b4c4450f8d31296ba633d74be753a85fd627bd
cheers