HomeFreeBSD

fusefs: improve the short read fix from r349279

Description

fusefs: improve the short read fix from r349279

VOP_GETPAGES intentionally tries to read beyond EOF, so fuse_read_biobackend
can't rely on bp->b_resid > 0 indicating a short read. And adjusting
bp->b_count after a short read seems to cause some sort of resource leak.
Instead, store the shortfall in the bp->b_fsprivate1 field.

Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on Jun 24 2019, 5:05 PM
Parents
rG44f654fdc580: fusefs: fix corruption on short reads caused by r349279
Branches
Unknown
Tags
Unknown

Event Timeline