mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] fs/dlm: A possible sleep-in-atomic bug in dlm_master_lookup
@ 2017-10-07  1:59 Jia-Ju Bai
  2017-10-07  2:26 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Jia-Ju Bai @ 2017-10-07  1:59 UTC (permalink / raw)
  To: ccaulfie, teigland, viro; +Cc: cluster-devel, linux-kernel

According to fs/dlm/lock.c, the kernel may sleep under a spinlock,
and the function call path is:
dlm_master_lookup (acquire the spinlock)
   dlm_send_rcom_lookup_dump
     create_rcom
       dlm_lowcomms_get_buffer
         nodeid2con
           mutex_lock --> may sleep

This bug is found by my static analysis tool and my code review.

Thanks,
Jia-Ju Bai

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

end of thread, other threads:[~2017-10-09 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-07  1:59 [BUG] fs/dlm: A possible sleep-in-atomic bug in dlm_master_lookup Jia-Ju Bai
2017-10-07  2:26 ` Al Viro
2017-10-09 14:37   ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome