HomeFreeBSD

mlx5: Zero DMA memory mlx5_alloc_cmd_msg() and alloc_cmd_page()

Description

mlx5: Zero DMA memory mlx5_alloc_cmd_msg() and alloc_cmd_page()

These functions may map more memory for DMA than is actually used, since
the allocator operates on multiples of a 4KB page size. Thus,
bus_dmamap_sync() can trigger KMSAN reports when the unused portion of
a page is not zero-ed.

Reported by: KMSAN
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D43133

Details

Provenance
markjAuthored on Jan 18 2024, 9:47 PM
Reviewer
kib
Differential Revision
D43133: mlx5: Zero DMA memory in mlx5_fwp_alloc()
Parents
rG1abc64bfbdb8: committers-ports.dot: add myself (dutra) as a new ports committer
Branches
Unknown
Tags
Unknown