Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [BUG] scsi/fcoe: Sleep-in-atomic bugs in fcoe driver
@ 2017-10-03  3:02 Jia-Ju Bai
  2017-10-04 10:06 ` Johannes Thumshirn
  0 siblings, 1 reply; 2+ messages in thread
From: Jia-Ju Bai @ 2017-10-03  3:02 UTC (permalink / raw)
  To: jth, jejb, martin.petersen; +Cc: fcoe-devel, linux-scsi, linux-kernel

According to fcoe_ctlr.c, the driver may sleep under a RCU lock,
and the function call paths are:
fcoe_ctlr_disc_stop_locked (acquire the RCU lock)
   fc_rport_logoff
     mutex_lock --> may sleep

fcoe_ctlr_vn_disc
   fc_rport_login
     mutex_lock --> may sleep

fcoe_ctlr_vn_age
   fc_rport_logoff
     mutex_lock --> may sleep

These bugs are found by my static analysis tool and my code review.

Thanks,
Jia-Ju Bai

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

end of thread, other threads:[~2017-10-04 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03  3:02 [BUG] scsi/fcoe: Sleep-in-atomic bugs in fcoe driver Jia-Ju Bai
2017-10-04 10:06 ` Johannes Thumshirn

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