HomeFreeBSD

pgcache read: protect against reads past end of the vm object size

Description

pgcache read: protect against reads past end of the vm object size

If uio_offset is past end of the object size, calculated resid is negative.
Delegate handling this case to the locked read, as any other non-trivial
situation.

PR: 253158
Reported by: Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>
Tested by: cy
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Feb 15 2021, 3:34 AM
Parents
rG184c1b943937: zfs: merge OpenZFS master-436ab35a5
Branches
Unknown
Tags
Unknown