Re: [PATCH v2] configfs: Fix use-after-free when accessing sd->s_dentry
From: Christoph Hellwig
Date: Fri May 17 2019 - 04:25:39 EST
On Thu, May 16, 2019 at 06:27:53PM +0530, stummala@xxxxxxxxxxxxxx wrote:
> Hi Christoph, Al,
>
> Can you please consider this patch for merging?
I've been sitting on this for a while, mostly because I can't convince
myself it is safe. What protects other threads from using ->s_dentry
just when we clear it? Also why would sd->s_dentry == dentry ever be
false?