From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751807AbbCYVz1 (ORCPT ); Wed, 25 Mar 2015 17:55:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33735 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764AbbCYVzY (ORCPT ); Wed, 25 Mar 2015 17:55:24 -0400 Date: Wed, 25 Mar 2015 14:55:23 -0700 From: Andrew Morton To: David Rientjes Cc: Dave Kleikamp , Christoph Hellwig , Sebastian Ott , Mikulas Patocka , Catalin Marinas , linux-kernel@vger.kernel.org, linux-mm@kvack.org, jfs-discussion@lists.sourceforge.net, Andrey Ryabinin Subject: Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator Message-Id: <20150325145523.94d1033b93cd5c1010df93bf@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Mar 2015 16:10:01 -0700 (PDT) David Rientjes wrote: > Elements backed by the slab allocator are poisoned when added to a > mempool's reserved pool. > > It is also possible to poison elements backed by the page allocator > because the mempool layer knows the allocation order. > > This patch extends mempool element poisoning to include memory backed by > the page allocator. > > This is only effective for configs with CONFIG_DEBUG_SLAB or > CONFIG_SLUB_DEBUG_ON. > Maybe mempools should get KASAN treatment (as well as this)?