diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-11-06 03:51:18 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 04:34:48 +0100 |
commit | e0d57714394f5e2ce4e2f9bbebf48e3c7a7fd3be (patch) | |
tree | 2da40842cee7132a446b023d49f51dabed0bc534 /REPORTING-BUGS | |
parent | lib: test_kasan: add some testcases (diff) | |
download | linux-e0d57714394f5e2ce4e2f9bbebf48e3c7a7fd3be.tar.xz linux-e0d57714394f5e2ce4e2f9bbebf48e3c7a7fd3be.zip |
kasan: Fix a type conversion error
The current KASAN code can not find the following out-of-bounds bugs:
char *ptr;
ptr = kmalloc(8, GFP_KERNEL);
memset(ptr+7, 0, 2);
the cause of the problem is the type conversion error in
*memory_is_poisoned_n* function. So this patch fix that.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions