Module Name: src Committed By: skrll Date: Sun Sep 20 15:30:11 UTC 2020
Modified Files: src/sys/arch/aarch64/include: asan.h Log Message: Use pmap_growkernel(VM_KERNEL_VM_BASE) rather than pmap_virtual_space to work out what to map initially. XXX could do better mapping the kernel and modules more accurately To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/aarch64/include/asan.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/aarch64/include/asan.h diff -u src/sys/arch/aarch64/include/asan.h:1.12 src/sys/arch/aarch64/include/asan.h:1.13 --- src/sys/arch/aarch64/include/asan.h:1.12 Sat Sep 19 13:33:08 2020 +++ src/sys/arch/aarch64/include/asan.h Sun Sep 20 15:30:11 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: asan.h,v 1.12 2020/09/19 13:33:08 skrll Exp $ */ +/* $NetBSD: asan.h,v 1.13 2020/09/20 15:30:11 skrll Exp $ */ /* * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net @@ -202,12 +202,11 @@ kasan_md_early_init(void *stack) static void kasan_md_init(void) { - vaddr_t eva, dummy; CTASSERT((__MD_SHADOW_SIZE / L0_SIZE) == 64); /* The VAs we've created until now. */ - pmap_virtual_space(&eva, &dummy); + vaddr_t eva = pmap_growkernel(VM_KERNEL_VM_BASE); kasan_shadow_map((void *)VM_MIN_KERNEL_ADDRESS, eva - VM_MIN_KERNEL_ADDRESS); }