HomeFreeBSD

cxgbe: Mark received packets as initialized for KMSAN

Description

cxgbe: Mark received packets as initialized for KMSAN

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 and
so requires special treatment.

Reported by: mjg
Tested by: mjg
Reviewed by: np
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32102

Details

Provenance
markjAuthored on Sep 24 2021, 6:35 PM
Reviewer
np
Differential Revision
D32102: cxgbe: Mark rx'ed packets as initialized for KMSAN
Parents
rGe31fb97148f7: read builtin: Empty variables on timeout
Branches
Unknown
Tags
Unknown