From: Thomas Gleixner <tglx@linutronix.de>
To: paulmck@kernel.org, Christian Heusel <christian@heusel.eu>
Cc: Rik van Riel <riel@surriel.com>,
Neeraj Upadhyay <neeraj.upadhyay@kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Zqiang <qiang.zhang1211@gmail.com>,
Thorsten Blum <thorsten.blum@linux.dev>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-kernel@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: Warning/trace in kernel/smp.c:815 smp_call_function_many_cond
Date: Mon, 24 Feb 2025 22:33:03 +0100 [thread overview]
Message-ID: <87jz9ff2pc.ffs@tglx> (raw)
In-Reply-To: <99c7bdb6-76e3-42ce-9a0d-c5b72a2c132a@paulmck-laptop>
On Mon, Feb 24 2025 at 06:57, Paul E. McKenney wrote:
> On Mon, Feb 24, 2025 at 02:57:40PM +0100, Christian Heusel wrote:
>> Hello everyone,
>>
>> I have noticed the following new warning in my dmesg output, I think I
>> have first seen this when upgrading to v6.14-rc1.
>>
>> So far I have been unsuccessfull in bisecting it, therefore it would be
>> nice to get some input whether this is something serious or how I could
>> debug it further. I have also attached a full dmesg for more context.
>>
>> ------------[ cut here ]------------
>> WARNING: CPU: 3 PID: 0 at kernel/smp.c:815 smp_call_function_many_cond+0x46b/0x4c0
>
> This happens when something invokes one of the smp_call_function()
> APIs not in task context, that is, if it is called from NMI, hard IRQ,
> or soft IRQ contexts.
>
> Which it is in this case, due to clocksource_watchdog() being invoked
> from a timer handler. This only matters if the clocksource is being
> marked unstable, which is what you are seeing.
>
> One possible fix is to move the call to cs->mark_unstable(cs) from
> __clocksource_unstable() to clocksource_watchdog_work(). This would
> require marking the clocksource so that clocksource_watchdog_work()
> could find it.
>
> But is there a better way?
That's fine and should be trivial to do. This business is asynchronous
anyway, so it does not matter much when the unstable call is a bit
delayed.
Thanks,
tglx
prev parent reply other threads:[~2025-02-24 21:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-24 13:57 Warning/trace in kernel/smp.c:815 smp_call_function_many_cond Christian Heusel
2025-02-24 14:57 ` Paul E. McKenney
2025-02-24 21:33 ` Thomas Gleixner [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=87jz9ff2pc.ffs@tglx \
--to=tglx@linutronix.de \
--cc=christian@heusel.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@kernel.org \
--cc=neeraj.upadhyay@kernel.org \
--cc=paulmck@kernel.org \
--cc=qiang.zhang1211@gmail.com \
--cc=regressions@lists.linux.dev \
--cc=riel@surriel.com \
--cc=thorsten.blum@linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.