From nobody Fri May 29 22:08:23 2026 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 4gRyD83PlZz6gB3p for ; Fri, 29 May 2026 22:08:24 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRyD80LzGz4GVN for ; Fri, 29 May 2026 22:08:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780092504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6XNU9Mjoh3+PV7x3v5+SD6tbUBIYTQJGeUTBp5wbEEE=; b=ndLaUpjeFQBTI+yF/JPS/pK3ugH9wS6Sj98l2fLqmwcF6uB22b+TvlWjrGNM7KV3At1/1E PhGQfBhgssYQ+ChNTsuHigwG2+nLAGCV+Y/Es+ISB4SpDpd1TBAvGFOmgW1qlrga1C1GMg 708bQFzbSYXmdUI86dlQkACI4m61JtShsopNwl6rgr5b+22HK70wbDjUHAW0u3CnGCokYF 5n5a0cRAOsxsFajBiF3QkdBIgw9JPnq2+UIn3uE3DGOOto8FKXxHdQn4ZYXJF9QTxL05KW 7jOW4CrQH75WhZENyJTpIe4mS2lh67bhOdCTZczTTPYxvl+j7IhSu9AAmB8PdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780092504; a=rsa-sha256; cv=none; b=ins6hpwYxyZU+I/Vqm/65L1gzVVCGSolhCvrRwEym5hFbUw6fhtIGcUce2e5O7iTAf8Eaq eMChRmT7Ab+PJotRq6osk1Lx36TQdIQa4pVWGmjOIh+ejKvVy+9LHl6ClIUWiIyT5lJUQI 6WYqBLt7aKr4Z8ZVnGOb+3ty+88FZsmo1riH6Q1UOGdfw8SFoTyNgFF3pdNN/9tjX8vx9V uvfPhsD204BbAFQfpd75ZyQPwy/nAsKXY5v+h70CWY5LkLOdBTdmn1Qoe31lXBsG0CRQx/ sOJwlcb3mitbuUJQQ3kTxo/CYMM6B7lOJ56ibaA3din7CMZmg/K/u93la9Ox0g== 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=1780092504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6XNU9Mjoh3+PV7x3v5+SD6tbUBIYTQJGeUTBp5wbEEE=; b=bUgYkt/U9BGuwEyr0P45fyijHH++/pqM2bdViFdbZR0WrRD+BzlvPKSsSMul+asLt5JiQm AEKEbt+xGtQdQzNoIOXxup+Y6PO7Jv3vTszyqXAROybQMEUJ2rlPPuGyoRkulrr8bIjZRd CG294eSPw2gKOU/VkOSlIbmadQCnlg5ISpcc55XIpRc/bYOmbNbTYikrQckxmZ9MAx66j2 KsOBlbrVVS0hVOJwFqr5ncyzhN0ULZZHaKMHN+5pkdllowwJSHok3ESZKjbrTJIgQG/Lx2 HW2kWPqp15UZFJ5MWKj6gxD299N/t+0JOU6rYmexn0tjnnDWX8MdEDRLgO+vtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRyD7744Yzs39 for ; Fri, 29 May 2026 22:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3d028 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 22:08:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Zishun Yi From: Mark Johnston Subject: git: 048458a434a1 - stable/15 - amd64/vmparam: Fix KASAN shadow map size in comment 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 048458a434a13e587d873039f931489f9b9e60aa Auto-Submitted: auto-generated Date: Fri, 29 May 2026 22:08:23 +0000 Message-Id: <6a1a0e57.3d028.77a06f05@gitrepo.freebsd.org> The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=048458a434a13e587d873039f931489f9b9e60aa commit 048458a434a13e587d873039f931489f9b9e60aa Author: Zishun Yi AuthorDate: 2026-05-20 14:34:08 +0000 Commit: Mark Johnston CommitDate: 2026-05-29 19:46:48 +0000 amd64/vmparam: Fix KASAN shadow map size in comment The address range 0xfffff78000000000 - 0xfffff7bfffffffff spans exactly 256GB (0x4000000000 bytes), not 512GB. For a 2TB kernel map, based on the KASAN 1:8 shadow map ratio, the required shadow map size is indeed 256GB. The current comment incorrectly states 512GB, which can be misleading and cause confusion. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D57129 (cherry picked from commit b36fd09a834be586fbc1630294e17554e1f76175) --- sys/amd64/include/vmparam.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index d2ac3c6648b2..763b89da9e12 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/include/vmparam.h @@ -171,7 +171,7 @@ * 0xffff808000000000 - 0xffff847fffffffff large map (can be tuned up) * 0xffff848000000000 - 0xfffff77fffffffff unused (large map extends there) * 0xfffff60000000000 - 0xfffff7ffffffffff 2TB KMSAN origin map, optional - * 0xfffff78000000000 - 0xfffff7bfffffffff 512GB KASAN shadow map, optional + * 0xfffff78000000000 - 0xfffff7bfffffffff 256GB KASAN shadow map, optional * 0xfffff80000000000 - 0xfffffbffffffffff 4TB direct map * 0xfffffc0000000000 - 0xfffffdffffffffff 2TB KMSAN shadow map, optional * 0xfffffe0000000000 - 0xffffffffffffffff 2TB kernel map @@ -185,7 +185,7 @@ * 0xff41000000000000 - 0xffff7fffffffffff unused * 0xffff800000000000 - 0xfffff5ffffffffff unused (start of kernel pml4 entry) * 0xfffff60000000000 - 0xfffff7ffffffffff 2TB KMSAN origin map, optional - * 0xfffff78000000000 - 0xfffff7bfffffffff 512GB KASAN shadow map, optional + * 0xfffff78000000000 - 0xfffff7bfffffffff 256GB KASAN shadow map, optional * 0xfffff80000000000 - 0xfffffbffffffffff 4TB unused * 0xfffffc0000000000 - 0xfffffdffffffffff 2TB KMSAN shadow map, optional * 0xfffffe0000000000 - 0xffffffffffffffff 2TB kernel map