Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 2023 17:58:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274268] panic: vfs_lookup: encountered unexpected nul; string when a symlink contains an embedded NUL
Message-ID:  <bug-274268-227-3UldXYtb7J@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274268-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274268-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274268

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D8fca98f6881fdd68a786f4366c345159a=
b0df408

commit 8fca98f6881fdd68a786f4366c345159ab0df408
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2023-10-04 18:48:01 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2023-10-14 17:57:09 +0000

    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)

 sys/fs/fuse/fuse_ipc.h          |  1 +
 sys/fs/fuse/fuse_vnops.c        |  7 +++++++
 tests/sys/fs/fusefs/readlink.cc | 39 +++++++++++++++++++++++++++++++++++++=
++
 3 files changed, 47 insertions(+)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274268-227-3UldXYtb7J>