]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerZefan Li <lizefan@huawei.com>
Mon, 1 Dec 2014 10:02:39 +0000 (18:02 +0800)
commit3efcfa5433a7c6ff5e04489398b1d7434f51b733
tree1c027c72d9404081209070c1b3d355ed7c2020c1
parent8c3c6b9ee4d81b84b19dd07cb46d99fbf33850ab
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: Zefan Li <lizefan@huawei.com>
arch/arm/mm/alignment.c