linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] skge: a possible sleep-in-atomic bug in skge_remove
@ 2017-12-12  8:38 Jia-Ju Bai
  2017-12-12 13:34 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Jia-Ju Bai @ 2017-12-12  8:38 UTC (permalink / raw)
  To: mlindner, stephen, shemminger, shemminger
  Cc: netdev, Linux Kernel Mailing List

According to drivers/net/ethernet/marvell/skge.c, the driver may sleep 
under a spinlock.
The function call path is:
skge_remove (acquire the spinlock)
   free_irq --> may sleep

I do not find a good way to fix it, so I only report.
This possible bug is found by my static analysis tool (DSAC) and checked 
by my code review.


Thanks,
Jia-Ju Bai

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

end of thread, other threads:[~2017-12-14  3:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12  8:38 [BUG] skge: a possible sleep-in-atomic bug in skge_remove Jia-Ju Bai
2017-12-12 13:34 ` David Miller
2017-12-12 18:22   ` Stephen Hemminger
2017-12-13  1:57     ` David Miller
2017-12-13  5:18       ` Stephen Hemminger
2017-12-13  7:42         ` Jia-Ju Bai
2017-12-13 16:50           ` Stephen Hemminger
2017-12-14  3:06             ` 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).