--- zzzz-none-000/linux-3.10.107/arch/powerpc/oprofile/backtrace.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/oprofile/backtrace.c 2021-02-04 17:41:59.000000000 +0000 @@ -10,8 +10,9 @@ #include #include #include -#include +#include #include +#include #define STACK_SP(STACK) *(STACK) @@ -104,6 +105,7 @@ first_frame = 0; } } else { + pagefault_disable(); #ifdef CONFIG_PPC64 if (!is_32bit_task()) { while (depth--) { @@ -112,7 +114,7 @@ break; first_frame = 0; } - + pagefault_enable(); return; } #endif @@ -123,5 +125,6 @@ break; first_frame = 0; } + pagefault_enable(); } }