summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHoeun Ryu <hoeun.ryu@gmail.com>2017-02-12 15:13:33 +0900
committerKees Cook <keescook@chromium.org>2017-02-16 16:34:59 -0800
commit4fbfeb8bd684d564bddeff1e3723d3d9f99aa5de (patch)
treeacd71c212dec8ad0f3117b33c5c37ff9e68b1183 /arch
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
downloadlinux-4fbfeb8bd684d564bddeff1e3723d3d9f99aa5de.tar.bz2
usercopy: add testcases to check zeroing on failure
During usercopy the destination buffer will be zeroed if copy_from_user() or get_user() fails. This patch adds testcases for it. The destination buffer is set with non-zero value before illegal copy_from_user() or get_user() is executed and the buffer is compared to zero after usercopy is done. Signed-off-by: Hoeun Ryu <hoeun.ryu@gmail.com> [kees: clarified commit log, dropped second kmalloc] Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions