From nobody Fri Feb 27 02:29:32 2026 X-Original-To: dev-commits-src-branches@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 4fMXMw4cb1z6T7Z0 for ; Fri, 27 Feb 2026 02:29:32 +0000 (UTC) (envelope-from git@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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fMXMw1rptz40vQ for ; Fri, 27 Feb 2026 02:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772159372; 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; bh=yXfuTgKByNSj0OQCnBS/pF7CBpymgU0dfdEPi0fAi9w=; b=DjE/n6o2o+dKWyJ7CbLjtObFgp2ULuU9ALgDt4qIT6tUXEqlWz22SezAYUVxTNwfGHVGmz /bO2/iSdNxJZ7uhDE/wVgNjHae79iSkoC36vMEG19FebnwEm4/jB2ys5pTKcTeJ8bR8f0/ FICqFDm06QK5e7zk39/miY8s0YwIKqwvROFauDEnQKjX2qTW4NBwCePOCggf5cd02pz6Is O+Bg+4jezsc+HVrYZPE4uv3Cu1pVVaWhP6uFSMAgiT3busqpnNGxMtrkHIwKhHKUKnUdpl 1ZoxoaTnyupZqsyEa3qgVFxYD2+eywo2bsr9MvBZbw3wEpQTSpKMV0YqNAKsOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772159372; a=rsa-sha256; cv=none; b=xORxQN7ShJsmo0M/76LYLpPNFQ3PPj+MmbRKQ97kLDYko3jOiLoxs5wJ1iQxdXdU4xpQgB q1I9n2P4ZKV5ubCO7LVPAB2oB722TCeNl46mN+GRkJQ0vERqb0A4DEL7Dm9SyTPMKumAq4 MIggq5Ggbm/9IpmFFTRCHhcGUmSWfcu3I/fVX4mlZuBSXh+WM76bAdY7Qw6qkf9qHf0ndG zOpLZMimu6BdjTr57jGWtHyPYapDuG8GqtUGd63eZDPjD/R1FXx7E6K00rMP8Nilus/q+j Kn6d1HM/+IjvMykpIeZSyUIZD24S9JZBFAn6T0jVtA+ACCzz9uR/KnS0Min2zg== 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=1772159372; 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; bh=yXfuTgKByNSj0OQCnBS/pF7CBpymgU0dfdEPi0fAi9w=; b=SwbdlZXjEkwVZkpmo8fGtdwWcJoGYppTIDuvekk2OycvG8dXWrdrpOMNImV3l+KqP1/vxH 1Ku36IzOxBGeErL+06Zeto08gcpXoa1/X/F4crcdylLTtlPDQ65o3nUG6hKavu/VlsYwYf GR+vhwRKyfyxph4hrdCSh5fznknutryLQl74RaYqfVSC4XxW8Wx6OW0dmGMthO4PLJ7IB/ xo/43w+DBwxtJGynN8ijjGkL16mYLZUDbHXaNKEMiEHKekxKZsI37jBZu7csT7fFV2vGOu qNKUfR9gK52bOjQd5elBJpczrtX+C+TnPmR5mVvW4itnEdPwILShGvE0wShwbQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fMXMw1FtyzyGr for ; Fri, 27 Feb 2026 02:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20f22 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 27 Feb 2026 02:29:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: d4ed839d576e - stable/15 - lindebugfs: check that name is set as otherwise pfs_alloc_node_flags() panics List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: d4ed839d576e23168c8522eeb93bd2bf1d02a638 Auto-Submitted: auto-generated Date: Fri, 27 Feb 2026 02:29:32 +0000 Message-Id: <69a1018c.20f22.54448992@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d4ed839d576e23168c8522eeb93bd2bf1d02a638 commit d4ed839d576e23168c8522eeb93bd2bf1d02a638 Author: Bjoern A. Zeeb AuthorDate: 2026-01-29 11:16:50 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-02-26 23:00:23 +0000 lindebugfs: check that name is set as otherwise pfs_alloc_node_flags() panics I have hit the case multiple times that some LinuxKPI field may not be set during driver bringup and lindebugfs would cause a panic. The backtrace goes like: strlen() at strlen+0x54 pfs_create_dir() at pfs_create_dir+0x41 debugfs_create_dir() at debugfs_create_dir+0xa1 ... While the problem is clearly in LinuxKPI or the driver, we likely should at least add an assert to pfs_create_dir() if name is NULL like we have for pfs_add_node() but for lindebugfs at least make this a graceful error and continue without creating the dir instead of panicing. Sponsored by: The FreeBSD Foundation Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D54944 (cherry picked from commit 4b32fdb4a614de602d288ac5a414cb43e9f2163e) --- sys/compat/lindebugfs/lindebugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c index 8cddc6f390bc..857546f61e55 100644 --- a/sys/compat/lindebugfs/lindebugfs.c +++ b/sys/compat/lindebugfs/lindebugfs.c @@ -272,6 +272,9 @@ debugfs_create_dir(const char *name, struct dentry *parent) struct dentry *dnode; struct pfs_node *pnode; + if (name == NULL) + return (NULL); + dm = malloc(sizeof(*dm), M_DFSINT, M_NOWAIT | M_ZERO); if (dm == NULL) return (NULL);