[Bug 236977] [msdosfs] returns cached truncated data

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 3 17:03:03 UTC 2019


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

--- Comment #7 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kib
Date: Wed Apr  3 17:02:19 UTC 2019
New revision: 345847
URL: https://svnweb.freebsd.org/changeset/base/345847

Log:
  msdosfs: zero tail of the last block on truncation for VREG vnodes as well.

  Despite the call to vtruncbuf() from detrunc(), which results in
  zeroing part of the partial page after EOF, there still is a
  possibility to retain the stale data which is revived on file
  enlargement.  If the filesystem block size is greater than the page
  size, partial block might keep other after-EOF pages wired and they
  get reused then.  Fix it by zeroing whole part of the partial buffer
  after EOF, not relying on vnode_pager_setsize().

  PR:   236977
  Reported by:  asomers
  Tested by:    pho
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Changes:
  head/sys/fs/msdosfs/msdosfs_denode.c

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


More information about the freebsd-fs mailing list