From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 753D99474 for ; Tue, 14 Nov 2023 04:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="k7ax4ATw" Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA8D8D56 for ; Mon, 13 Nov 2023 20:11:44 -0800 (PST) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-1efad296d42so3133668fac.2 for ; Mon, 13 Nov 2023 20:11:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699935103; x=1700539903; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=n+4yq4rGlFBGUUVelo6loa8LJ3whEhAhDSYlb9+Og4U=; b=k7ax4ATw7ENKQBKTpFzkjNtDZUnumXdMkial8xKCs96XtVKludT0CtZYqUdBtBNMfL YomvUhi3dRzEHyhlXoDdtwOaqMvL8rqJDCRVaqwhqKFO6WKSMOS5j89kqW1ut2UvvzL1 B1F++JKGqsaTwrerq5gIgSCG2k+syxVp8AeEI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699935103; x=1700539903; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=n+4yq4rGlFBGUUVelo6loa8LJ3whEhAhDSYlb9+Og4U=; b=ZcQY4Oby9anmgnGgArS7gzerlFS7BztXd4/DzMwb5DeamAr4hUbCWuf3OTYbSig1m0 i08ynP9S513ZNJMV6R+wRJJ1lthUmBEhHyVYp4U0Tn4UYE/RKeILqsgLnTpLXo0t5EmD xy/EOMYs1GrE+Vy2Ds4XA9qXH5MzjtCeQnrbCxhfQX1vb3bEBBW0VucMKp/M0lUtnIKT ng+AM/iXSOqkGXd3cdtfeZBKyOlp42kZVluzbiZHIu6WKBTV13MD4EHPKXmTAVIPoXMP sT7aYehAh1ZF5JYen6rQUt9KqJlnYAKYicROeAVFIdwXWvS+rjGfpWI0uh7O6s58gYSE HTqA== X-Gm-Message-State: AOJu0Yzujesy7S69ywhGho2MKNUvxclrzdOKv/74/z9o7AyIDgc/vP9B GSwpVZy6QCUx2+YVwa+32BTWdA== X-Google-Smtp-Source: AGHT+IEfNarlWdnfTnb+4lj9a61ndeE58KtCzt4cIWOf0C0hGaQoDCR9asaBxInqDvXXBZ8V8HT8ig== X-Received: by 2002:a05:6870:b155:b0:1ef:62fc:d51c with SMTP id a21-20020a056870b15500b001ef62fcd51cmr10394447oal.51.1699935102819; Mon, 13 Nov 2023 20:11:42 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id fz10-20020a17090b024a00b00268b439a0cbsm4292411pjb.23.2023.11.13.20.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 20:11:42 -0800 (PST) Date: Mon, 13 Nov 2023 20:11:41 -0800 From: Kees Cook To: Vlastimil Babka Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Marco Elver , Johannes Weiner , Michal Hocko , Shakeel Butt , Muchun Song , kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH 01/20] mm/slab: remove CONFIG_SLAB from all Kconfig and Makefile Message-ID: <202311132009.8329C2F5D@keescook> References: <20231113191340.17482-22-vbabka@suse.cz> <20231113191340.17482-23-vbabka@suse.cz> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231113191340.17482-23-vbabka@suse.cz> On Mon, Nov 13, 2023 at 08:13:42PM +0100, Vlastimil Babka wrote: > Remove CONFIG_SLAB, CONFIG_DEBUG_SLAB, CONFIG_SLAB_DEPRECATED and > everything in Kconfig files and mm/Makefile that depends on those. Since > SLUB is the only remaining allocator, remove the allocator choice, make > CONFIG_SLUB a "def_bool y" for now and remove all explicit dependencies > on SLUB as it's now always enabled. > > Everything under #ifdef CONFIG_SLAB, and mm/slab.c is now dead code, all > code under #ifdef CONFIG_SLUB is now always compiled. > > Signed-off-by: Vlastimil Babka > [...] > diff --git a/mm/Kconfig b/mm/Kconfig > index 89971a894b60..766aa8f8e553 100644 > --- a/mm/Kconfig > +++ b/mm/Kconfig > @@ -228,47 +228,12 @@ config ZSMALLOC_CHAIN_SIZE > > menu "SLAB allocator options" Should this be "Slab allocator options" ? (I've always understood "slab" to mean the general idea, and "SLAB" to mean the particular implementation. Regardless: Reviewed-by: Kees Cook -- Kees Cook