From nobody Sun Oct 15 02:13:31 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 4S7P171Y4zz4xXcT for ; Sun, 15 Oct 2023 02:13:31 +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 4S7P166m36z3bgM for ; Sun, 15 Oct 2023 02:13:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697336010; a=rsa-sha256; cv=none; b=Dt90rFxp92ot7PZlp2HsDwJICHiEuhag/HR+jWmvMmzb/ORQwGIP7rPWa86nSgZEzgsiEk 6txgpRWyNcWSv+JMZsVj/s0APo5zG/GXFnCFOEFds9S6RPKLfIOjzNUKjPrbtyLUE3dMo+ UBHGeYz7FPtym4du8kr1JvqSRDqOiv9Eo8qZKOfxmHzwNCWD3qkZLLVaPcVDO+Vi8Z0wKw GXxgvVHsidXJmqVwqU7x0/ajAglu82yY+gRoW7KR2N5+SLDZCs4pgekYBABMVBoYMDDbdU lrnEM/pgh600pleON7eobu/ACJTiJb6eCv969/1sK0X4yQtJmT8StNbHyR/dPA== 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=1697336010; 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=97zdAp0H5VsvS1i1pjsk4y43AGXor1016ixmTF/GYzw=; b=YLUXnLC8njw4SVLX11sizl2vi+02gMcCXvey5f0xFsMmZAqMdbbGWn8g1yCmvfb+36PGLl sVPuVch06tJSQsIA6WsrUfd66xUen2HKS8LBJGhN4otdIR2oGi/Txt8Wul+PRMh05fBZw9 8aLi7vA5SPhbhZSDliqCdwoOuR3Yd4HdvCmvTY2LWd1soiIvxaULqUVW28TFeVPEKWUJR7 RLka0hroDWgKsZ5qW+Ab4JMYIeHul39e3eoGo9RFgwf4CYka8RfMFQdlnsfxEGGrvLtZhW ZiWkkG6z4gs39SLjsQRuod+0QhMYKIOd9FLEbOkVNgKP9pu/uIsqeNUmKtGmFg== 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 4S7P165qNFzvL0 for ; Sun, 15 Oct 2023 02:13:30 +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 39F2DUfQ025107 for ; Sun, 15 Oct 2023 02:13:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39F2DUEs025106 for bugs@FreeBSD.org; Sun, 15 Oct 2023 02:13:30 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: Sun, 15 Oct 2023 02:13:31 +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: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable14? mfc-stable12- 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 #5 from commit-hook@FreeBSD.org --- A commit in branch releng/14.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0022bd418e6c0c7c767a296a3e0d3782e= 5137dce commit 0022bd418e6c0c7c767a296a3e0d3782e5137dce Author: Alan Somers AuthorDate: 2023-10-04 18:48:01 +0000 Commit: Alan Somers CommitDate: 2023-10-15 02:13:05 +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 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) 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.=