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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Sep 2014 14:32:57 +0000 (15:32 +0100)
commit5ca918e5e3f9df4634077c06585c42bc6a8d699a
tree09ba26eae5c513a24604e4c707b9ee9aa5acab95
parent2c553ac19e73235b61b67fdc5c14be9913a2758d
ARM: 8165/1: alignment: don't break misaligned NEON load/store

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/alignment.c