From nobody Wed Nov 18 07:42:07 2026 X-Original-To: dev-commits-src-all@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 4jTtpl1lkNz6yxkN for ; Wed, 18 Nov 2026 07:42:07 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jTtpl0wRCz4K4C for ; Wed, 18 Nov 2026 07:42:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794987727; 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=tlTxlno5noRVuju+LGV9peeX8IpmmSG6aQ0rF9tIzQk=; b=j8r5R3/hbp3cVmdrNtx6iw78YFFgYoj+Tw0yEfBHsJV7ixho9GPhuPxomFt1+gUBPDi/6V RTj4FvY5mrbXVQW4pverwzcO+CGWnhXYyKILdJfuZTkkPDJzUihcZFbToN3QPTWkXvQ7Sk PvsUywjuYiJa3Hi6QoPHsin9efb1RcgI4uF9oSzL9ZmK87Pc+4S3FUx6M88wlgLKWgCTsh YdLBvBx7brIzgdKvsZsVLsW6FGfkBiC7VyYiD5mbPNQEMvxq/u145JSgGXyAoLgcVNS27t 9Ki+Hq7tY9PCh/eh9AmDok8KCVUmvn/93YicXF4em28RXaxwhLlabJfidgpYrA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794987727; b=g9fmNg7Nx6PXrum/LSnS1qneg/Ls1hIfvVCL9lt0iV+EDSPs3sOfHDQFcGug4bVQ1aFbbl pEpSqwqV1unCTUsxcG/N8GwMj9AQsqESow7ubU9M6r7X8nD6Zg/eU5MN9158AY16HcG99+ U53Pr4bvPqlv93gzBupW5xJ3AKVM9QvAdFCeeSafcUC4pU7qHwstnqLsaFqD1YkI82M0te 0If9LuVt1hEMbqREnczOq8KJ5poYiUnksLz8V6Ylzzs4QsAcaUcrC4EMhVhiN+qBzLW6U+ fyillGIOyhiBNSFlhJELqEZTCiYVfY7sLo6DHCSsDjL7xBqOCepdi6d850AjUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794987727; 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=tlTxlno5noRVuju+LGV9peeX8IpmmSG6aQ0rF9tIzQk=; b=UXnVYa3ZRSQBceKbCAXLBu1zbye6isBjb+h0Txso6rqfTgYOjQUs2meY8IbOSyxuIK3v1j +pzm6hXSjgsCURa9dvGqrvy3ZmLJmQ/mUyU9S7M8WR11/c6OXmtQOZfLxJjAUUyRXOv5+K gB9x2pX9S0d/nLyf5njeD52yyk9WOyWEX3IbVbhD0L8zpCSJOVdiURTx95781lxiBoayM9 ozceGK/mv4KoSxuzqMK9AofWqcUjI1gmbHcgZNrLUTC4ao6fSJUembWaOax9xrgcTYeC/E h0KagMivavfU9NCR7z33h7c4SLaCPkrLvnlBdPzHrV51FbiK599GxVjPpzdOJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jTtpl0bGKz1Jyx for ; Wed, 18 Nov 2026 07:42:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 14cdc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 18 Nov 2026 07:42:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: c343c445e2c9 - main - lindebugfs: Free the kcov symlink when the module is unloaded List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c343c445e2c9ef2c865aaabb9c56ab143b04adb7 Auto-Submitted: auto-generated Date: Wed, 18 Nov 2026 07:42:07 +0000 Message-Id: <6afd56cf.14cdc.6b78077d@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=c343c445e2c9ef2c865aaabb9c56ab143b04adb7 commit c343c445e2c9ef2c865aaabb9c56ab143b04adb7 Author: Emmanuel Vadot AuthorDate: 2026-11-04 08:14:38 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-18 07:42:02 +0000 lindebugfs: Free the kcov symlink when the module is unloaded lindebugfs_init() creates the "kcov" symlink with debugfs_create_symlink(), which allocates a node and a copy of the destination, but passed no destroy callback to pfs_create_link(). pseudofs therefore never released them and the "debugfsint" malloc type was reported as leaking memory each time the module was unloaded. Use debugfs_destroy(), as done for the other nodes. Differential Revision: https://reviews.freebsd.org/D61221 --- sys/compat/lindebugfs/lindebugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c index b79990ae36d4..b26d2b31b62f 100644 --- a/sys/compat/lindebugfs/lindebugfs.c +++ b/sys/compat/lindebugfs/lindebugfs.c @@ -349,7 +349,7 @@ debugfs_create_symlink(const char *name, struct dentry *parent, pnode = debugfs_root; pfs_create_link(pnode, &dnode->d_pfs_node, name, &debugfs_fill_data, - NULL, NULL, NULL, PFS_NOWAIT); + NULL, NULL, debugfs_destroy, PFS_NOWAIT); if (dnode->d_pfs_node == NULL) goto fail; dnode->d_pfs_node->pn_data = dm;