git: fuse: zero-fill the tail of a short read
Aaron LI
aly at crater.dragonflybsd.org
Wed Nov 18 05:12:57 PST 2026
commit 5174c279019fd7c104d9269a94e8b3a0f2903322
Author: David Bidner <david at crap.solutions>
Date: Sun Nov 1 08:32:42 2026 +0100
fuse: zero-fill the tail of a short read
A short FUSE_READ reply copied only the returned bytes into the 4 KiB
BIO buffer, leaving the rest stale, so an mmap read of an unwritten
hole returned old data. Clamp the copy to b_bcount and zero the
remainder.
Bug: https://bugs.dragonflybsd.org/issues/3459
Summary of changes:
sys/vfs/fuse/fuse_vnops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5174c279019fd7c104d9269a94e8b3a0f2903322
--
DragonFly BSD source repository
More information about the Commits
mailing list