summaryrefslogtreecommitdiff
path: root/drivers/watchdog/sch311x_wdt.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2017-03-31 12:35:01 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-12 10:41:13 (GMT)
commit4a93ac814ddcc8d2841f224d9157ab241feab1ac (patch)
treec19a80fb1bcddae34ede2dfe9f2148414b236f6d /drivers/watchdog/sch311x_wdt.c
parent49a292dcd86bd04794cfc50f87ff5aa4444df088 (diff)
downloadlinux-4a93ac814ddcc8d2841f224d9157ab241feab1ac.tar.xz
metag/usercopy: Add early abort to copy_to_user
commit fb8ea062a8f2e85256e13f55696c5c5f0dfdcc8b upstream. When copying to userland on Meta, if any faults are encountered immediately abort the copy instead of continuing on and repeatedly faulting, and worse potentially copying further bytes successfully to subsequent valid pages. Fixes: 373cd784d0fc ("metag: Memory handling") Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-metag@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/watchdog/sch311x_wdt.c')
0 files changed, 0 insertions, 0 deletions