HomeFreeBSD

fuse_vnop_copy_file_range(): add safety

Description

fuse_vnop_copy_file_range(): add safety

v_mount for unlocked vnode could be NULL, check for it. Explain why it
is safe to access fs-specific data for mp if it is read as non-NULL.

Reviewed by: asomers, jah
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42625

Details

Provenance
kibAuthored on Nov 14 2023, 10:49 PM
Reviewer
asomers
Differential Revision
D42625: fuse copy_file_range() fixes
Parents
rG318c56714aa8: fuse_vnop_copy_file_range(): use vn_lock_pair()
Branches
Unknown
Tags
Unknown