From nobody Mon Oct 6 16:49:10 2025 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 4cgQGH1S5tz69fWq for ; Mon, 06 Oct 2025 16:49:11 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cgQGG4dzDz3qrp for ; Mon, 06 Oct 2025 16:49:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759769350; 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=dE9Z3Vlwg/f2lLN4J98N00KwlDXLXF+FLj1NpsO85+8=; b=smgmFHDzzfqCzeo5TA8h0PRESx3+ikITolGtfJcDWfyFRaMcKWI/aQwzFgnADz+p4HAnz2 2jLvWK8vJvmSTBbuLNwClljub1QdwxDWtmbzFB+yhwiKVeZgiamNIhffAwHWqQod744VyI fUU573eOII5vwPv2L8FANqRHJaWTZyk2QzTAN0FZmd6C+6+q93bCiXR21MJbhLDIuHX3MN stwzLl8N8Z5KNyzVUxLIZ4pmfUsknISDYjG/BlN9lmUQUE2H4tj2oZu27O9+Y1PB8/Jsp3 6bWBvHmxYkMMVzRm1zVEDl1VufSSIJac301+hHzuScSJDdOnKZVIDy18WCfuDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759769350; 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=dE9Z3Vlwg/f2lLN4J98N00KwlDXLXF+FLj1NpsO85+8=; b=KyhgVbKbhGjXEkPjgUfXLvYUJVjY18XsFCj/lWKRIz9lfgFlIUNNTxQAVDclVnlcNUEoWE zRP+ebfslt22e5jM3RtXu6wnLMEeNwBH4l+aKbWxJiR8vbILcfB/YaUhmgpc8tq0t/HPkv qCV2HhvbFMdSIfSJCAunM57RRVJc+9liYojziMDKAM0lOeEciUZNV46HkxBjGH72Ko4Xf5 lLU+89f2e9+rGAi1nWzVpSeacONTxY/WB5WIHyZ9Tp7FEj7cqYwVcFWkOcOe4XzjiHxBPh /8lBb6IEv+jidvrl99wsdIQ1KGVhyGbulLtEkUaXQLFMzOkK4PXsrdX0jx0FlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759769350; a=rsa-sha256; cv=none; b=EePfYxOAkwBXqD/EtF6YZXxa93u2WPFepEt5n/eBq5RVdKZYWCnWzHAbEe7brUvAJuRFef hF1bhiFsmWOmQMzA1X77afEviXjDopE8Cvd/6siEp6m2wsVdUweEm9i/zngFHz+cQgjdcK 5H2l8a0GVW4rGPdrvUMPBFwbUEHZucPxIGCagN2dhE2ru4BD77gI5U1BM7qMG+bB1lfKyT gY76wdf0cj4oGZz2J6B8jYpvmen2m9npGD1XpCMxKksvLl76ZokIJHxmNvlyUftzFX6cpO ogo65/RjzLnnfx6UCJYMf8J1z1+ZLHpp4hXntGtRTOTghCDM2fCGAaKaKDR0Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cgQGG4FmTz16Bh for ; Mon, 06 Oct 2025 16:49:10 +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 596GnA8H078947 for ; Mon, 6 Oct 2025 16:49:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 596GnA4Q078946 for bugs@FreeBSD.org; Mon, 6 Oct 2025 16:49:10 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 289917] PID leak in proc_id_reapmap Date: Mon, 06 Oct 2025 16:49:10 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D289917 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df19ef352ec63f9fcc10076a263b8ce402= ba31379 commit f19ef352ec63f9fcc10076a263b8ce402ba31379 Author: Konstantin Belousov AuthorDate: 2025-10-01 03:17:31 +0000 Commit: Konstantin Belousov CommitDate: 2025-10-06 16:48:26 +0000 kern_exit.c: do not leak reaper bitmap busy bits When re-assigning p_reapsubtree value, we must check if the result of obliterating the old value would free the corresponding pid in the proc_id_reap bitmap, and indeed free it when needed. PR: 289917 Reported by: avg Reviewed by: avg, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D52814 sys/kern/kern_exit.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=