Thread (35 messages) 35 messages, 8 authors, 2021-07-23

Re: linux-5.13.2: warning from kernel/rcu/tree_plugin.h:359

From: Matthew Wilcox <willy@infradead.org>
Date: 2021-07-18 22:52:34
Also in: lkml, rcu, stable

On Sun, Jul 18, 2021 at 02:59:14PM -0700, Paul E. McKenney wrote:
quoted
quoted
https://lore.kernel.org/lkml/CAK2bqVK0Q9YcpakE7_Rc6nr-E4e2GnMOgi5jJj=_Eh_1k
EHLHA@mail.gmail.com/
But this one does show this warning in v5.12.17:

	WARN_ON_ONCE(!preempt && rcu_preempt_depth() > 0);

This is in rcu_note_context_switch(), and could be caused by something
like a schedule() within an RCU read-side critical section.  This would
of course be RCU-usage bugs, given that you are not permitted to block
within an RCU read-side critical section.

I suggest checking the functions in the stack trace to see where the
rcu_read_lock() is hiding.  CONFIG_PROVE_LOCKING might also be helpful.
I'm not sure I see it in this stack trace.

Is it possible that there's something taking the rcu read lock in an
interrupt handler, then returning from the interrupt handler without
releasing the rcu lock?  Do we have debugging that would fire if
somebody did this?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help