From cd7d9cd87146aaddf5281c40efb3a469fc825a77 Mon Sep 17 00:00:00 2001 From: Oliver Schildan Date: Fri, 9 Sep 2016 08:42:19 +0200 Subject: [PATCH] arm: mm: handle unaligned memory access fpu instructions Some applications generate fpu instructions to unaligned memory locations. This results in memory access exceptions. Fix this by handle these fpu instructions in the memory alignment handler. --- arch/arm/mm/alignment.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index f8dd0b3cc8e0..07cdca1de6e4 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -870,6 +870,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) break; case 0x04000000: /* ldr or str immediate */ + case 0x0C000000: /* ldr | str float */ if (COND_BITS(instr) == 0xf0000000) /* NEON VLDn, VSTn */ goto bad; offset.un = OFFSET_BITS(instr);