[Virtio-fs] WARN_ON(fuse_insert_writeback(root, wpa)) in tree_insert()

Miklos Szeredi miklos at szeredi.hu
Thu Oct 29 15:20:55 UTC 2020


On Thu, Oct 29, 2020 at 4:02 PM Qian Cai <cai at redhat.com> wrote:
>
> On Wed, 2020-10-07 at 16:08 -0400, Qian Cai wrote:
> > Running some fuzzing by a unprivileged user on virtiofs could trigger the
> > warning below. The warning was introduced not long ago by the commit
> > c146024ec44c ("fuse: fix warning in tree_insert() and clean up writepage
> > insertion").
> >
> > From the logs, the last piece of the fuzzing code is:
> >
> > fgetxattr(fd=426, name=0x7f39a69af000, value=0x7f39a8abf000, size=1)
>
> I can still reproduce it on today's linux-next. Any idea on how to debug it
> further?

Can you please try the attached patch?

Thanks,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fuse-launder-page-should-wait-for-page-writeback.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20201029/2a0bb227/attachment.bin>


More information about the Virtio-fs mailing list