metag/usercopy: Add missing fixups
authorJames Hogan <james.hogan@imgtec.com>
Tue, 4 Apr 2017 07:51:34 +0000 (08:51 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 26 Apr 2017 18:05:02 +0000 (20:05 +0200)
commitb2a7dcb4f4b6109be385b11d0a66bf42b9da7445
treecbfb20faa8fa5d2c76dafca33088dc776627645a
parentdf7e41c997ff740e2818c146c05e5bc21c109db6
metag/usercopy: Add missing fixups

commit b884a190afcecdbef34ca508ea5ee88bb7c77861 upstream.

The rapf copy loops in the Meta usercopy code is missing some extable
entries for HTP cores with unaligned access checking enabled, where
faults occur on the instruction immediately after the faulting access.

Add the fixup labels and extable entries for these cases so that corner
case user copy failures don't cause kernel crashes.

Fixes: 373cd784d0fc ("metag: Memory handling")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/metag/lib/usercopy.c