[<prev] [next>] [day] [month] [year] [list]
Message-ID: <6ac71618-c2e5-cba5-0e32-c961961eed20@163.com>
Date: Sun, 8 Oct 2017 23:13:42 +0800
From: Jia-Ju Bai <baijiaju1990@....com>
To: peppe.cavallaro@...com, alexandre.torgue@...com,
davem@...emloft.net
Cc: netdev@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [BUG] stmmac: A possible sleep-in-atomic bug in stmmac_suspend
According to stmmac_main.c, the driver may sleep under a spinlock,
and the function call path is:
stmmac_suspend (acquire the spinlock)
stmmac_disable_all_queues
napi_disable
might_sleep --> may sleep
msleep --> may sleep
This bug is found by my static analysis tool and my code review.
Thanks,
Jia-Ju Bai
Powered by blists - more mailing lists