From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by kanga.kvack.org (Postfix) with ESMTP id 72C396B025E for ; Fri, 11 Mar 2016 12:21:31 -0500 (EST) Received: by mail-wm0-f42.google.com with SMTP id l68so27905353wml.0 for ; Fri, 11 Mar 2016 09:21:31 -0800 (PST) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com. [2a00:1450:400c:c09::22f]) by mx.google.com with ESMTPS id j67si3813033wmb.50.2016.03.11.09.21.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Mar 2016 09:21:24 -0800 (PST) Received: by mail-wm0-x22f.google.com with SMTP id l68so26199382wml.1 for ; Fri, 11 Mar 2016 09:21:24 -0800 (PST) From: Alexander Potapenko Subject: [PATCH v6 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 Date: Fri, 11 Mar 2016 18:21:02 +0100 Message-Id: <938098714f1843291586d4649d678242c7ed1b7f.1457715116.git.glider@google.com> In-Reply-To: References: In-Reply-To: References: Sender: owner-linux-mm@kvack.org List-ID: To: adech.fo@gmail.com, cl@linux.com, dvyukov@google.com, akpm@linux-foundation.org, ryabinin.a.a@gmail.com, rostedt@goodmis.org, iamjoonsoo.kim@lge.com, js1304@gmail.com, kcc@google.com Cc: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Signed-off-by: Alexander Potapenko Acked-by: Andrey Ryabinin --- lib/test_kasan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 90ad74f..82169fb 100644 --- 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); } -- 2.7.0.rc3.207.g0ac5344 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org