Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751920AbdHGRss (ORCPT ); Mon, 7 Aug 2017 13:48:48 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:35168 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751453AbdHGRsr (ORCPT ); Mon, 7 Aug 2017 13:48:47 -0400 Subject: Re: [RFC][PATCH] mm/slub.c: Allow poisoning to use the fast path To: Christopher Lameter Cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kees Cook , Rik van Riel References: <20170804231002.20362-1-labbott@redhat.com> From: Laura Abbott Message-ID: <559096f0-bf1b-eff1-f0ce-33f53a4df255@redhat.com> Date: Mon, 7 Aug 2017 10:48:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 24 On 08/07/2017 07:37 AM, Christopher Lameter wrote: > On Fri, 4 Aug 2017, Laura Abbott wrote: > >> All slub debug features currently disable the fast path completely. >> Some features such as consistency checks require this to allow taking of >> locks. Poisoning and red zoning don't require this and can safely use >> the per-cpu fast path. Introduce a Kconfig to continue to use the fast >> path when 'fast' debugging options are enabled. The code will >> automatically revert to always using the slow path when 'slow' options >> are enabled. > > 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. Thanks, Laura