diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-08-22 11:47:37 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-08-22 11:47:37 +0100 |
commit | 2600e130b3c90c8d6c13229d3d3a14dcb898a87b (patch) | |
tree | d82ddd0faa7a4e07545041c8fba1c03f59064085 /arch/arm64 | |
parent | 4370eec05a887b0cd4392cd5dc5b2713174745c0 (diff) |
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.S | 2 |
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: /* |