diff options
| author | Hoeun Ryu <[email protected]> | 2017-02-12 06:13:33 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2017-02-17 00:34:59 +0000 |
| commit | 4fbfeb8bd684d564bddeff1e3723d3d9f99aa5de (patch) | |
| tree | acd71c212dec8ad0f3117b33c5c37ff9e68b1183 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | Linux 4.10-rc2 (diff) | |
| download | kernel-4fbfeb8bd684d564bddeff1e3723d3d9f99aa5de.tar.gz kernel-4fbfeb8bd684d564bddeff1e3723d3d9f99aa5de.zip | |
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 <[email protected]>
[kees: clarified commit log, dropped second kmalloc]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
