Re: [PATCH] fuse: serialize processing table installation with I/O
From: Cen Zhang
Date: Fri Oct 16 2026 - 06:28:56 EST
Hi Miklos,
Miklos Szeredi <miklos@xxxxxxxxxx> 于2026年10月16日周五 18:18写道:
>
> On Thu, 8 Oct 2026 at 08:29, Cen Zhang <zzzccc427@xxxxxxxxx> wrote:
> >
> > The processing table of a /dev/fuse endpoint must be initialized before
> > I/O can use it. fuse_dev_open() leaves pq.processing NULL, and
> > fuse_dev_install_with_pq() publishes fud->chan before assigning the
> > table. fuse_get_dev() accepts the published channel without taking
> > fch->lock, so the installer's channel lock does not protect the reader.
>
> Thanks for the patch. I arrived at a very similar fix for this issue:
>
> https://lore.kernel.org/fuse-devel/20261016082243.2865588-1-mszeredi@xxxxxxxxxx/T/#u
>
> Added Reported-by: tag from you.
>
> Thanks,
> Miklos
Thanks, Miklos. Appreciate for that.
Best regards
Cen Zhang