]> git.ipfire.org Git - thirdparty/linux.git/commit
rcu: Make expedited RCU CPU stall warnings detect stall-end races
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Dec 2025 19:16:15 +0000 (11:16 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 7 Jan 2026 13:58:26 +0000 (21:58 +0800)
commit255019537cfd63d6adc16a55bcbfd79530d5937e
treec6b2db76a5c312d4af67cea20d94c40b29fc20d5
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
rcu: Make expedited RCU CPU stall warnings detect stall-end races

If an expedited RCU CPU stall ends just at the stall-warning timeout,
the current code will print an expedited stall-warning message, but one
that doesn't identify any CPUs or tasks causing the stall.  This is most
likely to happen for short-timeout stalls, for example, the 20-millisecond
timeouts that are sometimes used for small embedded devices.  Needless to
say, these semi-empty stall-warning messages can be rather confusing.

One option would be to suppress the stall-warning message entirely in
this case, but the near-miss information can be quite valuable.

Detect this race condition and emits a "INFO: Expedited stall ended
before state dump start" message to clarify matters.

[boqun: Apply feedback from Borislav]

Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/tree_exp.h