linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] kernel: rcu: a possible sleep-in-atomic-context bug in srcu_read_delay()
@ 2018-08-13  3:04 Jia-Ju Bai
  2018-08-13  4:18 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Jia-Ju Bai @ 2018-08-13  3:04 UTC (permalink / raw)
  To: dave, paulmck, josh, rostedt, mathieu.desnoyers, jiangshanlai
  Cc: Linux Kernel Mailing List

The kernel may sleep with holding a spinlock.

The function call paths (from bottom to top) in Linux-4.16 are:

[FUNC] schedule_timeout_interruptible
kernel/rcu/rcutorture.c, 523: schedule_timeout_interruptible in 
srcu_read_delay
kernel/rcu/rcutorture.c, 1105: [FUNC_PTR]srcu_read_delay in 
rcu_torture_timer
kernel/rcu/rcutorture.c, 1104: spin_lock in rcu_torture_timer

Note that [FUNC_PTR] means a function pointer call is used.

I do not find a good way to fix, so I only report.
This is found by my static analysis tool (DSAC).


Thanks,
Jia-Ju Bai

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-15  1:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13  3:04 [BUG] kernel: rcu: a possible sleep-in-atomic-context bug in srcu_read_delay() Jia-Ju Bai
2018-08-13  4:18 ` Paul E. McKenney
2018-08-13  9:26   ` Jia-Ju Bai
2018-08-13 12:42     ` Paul E. McKenney
2018-08-15  1:05       ` Jia-Ju Bai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).