From nobody Tue Jul 22 14:03:04 2025 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 4bmf9h4G7vz5pRSX; Tue, 22 Jul 2025 14:03:04 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bmf9h3SSnz414C; Tue, 22 Jul 2025 14:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753192984; 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=ddQ3BxZgTQ2v07ZrY2C/+pVHO447uVbDt692Eh7S3I8=; b=uauyWrjk6Npf5Z8xK2W/JC6G2TyoXE4ChZqixtrkSodKW3u8lou666DUBNSb5sYE+K1nsg U7yTxByriXKgLU9XnrpbWvTfQkOYk98mxRm/4gIKwNvVXhcL/22m6KYC/FUFL2Du2pe2gm mqzHBYtHbau4oIq/0HV7ts459nXdpFq3lk8HGJkirySCRiICIxkHRJlEQANN1SafZHxZZG sBw3HScuyFWv23RLLcPgv2eiIxcgkhkd4NK6wtfnUyqn66vZTGjbrgLwb/9k+ypQ54eLBM 0POOj7WmHHdM6HWL8HIr4czQfbl7HqXibH6thk/KQOj17byEHg4HtLgau1M8NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753192984; 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=ddQ3BxZgTQ2v07ZrY2C/+pVHO447uVbDt692Eh7S3I8=; b=DFmRm8ld0A5CpSurRcS2nyzb9N9ANPWmMd9gh9kGDlwt1yTt6lPJDSv2C4Alh1JH8g4391 +4l858puP1ypfv/K1uSMz5bOJTN4H4+wCoiAcSzCiNfo66i3mNuekZcl/QftpXMGlCXBEC EL60eLigmz60xoR+TPNrgN49wa/FJI0AJ3YR25VzR+5hcEjzsdXsoB/1LGoBdEk4CVVM0x 5/+ekIdmlvxF2Q3nn/2HkmHdh5wc1BNkfmwEA/hFq1PPL7bJpCr3pDHdBiL2mNMwGTXXQG Bq1/ktyZrZgHcBYYm593MW0vKYjR40i/uhxZEFc41Y+kugKbmonybPqA9Z1lUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753192984; a=rsa-sha256; cv=none; b=rylMIzreifnrqyOvB3hgZqpucZ4M7xCPxF6957+123JuvMMIIjqKf3V1VzhRhAEWhSkMG7 bpxHoV+PiZmTPJpHGVwhoLIEzOXF+f/nozS1AaiQIgkNygpOYw83Tu8JtYkFuzu1qBx7n6 ZBZzfHjnuMT4o9FKMpngsK6BW1kTHZPJlQicsRmQ5KVwCTHP0LU7Ohwmbr6hLWBSGrThy4 u/O2qS/rNyKEufiIhRjDUMfVLKL5/70T0SfqiV7ieagg23nC1LRXUXhdkwmBuc5QJcSLRo k+gxLgWHKGCu4d9gDHtsQfHTpzOUXoFfo3pLKSnr4wuqp9M4GSXdDikb824JaA== 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 4bmf9h2sR3zVN4; Tue, 22 Jul 2025 14:03:04 +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 56ME34Kw070966; Tue, 22 Jul 2025 14:03:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56ME34Dg070963; Tue, 22 Jul 2025 14:03:04 GMT (envelope-from git) Date: Tue, 22 Jul 2025 14:03:04 GMT Message-Id: <202507221403.56ME34Dg070963@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4a473db9f97b - main - amd64 pmap: only link as many DMAP pml4 page tables as was allocated 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4a473db9f97bc12c51a86379f1ccc97f491ef4cd Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4a473db9f97bc12c51a86379f1ccc97f491ef4cd commit 4a473db9f97bc12c51a86379f1ccc97f491ef4cd Author: Konstantin Belousov AuthorDate: 2025-07-21 14:18:47 +0000 Commit: Konstantin Belousov CommitDate: 2025-07-22 13:58:42 +0000 amd64 pmap: only link as many DMAP pml4 page tables as was allocated Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D51453 --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index cd8ab58a07ab..adcdd8608355 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2003,7 +2003,7 @@ create_pagetables(vm_paddr_t *firstaddr) */ p5_p[i] = KPML5phys | X86_PG_RW | X86_PG_A | X86_PG_M | X86_PG_V | pg_nx; - } else if (i >= DMPML5I && i < DMPML5I + NDMPML5E) { + } else if (i >= DMPML5I && i < DMPML5I + ndmpml4phys) { /* Connect DMAP pml4 pages to PML5. */ p5_p[i] = (DMPML4phys + ptoa(i - DMPML5I)) | X86_PG_RW | X86_PG_V | pg_nx;