HomeFreeBSD

dtrace: Add some more annotations for KMSAN

Description

dtrace: Add some more annotations for KMSAN

  • Don't allow FBT and kinst to instrument the KMSAN runtime.
  • When fetching data from the traced thread's stack, mark it as initialized. It may well be uninitialized, but as dtrace permits arbitrary inspection of kernel memory, it isn't very useful to raise KMSAN reports.
  • Mark data copied in from userspace as initialized, as we do for copyin() etc. using interceptors.

MFC after: 2 weeks

(cherry picked from commit fdeb273d49bf2fa2544d3c98114859db10385550)

Details

Provenance
markjAuthored on Nov 23 2024, 2:32 AM
Parents
rG397a3893db1d: depend-cleanup.sh: fix dependency changes from latest OpenZFS import
Branches
Unknown
Tags
Unknown