Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1886057rdb; Sat, 2 Dec 2023 13:30:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQwhJX9nW0HbvbtCPk4UJAnXbQJrrqLxdMBxTU4mI96LYMPXkA+OknDrd53kf0E5eUeOlz X-Received: by 2002:a17:90b:4b81:b0:286:7701:75de with SMTP id lr1-20020a17090b4b8100b00286770175demr738296pjb.22.1701552624614; Sat, 02 Dec 2023 13:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701552624; cv=none; d=google.com; s=arc-20160816; b=f/Vl402dPEmbD/mR73FVM02GSA4lvlXhwTk0EXQ6golbCa0MaSPIqsuoPtvakPezCm KhLHE7/pLK/7iZEwHO1u5Roj0xhz7+xBNcaKQgQWAVfd2oBgPEh2PN2gzsp0nkuzdIiZ g2CPuFnZRM3wvBMHULlCvvWz3cGJgi2FnPINOeFihIuRl3JJje4BlHyKv3c7fL65s7PK BaSrKs5Y54swC5K+aJxfB9lzMMY/havfObQtdgFRGtY3voq5Ka7sFO5tSFZSVmhI2lkT X3lD9Pg6KgnIZgGpqFl/iLskLdON2WHXo5ma2SkQ9dalnCnlA61d5FQzmQ9kYhNnqfKw FEaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T5J15MlXHLI92cGapwCUHhHVqByLKgeQqZvgS95PAzA=; fh=1lPfvlFOOV32hWU+xD3ZfGro9UhPeeuIPUmDrxohopc=; b=YEm8+cAbwM/Tq+sk3Q/KklfBV1QKxi1L0yS/k1A949N5VkhkjtHtslswqpbFWcofXP N9qrthT2O6BevO5ayManoYjhWFZLk+l4NWX+WYBpA1XAMzwBqO3JZw9yZgIIIAKLStXE A6GW4GJm7lzO2h7lPCNfRNaFhXOXRhZm7deeUVu8MuyP40Y+hVPq9bDsr47HSjoGoIDy 1Difqo+5Lohgq8U8c3QjMDmWIDuvRqDa8Kj8TOxg6m00SH2MozofshRfhcEokP3s2yZ9 YFihHlKkib/a2d+SUQI+TGKDMAI90Pq2WyJFUZQ1blZmoA2LJlDSlcpC1DiPPuVAMXDM k7LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dlto57h7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p11-20020a17090adf8b00b0028688ede2d7si497336pjv.49.2023.12.02.13.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 13:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dlto57h7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5F430804C535; Sat, 2 Dec 2023 13:30:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231727AbjLBVaE (ORCPT + 99 others); Sat, 2 Dec 2023 16:30:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLBVaC (ORCPT ); Sat, 2 Dec 2023 16:30:02 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26000E5 for ; Sat, 2 Dec 2023 13:30:09 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6cda22140f2so3250334b3a.1 for ; Sat, 02 Dec 2023 13:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701552608; x=1702157408; 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=T5J15MlXHLI92cGapwCUHhHVqByLKgeQqZvgS95PAzA=; b=dlto57h7Wpk0SmZ008RWoyaZgsqCbIumChqPhf2hssU5qNq+J65bivQmQFo5KR4J9P h6YXSKoZtWZM3hYbiM8zO7EOHY+g/9vx4We8PmfWfLGGJQE/HiRZYLg6WIwSvCl8hFEx bKO8LPNX6MUtq+gxtCC8EQtUMgTEDQX6qdy80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701552608; x=1702157408; 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=T5J15MlXHLI92cGapwCUHhHVqByLKgeQqZvgS95PAzA=; b=ORXOSzTQCcXSEKNYlkWbZyd+G0IZOC5S7JQFAfLqbh4JVyRRAAjmaaQSq5BZD8pIfY VQ0mUtkqB1JYNtsR8OV7qoBXapU/37bk8p/NYI64v7dhe41hylYmO+ynHCbp1oE09pm/ SNjiRvYAdy2Pw53m6Wpamq7bJolHoV+q3gP6f5xbGgL5klZ3bOSDjcQ6SyXjLVPd/2iT h6INbJcdDOOLVqWwxdm9y4DJltlyHLQbA3XodiWQmNx+rwTpR/wiZAgKnRoA1PQdHuVJ CmKMv11qDUT9+JsEBDWAimP8QNhDL7Htd/UNS2BaQVlyiE7gZAGuxcaiAZlXTI9Oe38g vjZg== X-Gm-Message-State: AOJu0Yw3HJTZL4b+Uhhshh8kO4f/v5OeCEyLfESeX+vDs5SemraELHPa tALZkKnHxod0mpSo1LWjYP3H+w== X-Received: by 2002:a05:6a00:2d24:b0:6ce:3c1e:743f with SMTP id fa36-20020a056a002d2400b006ce3c1e743fmr849277pfb.41.1701552608590; Sat, 02 Dec 2023 13:30:08 -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 o24-20020a056a001b5800b006ce3a0b4bfasm984474pfv.24.2023.12.02.13.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 13:30:07 -0800 (PST) Date: Sat, 2 Dec 2023 13:30:07 -0800 From: Kees Cook To: Vlastimil Babka Cc: "Song, Xiongwei" , "sxwjean@me.com" , "42.hyeyoo@gmail.com" <42.hyeyoo@gmail.com>, "cl@linux.com" , "linux-mm@kvack.org" , "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "roman.gushchin@linux.dev" , "corbet@lwn.net" , "arnd@arndb.de" , "akpm@linux-foundation.org" , "gregkh@linuxfoundation.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" Message-ID: <202312021329.86D56FA@keescook> References: <20231201031505.286117-1-sxwjean@me.com> <20231201031505.286117-3-sxwjean@me.com> <202312010945.7C5DB1FBB@keescook> <67b155dd-3731-489e-c3bd-333cb7e90801@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67b155dd-3731-489e-c3bd-333cb7e90801@suse.cz> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 02 Dec 2023 13:30:21 -0800 (PST) On Sat, Dec 02, 2023 at 07:12:25PM +0100, Vlastimil Babka wrote: > On 12/2/23 05:23, Song, Xiongwei wrote: > > > > > >> -----Original Message----- > >> From: Kees Cook > >> Sent: Saturday, December 2, 2023 1:48 AM > >> To: sxwjean@me.com > >> Cc: vbabka@suse.cz; 42.hyeyoo@gmail.com; cl@linux.com; linux-mm@kvack.org; > >> penberg@kernel.org; rientjes@google.com; iamjoonsoo.kim@lge.com; > >> roman.gushchin@linux.dev; corbet@lwn.net; arnd@arndb.de; akpm@linux- > >> foundation.org; gregkh@linuxfoundation.org; linux-doc@vger.kernel.org; linux- > >> kernel@vger.kernel.org; Song, Xiongwei > >> Subject: Re: [RFC PATCH 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param" > >> > >> CAUTION: This email comes from a non Wind River email account! > >> Do not click links or open attachments unless you recognize the sender and know the > >> content is safe. > >> > >> On Fri, Dec 01, 2023 at 11:15:04AM +0800, sxwjean@me.com wrote: > >> > From: Xiongwei Song > >> > > >> > Since the SLAB allocator has been removed, so we need to clean up the > >> > sl[au]b_$params. However, the "slab/SLAB" terms should be keep for > >> > long-term rather than "slub/SLUB". Hence, we should use "slab_$param" > >> > as the primary prefix, which is pointed out by Vlastimil Babka. For more > >> > information please see [1]. > >> > > >> > This patch is changing the following slab parameters > >> > - slub_max_order > >> > - slub_min_order > >> > - slub_min_objects > >> > - slub_debug > >> > to > >> > - slab_max_order > >> > - slab_min_order > >> > - slab_min_objects > >> > - slab_debug > >> > as the primary slab parameters in > >> > Documentation/admin-guide/kernel-parameters.txt and source, and rename all > >> > setup functions of them too. Meanwhile, "slub_$params" can also be passed > >> > by command line, which is to keep backward compatibility. Also mark all > >> > "slub_$params" as legacy. > >> > >> *If* we do this, I think the old names need to be recognized, perhaps > > Yes, they are already recognized by the patch. Ah, sorry, I missed that. I didn't see it when I skimmed earlier. > >> with a boot pr_warn() about their deprecation/renaming for several > >> releases (likely across LTSes). I think it's not a good idea to > >> wholesale rename these with no warning. That's going to cause a lot of > >> surprises and broken userspace... > > > > Oh, yes, that's a good idea. Will update. > > I'd wait for a while with the warnings, no need to rush. Better to start ASAP, yeah? -- Kees Cook