summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorWang Long2015-09-10 00:37:22 +0200
committerLinus Torvalds2015-09-10 22:29:01 +0200
commit6b4a35fc19a9229080dead8a9c316e8857b3e94d (patch)
tree977fffd2756175eb42271dc10585a453745fffe0 /scripts/checkpatch.pl
parentlib/test_kasan.c: fix a typo (diff)
downloadkernel-qcow2-linux-6b4a35fc19a9229080dead8a9c316e8857b3e94d.tar.gz
kernel-qcow2-linux-6b4a35fc19a9229080dead8a9c316e8857b3e94d.tar.xz
kernel-qcow2-linux-6b4a35fc19a9229080dead8a9c316e8857b3e94d.zip
lib/test_kasan.c: make kmalloc_oob_krealloc_less more correctly
In kmalloc_oob_krealloc_less, I think it is better to test the size2 boundary. If we do not call krealloc, the access of position size1 will still cause out-of-bounds and access of position size2 does not. After call krealloc, the access of position size2 cause out-of-bounds. So using size2 is more correct. Signed-off-by: Wang Long <long.wanglong@huawei.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions