Date: Fri, 03 Feb 2023 23:05:26 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269261] data corruption with fspacectl and mmap Message-ID: <bug-269261-227-kuLjtJAXol@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269261-227@https.bugs.freebsd.org/bugzilla/> References: <bug-269261-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269261 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=3D239891&action= =3Dedit 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 /path/to/filesystem/x.bin". Looking at the debug output of a fusefs file system, the fuse daemon gets t= he FUSE_FALLOCATE operation before it ever sees the FUSE_WRITE, which seems wr= ong. I think the VFS needs to flush mapped pages in vn_deallocate_impl. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269261-227-kuLjtJAXol>