Merge tag 'iio-fixes-for-4.6d' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[deliverable/linux.git] / lib / test_kasan.c
index 90ad74f715355ee485ea8aba773f4209adb4fae5..82169fbf24538fdc70ff98fce1f324cb13f241da 100644 (file)
@@ -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.024685 seconds and 5 git commands to generate.