From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbbCZQIW (ORCPT ); Thu, 26 Mar 2015 12:08:22 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:46715 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbbCZQIB (ORCPT ); Thu, 26 Mar 2015 12:08:01 -0400 X-AuditID: cbfec7f4-b7f126d000001e9a-5c-55142e3602a5 Message-id: <55142EDA.4020301@samsung.com> Date: Thu, 26 Mar 2015 19:07:54 +0300 From: Andrey Ryabinin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-version: 1.0 To: Andrew Morton , 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 Subject: Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator References: <20150325145523.94d1033b93cd5c1010df93bf@linux-foundation.org> In-reply-to: <20150325145523.94d1033b93cd5c1010df93bf@linux-foundation.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t/xK7pmeiKhBs/uaVnMWb+GzeL9sh5G i5WrjzJZXPzYymRxedccNot7a/6zWkzsuMpk0bZkI5PFqa7DjBa37/xgduDyWDNvDaPHgk2l HptWdbJ5bPo0id3jxIzfLB4PDm1m8di94DOTx+6bDWwe7/ddZfP4vEkugCuKyyYlNSezLLVI 3y6BK+PRhNXMBVtZKxr3rGZuYFzL0sXIySEhYCKx/d5mRghbTOLCvfVsXYxcHEICSxkl9j3/ zQjhNDNJvG19yQxSxSugJXGh/RqYzSKgKvF33x1WEJtNQE/i36ztQN0cHKICERK3L3NClAtK /Jh8D2yZiECoxMSrt8EWMAssYpI48fcjWEJYIFhi68NrLBDLzjFK/GlaBjaUU8Bbou1HO9hQ ZqAF9y9qgYSZBeQlNq95yzyBUWAWkh2zEKpmIalawMi8ilE0tTS5oDgpPddQrzgxt7g0L10v OT93EyMkZr7sYFx8zOoQowAHoxIPr8FB4VAh1sSy4srcQ4wSHMxKIrwvJERChXhTEiurUovy 44tKc1KLDzEycXBKNTCyvFcNipe59fDTtwszd9VZcxk6dukdXlsYsDq4M+Be0YpfZTbHnebo 9jAeWBMzXXW5nmCG1L/2pfEVyy+fCg7KPXHNTX96jG6/phffgzcqftdqgnKLHMSFIzUPGrRK 9ayWmHzzQnfLmoPLRDmit338tfqrbsf0j7HCP+/0Wj8wvbhcrL7p82YlluKMREMt5qLiRABv DjaUdwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/26/2015 12:55 AM, Andrew Morton wrote: > 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)? > Certainly, I could cook a patch tomorrow. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by kanga.kvack.org (Postfix) with ESMTP id 564E96B006E for ; Thu, 26 Mar 2015 12:08:05 -0400 (EDT) Received: by pacwz10 with SMTP id wz10so16016952pac.2 for ; Thu, 26 Mar 2015 09:08:05 -0700 (PDT) Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com. [210.118.77.13]) by mx.google.com with ESMTPS id nb4si8921348pbc.184.2015.03.26.09.08.03 for (version=TLSv1 cipher=RC4-MD5 bits=128/128); Thu, 26 Mar 2015 09:08:04 -0700 (PDT) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NLT00C4JUC3RQ30@mailout3.w1.samsung.com> for linux-mm@kvack.org; Thu, 26 Mar 2015 16:12:03 +0000 (GMT) Message-id: <55142EDA.4020301@samsung.com> Date: Thu, 26 Mar 2015 19:07:54 +0300 From: Andrey Ryabinin MIME-version: 1.0 Subject: Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator References: <20150325145523.94d1033b93cd5c1010df93bf@linux-foundation.org> In-reply-to: <20150325145523.94d1033b93cd5c1010df93bf@linux-foundation.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton , 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 On 03/26/2015 12:55 AM, Andrew Morton wrote: > 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)? > Certainly, I could cook a patch tomorrow. -- 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