Page MenuHomeFreeBSD

cxgbe: Mark rx'ed packets as initialized for KMSAN
ClosedPublic

Authored by markj on Fri, Sep 24, 3:21 PM.

Details

Summary

The KMSAN runtime needs to have its shadow maps updated when devices
update host memory, otherwise it assumes that device-populated memory is
uninitialized. For most drivers this is handled transparently by
busdma, but cxgbe doesn't make use of dma maps for receive buffers.

Reported by: mjg

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.