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
Unknown Object (File)
Mon, Aug 17, 9:18 AM
Unknown Object (File)
Sun, Aug 9, 2:45 PM
Unknown Object (File)
Sun, Aug 9, 10:53 AM
Unknown Object (File)
Sat, Aug 8, 10:21 PM
Unknown Object (File)
Fri, Aug 7, 10:24 PM
Unknown Object (File)
Fri, Aug 7, 4:51 PM
Unknown Object (File)
Thu, Aug 6, 12:19 PM
Unknown Object (File)
Thu, Aug 6, 12:46 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55375
Build 52264: arc lint + arc unit