From nobody Sat Oct 07 14:25:42 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S2ndf3Zrpz4wXGr for ; Sat, 7 Oct 2023 14:25:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2ndf27Dpz4dLN for ; Sat, 7 Oct 2023 14:25:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696688742; a=rsa-sha256; cv=none; b=Vkbf4MpGaa8bY4PkBBePrmtA2vfpFxmgXjhdMGboj3qhWzufcE1l/VTq0GZ5xooC68QVtk qjKDtHw3B/TFWE0CchTMnkpKGZzHMmmt8iIANJ6JUV1bITFH12jFNKUOmBNj3haWmkO6TD 95+/krYx8M4xpZAbsvoPaMnqWdb9/ym2pMuVm1nE/thmQymTFTVebd3nOI62OraTz9HIbE 2y656xu2u4FrX2fIQoA0KsiIrzQKQV2bwljVCpyLJQslQ5a59j+OjMCOXfiCncr7xYXh0Y Xt911noucVEdDhpa1anJFeUBHAy/vqY3EzIKI5HLxwGBi5PkBhkGV5agcw2jtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696688742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aPYNVFezsNZkF66eMLtQe6ToOhA0EUhskj+zJku2ucI=; b=DIsHGkMQ15dtOtnlx62zTDDN8l5hG7ZyYc8ftKkVDVUWRST6DmceKo7Kn6qKfSTjLIj76i nS+R4d8EHdiYwYk1e0eptNYUMnmDmlh80doL85MjOARSYoeSF2cYLuSEQ6DaWRwEckE3TW REmaLzXbmeuFS3tknAKbNmEgSlTr5NFXp4TjC5bsb9x3y+Iq21df4dxffzIoAzsUaJAc2f V71C2XgUEftzJxev7qGpbW+Kejk2EKc8kd2C03LhLkSa3RRlLj9DbTAmH4MxrKhhzpNpIA F7VnreLP7h6fLb1/mCNLiu7qe4T7zmnyLxfA0Bwba9hCyof1eDfHMnVemMb95w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S2ndf1CP1zZR8 for ; Sat, 7 Oct 2023 14:25:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 397EPgdE096308 for ; Sat, 7 Oct 2023 14:25:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 397EPgL1096307 for bugs@FreeBSD.org; Sat, 7 Oct 2023 14:25:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 07 Oct 2023 14:25:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274268 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D662ec2f781521c36b76af748d74bb0a3c= 2e27a76 commit 662ec2f781521c36b76af748d74bb0a3c2e27a76 Author: Alan Somers AuthorDate: 2023-10-04 18:48:01 +0000 Commit: Alan Somers CommitDate: 2023-10-07 14:22:03 +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 MFC after: 1 week Sponsored by: Axcient Reviewed by: mjg, markj Differential Revision: https://reviews.freebsd.org/D42081 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.=