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)
Mon, Aug 17, 11:55 AM
Unknown Object (File)
Tue, Aug 11, 8:03 AM
Unknown Object (File)
Mon, Aug 10, 8:53 AM
Unknown Object (File)
Sun, Aug 9, 7:05 PM
Unknown Object (File)
Wed, Aug 5, 6:04 AM
Unknown Object (File)
Mon, Aug 3, 7:02 PM
Unknown Object (File)
Thu, Jul 30, 12:42 PM
Unknown Object (File)
Tue, Jul 28, 10:24 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55074
Build 51963: arc lint + arc unit