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)
Nov 26 2024, 7:25 AM
Unknown Object (File)
Nov 22 2024, 4:28 PM
Unknown Object (File)
Nov 22 2024, 4:28 PM
Unknown Object (File)
Nov 22 2024, 4:28 PM
Unknown Object (File)
Nov 22 2024, 4:28 PM
Unknown Object (File)
Oct 21 2024, 4:16 PM
Unknown Object (File)
Oct 21 2024, 4:15 PM
Unknown Object (File)
Oct 21 2024, 4:14 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