From: Russell King Date: Wed, 3 Aug 2016 09:33:35 +0000 (+0100) Subject: ARM: fix address limit restoration for undefined instructions X-Git-Tag: v4.9.8~1490^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87eed3c74d7c65556f744230a90bf9556dd29146;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index bc5f507..9f157e7 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S @@ -295,6 +295,7 @@ __und_svc_fault: bl __und_fault __und_svc_finish: + get_thread_info tsk ldr r5, [sp, #S_PSR] @ Get SVC cpsr svc_exit r5 @ return from exception UNWIND(.fnend )