Commit 9dcadd38 authored by Alexander Potapenko's avatar Alexander Potapenko Committed by Linus Torvalds
Browse files

kasan: test fix: warn if the UAF could not be detected in kmalloc_uaf2

Signed-off-by: default avatarAlexander Potapenko <>
Acked-by: default avatarAndrey Ryabinin <>
Cc: Christoph Lameter <>
Cc: Pekka Enberg <>
Cc: David Rientjes <>
Cc: Joonsoo Kim <>
Cc: Andrey Konovalov <>
Cc: Dmitry Vyukov <>
Cc: Steven Rostedt <>
Cc: Konstantin Serebryany <>
Cc: Dmitry Chernenkov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent cd11016e
......@@ -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");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment