ARM: 8165/1: alignment: don't break misaligned NEON load/store
authorRobin Murphy <robin.murphy@arm.com>
Thu, 25 Sep 2014 10:56:19 +0000 (11:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:10 +0000 (14:54 -0700)
commitfc7e5dd63936d19bbe2bb002780c06dc1cdd20a1
tree9df11abb9009e2df2f88c8906fa999a1cb5ba7df
parent9b21d37838fca95c85b10abf48f3059236ad5d6c
ARM: 8165/1: alignment: don't break misaligned NEON load/store

commit 5ca918e5e3f9df4634077c06585c42bc6a8d699a upstream.

The alignment fixup incorrectly decodes faulting ARM VLDn/VSTn
instructions (where the optional alignment hint is given but incorrect)
as LDR/STR, leading to register corruption. Detect these and correctly
treat them as unhandled, so that userspace gets the fault it expects.

Reported-by: Simon Hosie <simon.hosie@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/alignment.c