Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] call undefined instruction exception handler with irqs enabled

Aaro says:
> With spinlock debugs enabled I get might_sleep() warnings when using
> ptrace.

tracked down to a missing enable_irq before calling do_undefinstr().

Reported-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Russell King and committed by
Russell King
ecbab71c 9ce8bb55

+1
+1
arch/arm/kernel/entry-armv.S
··· 650 650 no_fp: mov pc, lr 651 651 652 652 __und_usr_unknown: 653 + enable_irq 653 654 mov r0, sp 654 655 adr lr, ret_from_exception 655 656 b do_undefinstr