From: Bert Karwatzki <spasswolf@web.de>
To: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
"Liam R . Howlett" <Liam.Howlett@oracle.com>,
David Hildenbrand <david@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
linux-rt-devel@lists.linux.dev, Harry Yoo <harry.yoo@oracle.com>,
Hao Li <hao.li@linux.dev>,
spasswolf@web.de
Subject: Re: rtmutex deadlock and memory corruption when running gcc testsuite in next-20260303
Date: Wed, 04 Mar 2026 21:44:10 +0100 [thread overview]
Message-ID: <9541893b588ef644a06cf01bb65005e9efcb3427.camel@web.de> (raw)
In-Reply-To: <f4591e7b-d07a-402a-a051-8ff12b0ccc09@kernel.org>
Am Mittwoch, dem 04.03.2026 um 15:15 +0100 schrieb Vlastimil Babka (SUSE):
> On 3/3/26 11:21 PM, Bert Karwatzki wrote:
> > I tried building gcc-14 from the debian repositories (fetched via apt-get
> > source gcc-14) on my new and shiny zen5 machine (Cpu: "AMD Ryzen 9 9950X
> > 16-Core Processor) running debian stable/trixie and linux-next-20260303
> > (PREEMPT_RT=y) with the following command:
>
> It's probably my fault, sorry about that.
> Specifically commit 666a739089c from slab/for-next-fixes.
> Does the following fix it? The fixed commit was meanwhile
> queued so hopefully will be in next-20260304
>
> diff --git a/mm/slub.c b/mm/slub.c
> index 740edbad0475..1871c5ef354a 100644
> --- a/mm/slub.c
> +++ b/mm/slub.c
> @@ -4610,6 +4610,7 @@ __pcs_replace_empty_main(struct kmem_cache *s, struct slub_percpu_sheaves *pcs,
> }
>
> local_unlock(&s->cpu_sheaves->lock);
> + pcs = NULL;
>
> if (!allow_spin)
> return NULL;
>
>
Yes, this seem to fix the issue (two testruns without errors). So the problem was __pcs_replace_empty_main()
returning a non-NULL pcs in the case where it can't take the lock (&s->cpu_sheaves->lock) and jumps to
barn_put:.
Bert Karwatzki
prev parent reply other threads:[~2026-03-04 20:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 22:21 Bert Karwatzki
2026-03-03 23:04 ` Steven Rostedt
2026-03-04 13:54 ` Bert Karwatzki
2026-03-04 14:15 ` Vlastimil Babka (SUSE)
2026-03-04 20:44 ` Bert Karwatzki [this message]
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=9541893b588ef644a06cf01bb65005e9efcb3427.camel@web.de \
--to=spasswolf@web.de \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=david@kernel.org \
--cc=hao.li@linux.dev \
--cc=harry.yoo@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=lorenzo.stoakes@oracle.com \
--cc=mhocko@suse.com \
--cc=rostedt@goodmis.org \
--cc=surenb@google.com \
--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