linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] fs/dcache: might_sleep is called under a spinlock
@ 2017-10-03  2:38 Jia-Ju Bai
  2017-10-03  3:19 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Jia-Ju Bai @ 2017-10-03  2:38 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel

According to fs/dcache.c, might_sleep is called under a spinlock,
and the function call path is:
d_prune_aliases (acquire the spinlock)
   dput
     might_sleep

This bug is found by my static analysis tool and my code review.
A possible fix is to remove might_sleep in dput.

Thanks,
Jia-Ju Bai

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

end of thread, other threads:[~2017-10-03  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03  2:38 [BUG] fs/dcache: might_sleep is called under a spinlock Jia-Ju Bai
2017-10-03  3:19 ` Al Viro
2017-10-03  8:46   ` 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).