projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kasan: test fix: warn if the UAF could not be detected in kmalloc_uaf2
[deliverable/linux.git]
/
lib
/
test_kasan.c
diff --git
a/lib/test_kasan.c
b/lib/test_kasan.c
index 90ad74f715355ee485ea8aba773f4209adb4fae5..82169fbf24538fdc70ff98fce1f324cb13f241da 100644
(file)
--- a/
lib/test_kasan.c
+++ b/
lib/test_kasan.c
@@
-294,6
+294,8
@@
static noinline void __init kmalloc_uaf2(void)
}
ptr1[40] = 'x';
+ if (ptr1 == ptr2)
+ pr_err("Could not detect use-after-free: ptr1 == ptr2\n");
kfree(ptr2);
}
This page took
0.02633 seconds
and
5
git commands to generate.