Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbdLLDL1 (ORCPT ); Mon, 11 Dec 2017 22:11:27 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38558 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbdLLDL0 (ORCPT ); Mon, 11 Dec 2017 22:11:26 -0500 X-Google-Smtp-Source: ACJfBotfN0OfMCQ7z7nl8RPL2DX9fFF/UVoB2tKxCub6GhO+5fLEJu68E3aQjU8U4/YEyuL7lneLmA== To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, Juergen.Gaertner@mbox.si.uni-hannover.de, dewell@woods.net Cc: linux-scsi@vger.kernel.org, Linux Kernel Mailing List From: Jia-Ju Bai Subject: [BUG] drivers/scsi/wd719x: a possible sleep-in-atomic bug in wd719x_host_reset Message-ID: <515a0c3b-044f-7d83-1506-18c77e3c05e6@gmail.com> Date: Tue, 12 Dec 2017 11:11:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 376 Lines: 14 According to drivers/scsi/wd719x.c, the kernel module may sleep under a spinlock. The function call path is: wd719x_host_reset (acquire the spinlock) wd719x_chip_init request_firmware --> may sleep I do not find a good way to fix it, so I only report. This possible bug is found by my static analysis tool (DSAC) and checked by my code review. Thanks, Jia-Ju Bai