]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
metag/usercopy: Add missing fixups
authorJames Hogan <james.hogan@imgtec.com>
Tue, 4 Apr 2017 07:51:34 +0000 (08:51 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:12:14 +0000 (10:12 +0200)
commit35c4a90ad5c9089f3dbfddc2518880b9b7cca9df
tree795dead4baf1de8b68690f05ce621cf28cefda81
parenta76590471c45f71184a3818c9d685c7acdfa6211
metag/usercopy: Add missing fixups

BugLink: http://bugs.launchpad.net/bugs/1682130
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/metag/lib/usercopy.c