From nobody Sun Oct 15 13:20:14 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 4S7gpQ5VK5z4wwqD for ; Sun, 15 Oct 2023 13:20:14 +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 4S7gpQ4TkKz3Ty3 for ; Sun, 15 Oct 2023 13:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697376014; a=rsa-sha256; cv=none; b=orUs+u6G8JSTWy++6JPeZaNWYM5odw58t+n01MFnjITHwxOEoUfpNQeeqfgbVllXse1/IV kc6G/mhw9TnZf2VxSTRgxg4wKffDHdkJ6l2WlNTpXgcgN0z0xGMv8xXac2kJjoqGeQsOkL q9iYPMEIjyAbDrEZ+P01adV56W6O8B7a4Z5uynhbdLSUZNh7QvGPC+Hl7bDZPVYO6Mhece Qn3eoOrO3ajWyboJIWYemVVqFimjRNpK0Fc0zegQoq4mScbW3at42baQ7tKQVHCvz7oVi7 ChWdNLc6XPJYBVofy5uc48EW70MoTDEqpMbXJ17C1XEoSpRXNxOxxrG1xBfnUw== 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=1697376014; 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=BK8qXIoMEuDIhf4lnE7nEeGhkPFems6kYZVQAvUiJHE=; b=ojFofDydDnjhgQL4qhNKb3ZoslHtPx8mXTlyLR7z6bXD0TO7Jsbx3tnlARrGS8GqOXRoBx XkyqE1YM4cUbyHGFWwD9YcMf0Z4n2dJtVLNM9CCVqX9Br8KC/BoLbDh2BtfeaGm/6uENY8 VcSA7p3p67lJEaX1Tz6YTVmSQqlUuVydWhiURl/46MCqGbO2UthpvUu5sbL+sBsRyDWDQf rKg1ne9++Df4Bs0KdtbG0gr/X6vYrRAB0DDWUIIXHWv0r/Y1pE8oHskS4E+Av57cNv8pa3 iCd4faU76Uym3e9l5hvsF0KxVx6t5m4va1Jzn+GMwgXNIJX8BT1v4P9zRa0xAg== 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 4S7gpQ3bhsz1DK5 for ; Sun, 15 Oct 2023 13:20:14 +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 39FDKEwt018016 for ; Sun, 15 Oct 2023 13:20:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39FDKEJU018015 for bugs@FreeBSD.org; Sun, 15 Oct 2023 13:20:14 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 13:20:14 +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: Closed X-Bugzilla-Resolution: FIXED 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 #6 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dec3864cc68617edb106724a6d423b47ec= 455e31b commit ec3864cc68617edb106724a6d423b47ec455e31b Author: Alan Somers AuthorDate: 2023-10-04 18:48:01 +0000 Commit: Alan Somers CommitDate: 2023-10-15 13:02:07 +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.=