Page MenuHomeFreeBSD

arm64: Simplify and improve KASAN shadow map bootstrapping
ClosedPublic

Authored by markj on Jan 11 2024, 10:48 PM.
Tags
None
Referenced Files
F83075307: D43404.id134012.diff
Sun, May 5, 10:59 PM
Unknown Object (File)
Tue, Apr 23, 11:31 AM
Unknown Object (File)
Apr 6 2024, 9:47 AM
Unknown Object (File)
Mar 17 2024, 12:09 AM
Unknown Object (File)
Mar 17 2024, 12:09 AM
Unknown Object (File)
Mar 14 2024, 7:20 AM
Unknown Object (File)
Mar 2 2024, 4:42 PM
Unknown Object (File)
Feb 19 2024, 10:13 PM
Subscribers

Details

Summary
  • Move pmap_bootstrap_allocate_kasan_l2() close to the place where it is actually used.
  • Simplify pmap_bootstrap_allocate_kasan_l2() a bit: eliminate some unneeded variables and zero and exclude each 2MB mapping as we go rather than doing that all at once. Excluded regions will be coalesced.
  • As a consequence of the previous point, ensure that we do not zero a preexisting 2MB mapping.
  • Simplify pmap_bootstrap_san() and prepare it to work with KMSAN.

Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable