From: Catalin Marinas Date: Thu, 22 Aug 2013 10:47:37 +0000 (+0100) Subject: arm64: Enable interrupts in the EL0 undef handler X-Git-Tag: firefly_0821_release~3680^2~35^2~1^2~90 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0195e1c67cd4b47ed4c2dbd0a94e69543121e0f0;p=firefly-linux-kernel-4.4.55.git arm64: Enable interrupts in the EL0 undef handler do_undefinstr() has to be called with interrupts disabled since it may read the instruction from the user address space which could lead to a data abort and subsequent might_sleep() warning in do_page_fault(). Signed-off-by: Catalin Marinas (cherry picked from commit 2600e130b3c90c8d6c13229d3d3a14dcb898a87b) Signed-off-by: Mark Brown --- diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 6ad781b21c08..57640df9d70c 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -476,6 +476,8 @@ el0_undef: * Undefined instruction */ mov x0, sp + // enable interrupts before calling the main handler + enable_irq b do_undefinstr el0_dbg: /*