From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jia-Ju Bai Subject: [BUG] sbni: a possible sleep-in-atomic bug in sbni_close Date: Tue, 12 Dec 2017 16:53:32 +0800 Message-ID: <571ba417-9419-5e60-db59-aa642a7e9450@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Linux Kernel Mailing List To: davem@davemloft.net, keescook@chromium.org, dhowells@redhat.com, timofeev@granch.ru Return-path: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org According to drivers/net/wan/sbni.c, the driver may sleep under a spinlock. The function call path is: sbni_close (acquire the spinlock) free_irq --> 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