aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZishun Yi <zis@FreeBSD.org>2026-05-20 14:34:08 +0000
committerMark Johnston <markj@FreeBSD.org>2026-05-20 14:35:15 +0000
commitb36fd09a834be586fbc1630294e17554e1f76175 (patch)
tree53cb3bf1f7ffa7d7dc2d1204fc0e2eb03a1a995e
parente924a2c80b9e1ace68d8ca0ffdacec65feec90a3 (diff)
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
-rw-r--r--sys/amd64/include/vmparam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h
index 2914a204b2ef..1825c431f9f7 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