Skip to content

Commit

Permalink
arm64: Enable interrupts in the EL0 undef handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Catalin Marinas committed Aug 22, 2013
1 parent 4370eec commit 2600e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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:
/*
Expand Down

0 comments on commit 2600e13

Please sign in to comment.