[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YagEf//iqIAk/gEf@slm.duckdns.org>
Date: Wed, 1 Dec 2021 13:25:51 -1000
From: Tejun Heo <tj@...nel.org>
To: Minchan Kim <minchan@...nel.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Marek Szyprowski <m.szyprowski@...sung.com>
Subject: Re: [PATCH] kernfs: prevent early freeing of root node
On Wed, Dec 01, 2021 at 03:16:48PM -0800, Minchan Kim wrote:
...
> Since kernfs moves the kernfs_rwsem lock into root, it couldn't hold
> the lock when the root node is tearing down. Thus, get the refcount
> of root node.
>
> Tested-by: Marek Szyprowski <m.szyprowski@...sung.com>
> Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
> Signed-off-by: Minchan Kim <minchan@...nel.org>
Acked-by: Tejun Heo <tj@...nel.org>
Thanks.
--
tejun
Powered by blists - more mailing lists