From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) by kanga.kvack.org (Postfix) with ESMTP id 271476B0038 for ; Fri, 3 Apr 2015 22:06:35 -0400 (EDT) Received: by igblo3 with SMTP id lo3so16834391igb.1 for ; Fri, 03 Apr 2015 19:06:34 -0700 (PDT) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com. [2607:f8b0:4001:c03::233]) by mx.google.com with ESMTPS id qe2si3133237igb.46.2015.04.03.19.06.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Apr 2015 19:06:34 -0700 (PDT) Received: by iebmp1 with SMTP id mp1so93927445ieb.0 for ; Fri, 03 Apr 2015 19:06:34 -0700 (PDT) Date: Fri, 3 Apr 2015 19:06:32 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH] mm, mempool: kasan: poison mempool elements In-Reply-To: <1428072467-21668-1-git-send-email-a.ryabinin@samsung.com> Message-ID: References: <1428072467-21668-1-git-send-email-a.ryabinin@samsung.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Andrey Ryabinin Cc: Andrew Morton , Dave Kleikamp , Christoph Hellwig , Sebastian Ott , Mikulas Patocka , Catalin Marinas , LKML , linux-mm@kvack.org, jfs-discussion@lists.sourceforge.net, Dmitry Chernenkov , Dmitry Vyukov , Alexander Potapenko On Fri, 3 Apr 2015, Andrey Ryabinin wrote: > Mempools keep allocated objects in reserved for situations > when ordinary allocation may not be possible to satisfy. > These objects shouldn't be accessed before they leave > the pool. > This patch poison elements when get into the pool > and unpoison when they leave it. This will let KASan > to detect use-after-free of mempool's elements. > > Signed-off-by: Andrey Ryabinin Tested-by: David Rientjes -- 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