From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dlto57h7" Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F976C4 for ; Sat, 2 Dec 2023 13:30:09 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6ce3373be0cso600863b3a.3 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=TSfeRCOqPWVssGJGZY1P2h7mVxkH8ZruumISD+wuk5qAI4iZ7V8CkB6rXB5BLR6cw9 oiQ4kj68rDSQOv2Ta3WgaSdXdY5DNWA0OU/bB41hDW0VBslpDXviEGTOGSANNS6gJ6l6 vTp07SE4c2VpWSK4U8mEWdpn6X9tt3uismtxGOImt+TTXlYgWZnfVz0joea9exhdILID hDJugSvcNtTmr3zZ+q6zEabeNKrUUTDkr9e8TIaNrFbAFbzLGWoDaDODUoIB1FPHlJhj 0komYpV4xdVi7HIFWBwOjnHpsh3m/T+9nUnFLUkAtwL0Oed/UwmmkMNHYD9NaYqFZejo bGgQ== X-Gm-Message-State: AOJu0YxTcJ44pNW6LJpJx5TfrXVIsmF7Z1foi4wLOC5I1d2hFUmiiYy0 JX3X3slKq441mmTi99iM7UZl+g== X-Google-Smtp-Source: AGHT+IHvVBon3TJyINAYLAf07X3SlMJEK4rycMYTmue0klxJqQCgHaBNdJUe4p9vusQ32Ct3N0bKjg== 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> Precedence: bulk X-Mailing-List: linux-doc@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: <67b155dd-3731-489e-c3bd-333cb7e90801@suse.cz> 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