From nobody Fri Apr 3 14:30:22 2026 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 4fnLjW6DFJz6Yb2b for ; Fri, 03 Apr 2026 14:30:23 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fnLjW51gwz3XXr for ; Fri, 03 Apr 2026 14:30:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775226623; 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=afO1/kVtM4X/5As7CyK8DeOYKKpRqTjDrAcotx17Gm0=; b=mEekc4jr3d0zvzcLHivUV9bvQuoswdMR59eDFxX+2e880WOs++Gde/aFua0m0xhnZD5Jrq h/QB3luogIjiZE2JObHh4yaKzBhYmt84v/QrAf3Zu4PGb/WlX2OxMruS9Ln2IplPFkNXZn 4AIWK1gvoJCSPJhuOIlKmgSKjbHv4/EgnRGW/46cMC03kZciw17LSWksQkaXANn6CDljaG 2Gta27wnV0UTf9n1UWs3qkx7uQWRmnm+22SvqjJJZ3/ZRLujpaSU9sFcM9mppJgw+UY8oz j14d/GbUVowWs2E89QM+sq6nJuQvA/cbut81YGuFxpHwAz4Bljf/MhAfg5sYuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775226623; a=rsa-sha256; cv=none; b=Uj/mrf/ukpHaOqlRldcxvpRt/3Gdf8ERB67ICLgdu7cA8/B4mA9V+NHEZq2xy0BVP31nqe FoYUdYVXFEFNZlXAGynad+nAxc3AbUppQPRFILgvc5LNXjPjFsIiyW/6gp76R3QwNlnei6 Tcsf2dMGOM5VexP6IEIM5dBpdbhZKArdgoqb65rr2pEX91JU93xRe3aG2qxwudHHUmblDk 9GXc3/UHz7iBypKGbWSZx9GzQfmSdIw5QA8nBwt0JWMflJzA75HwzpGB0r/hn+1f7HFRjp ZtbVu4YBMaA/RqLy6CHJtMzLt8calUqOl5w030R0vqXG2nk/61JQQR6vewaVsQ== 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=1775226623; 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=afO1/kVtM4X/5As7CyK8DeOYKKpRqTjDrAcotx17Gm0=; b=BKsHvuwX6HKMrmGSzSm6g+L3blZnCzgA7Xdy5a74TWSqPLvr6sxy2j+DURkjnCCSsKoxd2 p7EAG+uEcxhfu5aYwcEJmpUrMzKQ15feaNDMgt/OFXhYL6l8QX1EA1MUMy8XH7cLHAKeim VzxxRcWvD1M1/dGiLVLvg6TJmN4blbFoEAy8p1T/Be6O8DQiMp3vXVO8it/Ue29AFxnl8y qwJVrhpGuaX+iAzYOTrcTRZB2qsbMpGh/FvWW943HvnRHQXS4Anyds6hWuXwKgtvoOtrhg HO4NQfQzaypGlmpU4HScOGCyFDsnSx8QJ+4SnXAy2fJ83IWY9Hu05228VKcggQ== 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 4fnLjW4R05zsn7 for ; Fri, 03 Apr 2026 14:30:23 +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 633EUN6w061753 for ; Fri, 3 Apr 2026 14:30:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 633EUNFj061752 for bugs@FreeBSD.org; Fri, 3 Apr 2026 14:30:23 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 294039] databases/postgresql14-server: jemalloc crashes triggered by autovacuum Date: Fri, 03 Apr 2026 14:30:22 +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: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status 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=3D294039 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #9 from Mark Johnston --- I see a case where we can restart the fault handler without resetting m_needs_zeroing: if vm_fault_object() encounters a busy page in a backing object, it will call vm_fault_busy_sleep(), which resets fault state using a custom routine. If a page allocation had previously set m_needs_zeroing =3D false, and the newly allocated page was reclaimed while restarting the fault handler, then we'll allocate a new page using the stale m_needs_zeroing val= ue. A minimal patch to fix this is: diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 64580c34c0a0..cf20304706ad 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1436,6 +1436,7 @@ vm_fault_busy_sleep(struct faultstate *fs) VM_OBJECT_UNLOCK(fs->object); VM_CNT_INC(v_intrans); vm_object_deallocate(fs->first_object); + fs->m_needs_zeroing =3D true; } Peter, I wonder if you could test this with the original patch re-applied? --=20 You are receiving this mail because: You are the assignee for the bug.=