Home
last modified time | relevance | path

Searched hist:"47 a6fb9d" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cmd.c47a6fb9d Thu Jan 18 21:47:52 GMT 2024 Mark Johnston <markj@FreeBSD.org> 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
47a6fb9d Thu Jan 18 21:47:52 GMT 2024 Mark Johnston <markj@FreeBSD.org> 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