From nobody Tue Dec 14 05:15:08 2021 X-Original-To: dev-commits-src-all@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 4177E18DD42A; Tue, 14 Dec 2021 05:15:09 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCmlw6hD1z4RhG; Tue, 14 Dec 2021 05:15:08 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 C56E322590; Tue, 14 Dec 2021 05:15:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BE5F8nO073913; Tue, 14 Dec 2021 05:15:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BE5F89Q073912; Tue, 14 Dec 2021 05:15:08 GMT (envelope-from git) Date: Tue, 14 Dec 2021 05:15:08 GMT Message-Id: <202112140515.1BE5F89Q073912@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Doug Moore Subject: git: 434b8658dc8d - stable/12 - Set uninitialized popmap bits in vm_reserv_init List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 434b8658dc8d5d42071814c42fb6d940dfc76972 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639458908; 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=Zg2yksD3MzzKVFGk18zT8CgyUeEkCBUgd8JF2TvVFVk=; b=CEEPjd7ZOa4bP5UWtoqeI6kiS1RNE5NHxZ43uq02fJGCwdhsTjZt27PVY/1Q3m8skjvZvM Z7QBOV3tdg09EqFpBg+oMH6wsBCXJCejFxtF40HRYfmb57glULQkC6ESjPC6pzOZbbskSN dJ5SsApyq7XuUcMDMk1s6s8Ks09RUC/EJu+QB1PAUupSiHwjh73jxkaB/Ch/coGB0CsIQr lNhpBfN99soOADL1nRCKarplok/dDDxVRio8XEeiEMEJW0MyoD9lBQ8f0PgxT3o1VTb1qM wIvFSKhpCocE7rxTieoq7sAhxfAPqNz5Cs8qr/DuS8s7tkS/ORjGWFOl9jQXNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639458908; a=rsa-sha256; cv=none; b=qCnXppdDlwn5FUlQbMEDwP9+gSvEbUSY6v+MekxUf3cJOYrsDYPyuEUgEeRxwGOm1TaqR+ zcT9Y2REjQkI1cwBgI+rFs0STmHPlOFp9+L/00SagDKeYRCKnwPAkTsg511mWVDmFGgSHB 2KyKymdboqQ6pvKB1BWRUuVHRMbFgsVMGJy43GZseNPqdLpmZc4fRIDM1Ljlx771I7OdJX jpyBMxcrYmhcX4jr/eJJGE3s2wCr2GpzRLIwoqENUAgxoNrkpnM5BjetMme9SNejYQalF0 uykrslP7srd26DGBA7ypn/hejjzV7sdHbY8Q1o+NHVSpw0xGaLTmA/C4kPx9cA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=434b8658dc8d5d42071814c42fb6d940dfc76972 commit 434b8658dc8d5d42071814c42fb6d940dfc76972 Author: Doug Moore AuthorDate: 2021-12-05 23:17:25 +0000 Commit: Doug Moore CommitDate: 2021-12-14 05:14:40 +0000 Set uninitialized popmap bits in vm_reserv_init In vm_reserv_init, set all the marker popmap bits in vm_reserv_init, and not just the bits of the first popmap entry. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D33258 (cherry picked from commit 9f32cb5b1c81ceed28491c031cd109811a5f5d7a) --- sys/vm/vm_reserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index 5c6cad6056ad..f0fb3dc57c4c 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -1201,7 +1201,7 @@ vm_reserv_init(void) * partially populated reservation queues. */ rvd->marker.popcnt = VM_LEVEL_0_NPAGES; - for (j = 0; j < NBPOPMAP; j++) + for (j = 0; j < VM_LEVEL_0_NPAGES; j++) popmap_set(rvd->marker.popmap, j); }