Re: [PATCH] fuse: fix race conditions on fi->nlookup
From: Miklos Szeredi
Date: Thu Aug 22 2024 - 11:18:14 EST
On Sat, 10 Aug 2024 at 05:42, yangyun <yangyun50@xxxxxxxxxx> wrote:
>
> Lock on fi->nlookup is missed in fuse_fill_super_submount(). Add lock
> on it to prevent race conditions.
It's okay to do this without lockinghere, because this is a brand new
superblock and and a brand new root inode for that superblock, so
there's no possible access from outside this function.
So just a comment should suffice.
Thanks,
Miklos