Page MenuHomeFreeBSD

arm64: Disable kernel superpage promotion when KMSAN is configured
ClosedPublic

Authored by markj on Dec 21 2023, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 6:00 PM
Unknown Object (File)
Sun, Nov 23, 2:11 PM
Unknown Object (File)
Thu, Nov 20, 5:18 PM
Unknown Object (File)
Tue, Nov 18, 2:21 AM
Unknown Object (File)
Sat, Nov 15, 9:52 PM
Unknown Object (File)
Sat, Nov 8, 4:18 AM
Unknown Object (File)
Nov 2 2025, 2:45 AM
Unknown Object (File)
Oct 29 2025, 12:53 PM

Details

Summary

The break-before-make operation required to promote or demote a
superpage leaves a window where the KMSAN runtime can trigger a fatal
data abort. More specifically, the code in pmap_update_entry() which
executes after ATTR_DESCR_VALID is cleared may implicitly attempt to
access KMSAN context via curthread, but we may be promoting or demoting
a 2MB page containing the curthread structure.

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

Diff Detail

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