From: "Harry Yoo (Meta)" <harry@kernel.org>
To: Vlastimil Babka <vbabka@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Imre Kaloz <kaloz@kernel.org>
Cc: kernel-team@meta.com, Hao Li <hao.li@linux.dev>,
Christoph Lameter <cl@gentwo.org>,
David Rientjes <rientjes@google.com>,
Roman Gushchin <roman.gushchin@linux.dev>,
Jann Horn <jannh@google.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org,
"Jose A . Perez de Azpillaga" <azpijr@gmail.com>
Subject: Re: [PATCH v2] mm/slab: sample slab_state once in kmem_cache_destroy()
Date: Wed, 14 Oct 2026 20:54:05 +0100 [thread overview]
Message-ID: <179200759984.3589452.3981388920201754777.b4-ty@b4> (raw)
In-Reply-To: <20261014150844.8536-1-kaloz@kernel.org>
On Wed, 14 Oct 2026 17:08:43 +0200, Imre Kaloz wrote:
> kmem_cache_release() tests slab_state >= FULL after kmem_cache_destroy()
> has dropped slab_mutex and unlinked the cache, and for a
> SLAB_TYPESAFE_BY_RCU cache after rcu_barrier(). If slab_late_init() runs
> before that test it sets slab_state to FULL but skips the unlinked cache,
> which never got a sysfs entry, so sysfs_slab_release() calls kobject_put()
> on a kobject that was never initialized:
>
> [...]
Applied to mm/slab.git slab/for-next, thanks!
[1/1] mm/slab: sample slab_state once in kmem_cache_destroy()
commit: 6d9bc3d860e64e2c5dbfd7531954df9ea8c388aa
--
Cheers,
Harry / Hyeonggon
next prev parent reply other threads:[~2026-10-14 19:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 15:08 Imre Kaloz
2026-10-14 19:46 ` Harry Yoo
2026-10-14 19:59 ` Harry Yoo
2026-10-14 19:54 ` Harry Yoo (Meta) [this message]
2026-10-15 7:21 ` Vlastimil Babka (SUSE)
2026-10-15 14:48 ` Harry Yoo
2026-10-15 16:13 ` Vlastimil Babka (SUSE)
2026-10-16 22:54 ` Imre Kaloz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179200759984.3589452.3981388920201754777.b4-ty@b4 \
--to=harry@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=azpijr@gmail.com \
--cc=cl@gentwo.org \
--cc=hao.li@linux.dev \
--cc=jannh@google.com \
--cc=kaloz@kernel.org \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=stable@vger.kernel.org \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®