Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2024 01:14:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware
Message-ID:  <bug-278826-227-5XDlfXNTdW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278826-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278826-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kib@FreeBSD.org>
AuthorDate: 2024-05-07 13:23:28 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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 <austin.zhang@dell.com>
    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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278826-227-5XDlfXNTdW>