From nobody Sat Oct 14 17:58:05 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 4S7B1T5cDfz4x4Yn for ; Sat, 14 Oct 2023 17:58:05 +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 4S7B1T4Tklz4Tpk for ; Sat, 14 Oct 2023 17:58:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697306285; a=rsa-sha256; cv=none; b=H77Xolt19TiO6Ew9Am5czVbIjXmBuAFdWqvKFmfwq9Ad43yKxG5jA090ACR2Vrj0Lb5x/h 08W+KkHYUoHKWKZJ/uV7P5exlWCxhTNQSO5aoPqk/C6Ku7RCUj1h/DsD9fsjFr62elLW+C GbLrlWiM/gy2MnUbjoNstE5o/z1tMeec4CytXS5GeJYgx2RInE2EJSwYRTTt9t9teLSZmc eJrpWe9J5AffiOeOaZuSFAkBxVENlnodXy5ftX0SqjWpF/6wQaDG4J5iYtgo2IcswBQduk FOo6j8cY4ZA0vAiqzmo/Q+gFsQ5Me4SDCQnqPfJ2ZwMiM+13dIQ725YDYdhLwg== 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=1697306285; 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=T+6ZCDqbNeiSed1G+3UsktE6G/qZUivxrZfiNS2h2/M=; b=dvKdcNOg7Jo5u4vnZFPESmuWH+6uVf0E7zVp8WUlYe80RGO6cJiuJbTsdW0wkuSfQhxHHK jl/dyDP6xqTCqr82sEuiUxmKPW9yXeSdVgbzFxkBv8yFmYQaoJytvu5LkBPB0xM0LzhaVJ qzIP0ytXwwU4Bl34ydohZWI8L/pFrIXSHRtnQ5HmyT4p1vBzxcUYr9SWYZ2bKhYbDT/LhD dJl1Jyu7/VXFYk7ojEewNPdtsC/LejbWpsCAs9g6u2SLKq39VjvmZ6cGO6+1Zvh8vDZl3p HOy1Pk/lBcPcP4vp6122Fwir179e9WZ9kHTVG6yuqUwRTRA2+re6bIunTOSRPw== 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 4S7B1T2RKRzg0f for ; Sat, 14 Oct 2023 17:58:05 +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 39EHw5mZ053981 for ; Sat, 14 Oct 2023 17:58:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39EHw5l0053980 for bugs@FreeBSD.org; Sat, 14 Oct 2023 17:58:05 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, 14 Oct 2023 17:58:05 +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 #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 AuthorDate: 2023-10-04 18:48:01 +0000 Commit: Alan Somers 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.=