HomeFreeBSD

fusefs: sanitize FUSE_READLINK results for embedded NULs

Description

fusefs: sanitize FUSE_READLINK results for embedded NULs

If VOP_READLINK returns a path that contains a NUL, it will trigger an
assertion in vfs_lookup. Sanitize such paths in fusefs, rejecting any
and warning the user about the misbehaving server.

PR: 274268
Sponsored by: Axcient
Approved by: gjb (re)
Reviewed by: mjg, markj
Differential Revision: https://reviews.freebsd.org/D42081

(cherry picked from commit 662ec2f781521c36b76af748d74bb0a3c2e27a76)
(cherry picked from commit 8fca98f6881fdd68a786f4366c345159ab0df408)

Details

Provenance
asomersAuthored on Oct 4 2023, 6:48 PM
Reviewer
mjg
Differential Revision
D42081: Don't panic in vfs_lookup due to paths with embedded NULs
Parents
rG3ac9fb49cc1c: zfs: merge openzfs/zfs@95785196f (zfs-2.2-release) into stable/14
Branches
Unknown
Tags
Unknown