From: Jia-Ju Bai Subject: [BUG] haswell: A possible sleep-in-atomic bug in hsw_irq_thread Date: Sun, 8 Oct 2017 23:06:38 +0800 Message-ID: <0ba5fa3a-1202-752f-e7f2-5d689b6a9e7c@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by alsa0.perex.cz (Postfix) with ESMTP id 6D228266C2E for ; Sun, 8 Oct 2017 17:06:45 +0200 (CEST) Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: yang.jie@linux.intel.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: alsa-devel@alsa-project.org, Linux Kernel Mailing List List-Id: alsa-devel@alsa-project.org According to sst-haswell-ipc.c, the driver may sleep under a spinlock, and the function call path is: hsw_irq_thread (acquire the spinlock) hsw_process_notification hsw_log_message mutex_lock --> may sleep This bug is found by my static analysis tool and my code review. Thanks, Jia-Ju Bai