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
Reviewed by: mjg, markj
Differential Revision: https://reviews.freebsd.org/D42081

(cherry picked from commit 662ec2f781521c36b76af748d74bb0a3c2e27a76)

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
rG1b934004c04c: mrsas: Fix callout locking in mrsas_complete_cmd()
Branches
Unknown
Tags
Unknown