From nobody Sun May 12 01:14:19 2024 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 4VcPlv5T8kz5Jxwd for ; Sun, 12 May 2024 01:14:19 +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 4VcPlv4QQ2z46KP for ; Sun, 12 May 2024 01:14:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715476459; a=rsa-sha256; cv=none; b=QnWTFENlrU6CMUkdA6SQYO1lueUNc51kL/wmm5I0rkqzExB4RRPjx7DixozaKR0BDe4EQh zWf0IC3ouPGTB6i2UEQXdDhw6/4v3j/6+66dGuhfw/vbK4PmzOM2l6eOTIymhRDy01ixGn fJfmWYuTNmG6iZ7EiZv9ptCT+DAa1WuMreGft9tFGS6atgGx7bmUpxrnriluaBwXVQO2wC RI1XD/CLr4PUQ/WBCR7cHv9STkhczYStF81lfNbSP5DGkdbW9UH5Vrc/T+VuDU6VnpZ3UG iYT+ikc/n+ftmfmytLo5twlvGtY2ucTAOllF1RpSqnGoaTEQCOy7Wah2Cn6C0A== 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=1715476459; 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=25ZD70I+d+5J57RHoMdQqJAUeztaM2OOx6mV55VJ964=; b=YBIulQjJp/nEVBOM8bX7Feq/Q4SNz4Fd0D1Q8wDMdU4gHNescEuNggOAtRz8EyZmHj/NT9 QR2W1dY3j3jdxsXRJObmQsBxan7B/bgJ0xtj0k2q5qapbBzm22uO1snT7NDtbrBKudZpbE GgwJBOUJucJ6Bwqqjlqbe3kgjWN9+suSpPNMZFk8wxfARA3qmYpdaWN07PNQEWDCRX5IeZ K6DWwoU/8mVFIAXuQwI5Web2BcZmcMg1Hh8/yeLrsYSVC+8kPO/+MCCjH9gtTqt57nqdVt Z8cGH2M7UVIONudOVNgitowcnB1QDTVoQe0HkJa6eLD/Ff06upBnugIXoublnA== 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 4VcPlv42NczkBy for ; Sun, 12 May 2024 01:14:19 +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 44C1EJpv099884 for ; Sun, 12 May 2024 01:14:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44C1EJ2E099883 for bugs@FreeBSD.org; Sun, 12 May 2024 01:14:19 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 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware Date: Sun, 12 May 2024 01:14:19 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: 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=3D278826 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3De93404065177d6c909cd64bf7d74fe0d8= df35edf commit e93404065177d6c909cd64bf7d74fe0d8df35edf Author: Konstantin Belousov AuthorDate: 2024-05-07 13:23:28 +0000 Commit: Konstantin Belousov CommitDate: 2024-05-12 01:13:00 +0000 cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called only once per allocated vm_object. Otherwise, since constructors are not idempotent, we e.g. leak device reference in case of non-managed pager. PR: 278826 Reported by: Austin Zhang Reviewed by: alc, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D45113 sys/vm/device_pager.c | 70 +++++++++++++++++++++++++++++++++++++----------= ---- 1 file changed, 51 insertions(+), 19 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=