summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorWalter Wu <walter-zh.wu@mediatek.com>2020-04-01 21:09:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-02 09:35:30 -0700
commit98f3b56fa62a61f1d4d6a5fdd035f0b03be1e93f (patch)
tree47aa9c7ce87f5260e1f238b7c0e960c70e22aed3 /mm
parent8cceeff48f23eede76de995df08cf665182ec8fb (diff)
downloadlinux-98f3b56fa62a61f1d4d6a5fdd035f0b03be1e93f.tar.gz
linux-98f3b56fa62a61f1d4d6a5fdd035f0b03be1e93f.tar.bz2
linux-98f3b56fa62a61f1d4d6a5fdd035f0b03be1e93f.zip
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. [walter-zh.wu@mediatek.com: fix -Wstringop-overflow warning] Link: http://lkml.kernel.org/r/20200311134244.13016-1-walter-zh.wu@mediatek.com Signed-off-by: Walter Wu <walter-zh.wu@mediatek.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Alexander Potapenko <glider@google.com> Cc: kernel test robot <lkp@intel.com> Link: http://lkml.kernel.org/r/20191112065313.7060-1-walter-zh.wu@mediatek.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions