[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b8e6ddc-6472-4acd-a506-98bc3586f1f3@suse.cz>
Date: Tue, 2 Jul 2024 11:19:28 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: Kees Cook <kees@...nel.org>
Cc: "GONG, Ruiqi" <gongruiqi@...weicloud.com>,
Christoph Lameter <cl@...ux.com>, Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>, Joonsoo Kim <iamjoonsoo.kim@....com>,
jvoisin <julien.voisin@...tri.org>, Andrew Morton
<akpm@...ux-foundation.org>, Roman Gushchin <roman.gushchin@...ux.dev>,
Hyeonggon Yoo <42.hyeyoo@...il.com>, Xiu Jianfeng <xiujianfeng@...wei.com>,
Suren Baghdasaryan <surenb@...gle.com>,
Kent Overstreet <kent.overstreet@...ux.dev>, Jann Horn <jannh@...gle.com>,
Matteo Rizzo <matteorizzo@...gle.com>, Thomas Graf <tgraf@...g.ch>,
Herbert Xu <herbert@...dor.apana.org.au>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Jonathan Corbet <corbet@....net>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-hardening@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH v6 4/6] mm/slab: Introduce kmem_buckets_create() and
family
On 7/1/24 9:13 PM, Kees Cook wrote:
> #ifdef SLAB_SUPPORTS_SYSFS
> /*
> * For a given kmem_cache, kmem_cache_destroy() should only be called
> @@ -931,6 +1023,10 @@ void __init create_kmalloc_caches(void)
>
> /* Kmalloc array is now usable */
> slab_state = UP;
> +
> + kmem_buckets_cache = kmem_cache_create("kmalloc_buckets",
> + sizeof(kmem_buckets),
> + 0, SLAB_NO_MERGE, NULL);
Locally adjusted to put this behind "if (IS_ENABLED(CONFIG_SLAB_BUCKETS))"
> }
>
> /**
Powered by blists - more mailing lists