From nobody Mon Sep 23 13:03:51 2024 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 4XC38l3vhtz52G0q; Mon, 23 Sep 2024 13:03:51 +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 4XC38l23Qkz40jB; Mon, 23 Sep 2024 13:03:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727096631; 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=R8LNFc64yD+4djFQbruhJobRitlle2ZZXsZfoDAdYt0=; b=CRcupks6M1LM05y6N9PvGxOAH3nvQ7thy6tZcGIkWYrLRlVHtzCqrC9uVTP6XSFjzbfaV9 jSlbqE7FYjQXBBq435CRdjXhT3sWW3YSUeuCNR4FfgqiDyQGqkUDiS06RzLQ/iROjT3nJe eN+/QPsOHuLJiIhmspTuSE/Zf83+0xFRwhedN4+mICJ1HmBb0rP7FT9HLumyI3XtnwO10N zCncj24ito6jV19OnrDZOJCJoGtyabclwFkoUspXCQFeLpAxDB+F/tGkvlJhC6kS+zLj+k WYXmiZ3rJ3VlZBqNfi6ETwp+XdWa40Frl7yB3aHnfLWOqdxdi8ZcwYQHddU9Rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727096631; a=rsa-sha256; cv=none; b=KtiF5f1sxUFKZ7ann7RrPpkR5hh7MuDeBiIJXPnVe9FyRcKBW9uRnxGH++3MhFKgHc/TC0 zipkUEGF0wJdO4pON45AahUkU+/zvPVbiq6odHAZIqNILeOxGYL2XHQHqtCN56y/VBCWCu JwtDee86vKHEasxM4DvCzD5u5mSF5kHzyc69q5mwBHzrhGMRYBHaA1lIr6BBlpAGQMnTCF ND1FYTwaPJLdo6xT/3lwxvS0jHHp5AZ5OMfq1gSiDsu5/xve5jrr5HYXHbjoS6rCtodjsy LABZKB+c/W/PUmrVWwhK0xetVLTFUZbnH300bTXhJBYjwfCbagLSpcpxEklIfQ== 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=1727096631; 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=R8LNFc64yD+4djFQbruhJobRitlle2ZZXsZfoDAdYt0=; b=TfvLvrEMwet5BtcP++E0HpOa2BuXIoISt7L8gaOWcOXxjZs4yqPbRf6AEslo3U+8TJJyZn xBBrPrpTgqZAofoWnUsiMMM5tE+GQPu2THHql6whn5o9jrXtHyVywNtwuPRAqs8dRc3wYl l8LIpJb/+KMgDPNEZDZ4ibXDOFWn+kJnlkXhG3umYo4UtpAMJ6/g4E8JEfW0qFLqZJszTB wRDe+2WHTvzkrRetlkHbAebh1T4oXBWeKhP02MO1cuthbPhXe23iD9IlxO2XPJ+3MRlz81 irxZwME5LD1RDAPBaZkQs/E5CNc1LKYEY69Lar1GB2cYNi1s4cvPBBbFaEbgrg== 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 4XC38l1f19zmf2; Mon, 23 Sep 2024 13:03:51 +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 48ND3p2v007395; Mon, 23 Sep 2024 13:03:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48ND3p0r007392; Mon, 23 Sep 2024 13:03:51 GMT (envelope-from git) Date: Mon, 23 Sep 2024 13:03:51 GMT Message-Id: <202409231303.48ND3p0r007392@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 6a0a7c6a052e - stable/14 - amd64 pmap: do not set PG_G for usermode pmap pml5 kernel entry 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 6a0a7c6a052e662bad2ae40dc166c0ad6c58d019 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6a0a7c6a052e662bad2ae40dc166c0ad6c58d019 commit 6a0a7c6a052e662bad2ae40dc166c0ad6c58d019 Author: Konstantin Belousov AuthorDate: 2024-09-16 17:57:23 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-23 13:03:07 +0000 amd64 pmap: do not set PG_G for usermode pmap pml5 kernel entry (cherry picked from commit 4f82af24f1113a7df224daded227d4e9de582c0b) --- sys/amd64/amd64/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 72929f98a0cb..567382f9924f 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -4371,7 +4371,7 @@ pmap_pinit_pml5(vm_page_t pml5pg) * entering all existing kernel mappings into level 5 table. */ pm_pml5[pmap_pml5e_index(UPT_MAX_ADDRESS)] = KPML4phys | X86_PG_V | - X86_PG_RW | X86_PG_A | X86_PG_M | pg_g | + X86_PG_RW | X86_PG_A | X86_PG_M | pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, FALSE); /* @@ -4408,7 +4408,7 @@ pmap_pinit_pml5_pti(vm_page_t pml5pgu) */ pm_pml5u[pmap_pml5e_index(UPT_MAX_ADDRESS)] = pmap_kextract((vm_offset_t)pti_pml4) | - X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M | pg_g | + X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M | pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, FALSE); }