All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [BUG] fs/dlm: A possible sleep-in-atomic bug in dlm_master_lookup
@ 2017-10-07  1:59 ` Jia-Ju Bai
  0 siblings, 0 replies; 6+ messages in thread
From: Jia-Ju Bai @ 2017-10-07  1:59 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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] 6+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.