Skip to content

Commit 87eed3c

Browse files
author
Russell King
committed
ARM: fix address limit restoration for undefined instructions
During boot, sometimes the kernel will test to see if an instruction causes an undefined instruction exception. Unfortunately, the exit path for these exceptions did not restore the address limit, which causes the rootfs mount code to fail. Fix the missing address limit restoration. Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 61444cd commit 87eed3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/kernel/entry-armv.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ __und_svc_fault:
295295
bl __und_fault
296296

297297
__und_svc_finish:
298+
get_thread_info tsk
298299
ldr r5, [sp, #S_PSR] @ Get SVC cpsr
299300
svc_exit r5 @ return from exception
300301
UNWIND(.fnend )

0 commit comments

Comments
 (0)