From nobody Mon Oct 21 13:33:14 2024 X-Original-To: dev-commits-src-main@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 4XXGTk1yJbz5ZHww; Mon, 21 Oct 2024 13:33:14 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXGTk1RtWz4S97; Mon, 21 Oct 2024 13:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729517594; 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; bh=ZWFu6Wj9CplePIr8FYkwHKOEd1FZ1hfQI+K65pCzyLg=; b=J1Jy0NVotxsl+aLatcAzG6uA5bauGSbsNMPtupcVvS8Ot+fPKFEIMuzvw9U9TXvPPjy/fL vqg0P/WVzZnPtqG8vVRSCtP4jvd1HLZ3pQsW3NcKreN9rqRPSIAbJbux/fxSVNQKGkhKHz e5IkRBgvJrLNDY5/yPsZIFz+D5DhMDY6fe7n5IbYqFUKoB7Y9UWP6vgUql4yMQ6rz78pMk AgCqm0FUKxPdQTWg6KrVbHckwwPIuTyfsEWJGhMqFk15K3z9hx6egklpjKjp+GCGv2p0q1 5EmgtE0bd8+vxe94dNjIXl5YLlmlvwkGlUAS+nwV4FSpzgIOXZbDFnIlO3307g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729517594; 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; bh=ZWFu6Wj9CplePIr8FYkwHKOEd1FZ1hfQI+K65pCzyLg=; b=SfDBLYPTmm+S4UbTTHPqsaRmht7t8VryZdVlQoDx5EWm2mdQb5odqURE5pDBR++qspF4fu i/v4WdInAvdKqc+9EZ53vltfNxln1JBmonjyjdTOAE4F9TttUt3kjEk11hB74HpXofHOM4 oe/NFivOYLzfTj+P0fXaYVnOxmMjcO3ZGcniNuTvBoIkEWXYDNza0i3JzEkZdUEB1eRcap hgBLFLNiiIpkOftJFBOv0y5nhzjQ/N0CKJNOWawpgL/5ElveLq1SIjguecedpYjd/5ur8f WJ0/zf4g4bjjbOLeHcNoFt5SsWUhPWm71nUeI5venwGqzGItSSasjXBcyEngWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729517594; a=rsa-sha256; cv=none; b=mKnIDJS0RYJKl8Hn3kFRItGjcqTIF1QmK3hJ6uGUNdJJ620ssaYpGInJ+GxAzq+Boq9B9k kKYbKEHTOEhYfXlMWRFsQbA/Hy+UdetiGA36hXHe8ByatYjaYgh4kMlJ6aPz2p7tEc34zs 0q3ejiSFpdGXBwqkO4t7JmqYek2G/siVBOy8JvGEOebn87teYk1dG4wXCakljSNBqryZMr UpxBOhX+11iyRmAtY8ITzsDoGpzqN/RR4rK73EyXAoJi7DI1XGf+FbAIY21nL/QXbOyski +muvln50uLYtVX1QFmxY8INPUSWd7VXr1x/R2z8I2/NmNuVgkYKCd60RJka1Sg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XXGTk134bzXfn; Mon, 21 Oct 2024 13:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49LDXExj078828; Mon, 21 Oct 2024 13:33:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LDXEKq078825; Mon, 21 Oct 2024 13:33:14 GMT (envelope-from git) Date: Mon, 21 Oct 2024 13:33:14 GMT Message-Id: <202410211333.49LDXEKq078825@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 5fc343791566 - main - vm_object: Assert that managed pages are on pagequeues when freeing List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5fc34379156678ccfd0b4fe0ca4397b420174236 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5fc34379156678ccfd0b4fe0ca4397b420174236 commit 5fc34379156678ccfd0b4fe0ca4397b420174236 Author: Mark Johnston AuthorDate: 2024-10-21 13:25:21 +0000 Commit: Mark Johnston CommitDate: 2024-10-21 13:25:53 +0000 vm_object: Assert that managed pages are on pagequeues when freeing Reviewed by: dougm, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46945 --- sys/vm/vm_object.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 83d6b709e277..5ce21a683541 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -895,6 +895,9 @@ vm_object_terminate_single_page(vm_page_t p, void *objectv) ("%s: page %p is inconsistent", __func__, p)); p->object = NULL; if (vm_page_drop(p, VPRC_OBJREF) == VPRC_OBJREF) { + KASSERT((object->flags & OBJ_UNMANAGED) != 0 || + vm_page_astate_load(p).queue != PQ_NONE, + ("%s: page %p does not belong to a queue", __func__, p)); VM_CNT_INC(v_pfree); vm_page_free(p); }