[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a64563c5-9f87-5150-fb2f-4e7220703c2d@163.com>
Date: Tue, 3 Oct 2017 10:38:25 +0800
From: Jia-Ju Bai <baijiaju1990@....com>
To: viro@...iv.linux.org.uk
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [BUG] fs/dcache: might_sleep is called under a spinlock
According to fs/dcache.c, might_sleep is called under a spinlock,
and the function call path is:
d_prune_aliases (acquire the spinlock)
dput
might_sleep
This bug is found by my static analysis tool and my code review.
A possible fix is to remove might_sleep in dput.
Thanks,
Jia-Ju Bai
Powered by blists - more mailing lists