[Bug 269261] data corruption with fspacectl and mmap

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Feb 2023 23:05:26 UTC

Alan Somers <asomers@FreeBSD.org> changed:

           What    |Removed                     |Added
 Attachment #239891|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #3 from Alan Somers <asomers@FreeBSD.org> ---
Created attachment 239891
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239891&action=edit
standalone test case for fusefs or UFS

This is a standalone test case that reproduces the problem for either UFS or
fusefs.  just compile it, and execute with "./fspace-and-mmap

Looking at the debug output of a fusefs file system, the fuse daemon gets the
FUSE_FALLOCATE operation before it ever sees the FUSE_WRITE, which seems wrong.
 I think the VFS needs to flush mapped pages in vn_deallocate_impl.

You are receiving this mail because:
You are the assignee for the bug.