From nobody Tue May 7 09:14:48 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 4VYXfc37Zpz5KQT4 for ; Tue, 07 May 2024 09:14:48 +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 4VYXfc1X6Pz4dc6 for ; Tue, 7 May 2024 09:14:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715073288; a=rsa-sha256; cv=none; b=bTeui6+BjK5KrIavdmKctk0lySiEDhWdXVNsCwVbUosDaK+AABY0T6wNde7JnEV4ly47Iu KX5qvym4CbbuOV5N2ZPO8xq5uwaf1XfGxsHHOAU+azUrEzGz8gWMT6TI9E3LeUF3YAbHv1 tzT+wYY0cxO0Y0GtpEljHtYpXYt782NFAN7mOnccfJDZS12wU/BqkKXCJ6O9qsav4V193/ ROtT/oIHB1hMHKD01isJW5gUIOQrKv5Vye/xsNq/MgyWPs7fp0j+cr7Wok7XeO8fHVRbwf sRdKteXAZIvAZxZLSN8/USwSsR8Uq4crrzEYc0o2Fwfi1/Z/0sxTAdIQkrDeHw== 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=1715073288; 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=VDi40Z/olZ0ud4dYTy4dQqAg1TzJDBzolcp2mwwNG5U=; b=ITLF5nvz3USan8UPf9lIOqSUB42S0k75y8EYuef/CAoQCunIYSdH1YiQelMyC5zeDJ7o5K KgASAfSdEsv4uUjXcT1hrNyO7LdZNmBd9fnaqmZsqQbKvSu/dfHFXdRnWLEfiWf+UUB9Hr UmtfjKpgex1TgENj+ENkg7f2EbERj91XzLl9xAlrzUsLl9OuPvVGzTmIFLTTZkGzl4S9YK tS9MgK60XghWJJPOy0kLNrO/Y2Jz1YQEapm+K97swAEj8RGc7Fh4OH6d9X62ipCiDgIw5E LNwQjLnx1v1iiinQJB9y6glmf+Knr1TshkiLO7WAY6GHowQqszBLz3xp3KzKDQ== 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 4VYXfc16s0zbhR for ; Tue, 7 May 2024 09:14:48 +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 4479Em2U088432 for ; Tue, 7 May 2024 09:14:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4479EmGD088431 for bugs@FreeBSD.org; Tue, 7 May 2024 09:14:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Tue, 07 May 2024 09:14:48 +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: austin.zhang@dell.com 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 #2 from Austin Zhang --- (In reply to Konstantin Belousov from comment #1) When a process exits, it's expected to release /dev/hpet0 via munmap, which should decrease the si_refcount accordingly. However, it appears this decre= ment does not occur. If the count isn't properly reduced, it could erroneously overflow and potentially turn negative. That's why I believe there is a leakage. Please correct me if I've misunderstood the scenario. --=20 You are receiving this mail because: You are the assignee for the bug.=