HomeFreeBSD

arm64: Make KMSAN aware of exceptions

Description

arm64: Make KMSAN aware of exceptions

  • Call kmsan_intr_enter() when an exception occurs. This ensures that code running in the exception context does not clobber thread-local KMSAN state.
  • Ensure that stack memory containing trap frames is treated as initialized.

Co-authored-by: Alexander Stetsenko <alex.stetsenko@klarasystems.com>
Reviewed by: imp
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D43155

Details

Provenance
markjAuthored on Feb 8 2024, 3:57 PM
Reviewer
imp
Differential Revision
D43155: arm64: Make KMSAN aware of exceptions
Parents
rG52bf6257c2aa: arm64: Define shadow maps for KMSAN
Branches
Unknown
Tags
Unknown