diff options
author | Walter Wu <[email protected]> | 2020-04-01 21:09:40 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-04-02 09:35:30 -0700 |
commit | 98f3b56fa62a61f1d4d6a5fdd035f0b03be1e93f (patch) | |
tree | 47aa9c7ce87f5260e1f238b7c0e960c70e22aed3 /tools/perf/scripts/python/syscall-counts.py | |
parent | 8cceeff48f23eede76de995df08cf665182ec8fb (diff) |
kasan: add test for invalid size in memmove
Test negative size in memmove in order to verify whether it correctly get
KASAN report.
Casting negative numbers to size_t would indeed turn up as a large size_t,
so it will have out-of-bounds bug and be detected by KASAN.
[[email protected]: fix -Wstringop-overflow warning]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Walter Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Dmitry Vyukov <[email protected]>
Reviewed-by: Andrey Ryabinin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: kernel test robot <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions