Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2600e130 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 4370eec0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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:
	/*