[<prev] [next>] [day] [month] [year] [list]
Message-ID: <aa6f7a10-0be3-0178-cba7-a3a03a5b1191@163.com>
Date: Tue, 3 Oct 2017 11:08:24 +0800
From: Jia-Ju Bai <baijiaju1990@....com>
To: jth@...nel.org, jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com
Cc: fcoe-devel@...n-fcoe.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [BUG] scsi/libfc: Sleep-in-atomic bugs in libfc
According to fc_disc.c, the driver may sleep under a RCU lock,
and the function call paths are:
fc_disc_done (acquire the RCU lock)
fc_rport_logoff
mutex_lock --> may sleep
fc_disc_done (acquire the RCU lock)
fc_rport_login
mutex_lock --> may sleep
fc_disc_stop_rports
fc_rport_logoff
mutex_lock --> may sleep
These bugs are found by my static analysis tool and my code review.
Thanks,
Jia-Ju Bai
Powered by blists - more mailing lists