summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-08-22 12:47:37 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2013-08-22 12:47:37 +0200
commit2600e130b3c90c8d6c13229d3d3a14dcb898a87b (patch)
treed82ddd0faa7a4e07545041c8fba1c03f59064085 /arch/arm64
parentarm64: Expand arm64 image header (diff)
downloadlinux-2600e130b3c90c8d6c13229d3d3a14dcb898a87b.tar.xz
linux-2600e130b3c90c8d6c13229d3d3a14dcb898a87b.zip
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 <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/kernel/entry.S2
1 files changed, 2 insertions, 0 deletions
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:
/*