Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751905AbdHGSDG (ORCPT ); Mon, 7 Aug 2017 14:03:06 -0400 Received: from resqmta-ch2-07v.sys.comcast.net ([69.252.207.39]:54660 "EHLO resqmta-ch2-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbdHGSDF (ORCPT ); Mon, 7 Aug 2017 14:03:05 -0400 Date: Mon, 7 Aug 2017 13:03:03 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Laura Abbott cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kees Cook , Rik van Riel Subject: Re: [RFC][PATCH] mm/slub.c: Allow poisoning to use the fast path In-Reply-To: <559096f0-bf1b-eff1-f0ce-33f53a4df255@redhat.com> Message-ID: References: <20170804231002.20362-1-labbott@redhat.com> <559096f0-bf1b-eff1-f0ce-33f53a4df255@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfMUhcru4x/KrxwPvl+EcI2oG/NSdF5T3EtRFeor9uM2O/6YyosVwDPjW9KS7xidoEv4++Nbvb4txzesg5fn936kPKY3g8xIv0N0nPP2DvYZN4FPl73SC RsjKPbfS29ih8KO1w9BX57HZflJd7igzvDx9fvH4kslAQeSfdL0bcIrkNCWrBBYTwoblMtmbhHp6j0Uhd2p9TGn/s2kHg2QbRGk+N73R4M3flvuGQvzpCRDM VcTZjbeM/njRA4j6beaeW+jy+9Xm/+4JD4TW6SZvkVBoKw595YXvfLb1BYf6Sjzl2oKs3cq+7Bffysiv8jclp1wQutojQ7Lv/YW9ANsrtHRUTjDCOT7dqJv/ 0es6vqw7N99Ple0QhWC5KY882VYj12Wn//5a+TxN1c69CF3StO2XLL/WVUhFr3BPPxioBd2m Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 564 Lines: 13 On Mon, 7 Aug 2017, Laura Abbott wrote: > > Ok I see that the objects are initialized with poisoning and redzoning but > > I do not see that there is fastpath code to actually check the values > > before the object is reinitialized. Is that intentional or am > > I missing something? > > Yes, that's intentional here. I see the validation as a separate more > expensive feature. I had a crude patch to do some checks for testing > and I know Daniel Micay had an out of tree patch to do some checks > as well. Ok then this patch does nothing? How does this help?