[Bug 236977] [msdosfs] returns cached truncated data

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 3 12:37:57 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236977

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org

--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Alan Somers from comment #0)
This is somewhat strange.  What is the block size on your testing file system ?

Call sequence is
msdosfs_setattr()->detrunc()->vtruncbuf()->vnode_pager_setsize(), and the last
call zeroes the invalid portion of the partially valid last page.  I suspect
that in your test case block size is greater than the page size, and lingering
pages from the last block after the new EOF are not cleared.

If I am right, then the attached patch might fix it to you:

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


More information about the freebsd-fs mailing list