Page MenuHomeFreeBSD

nvme: Initialize HMB entries before loading them into the controller
ClosedPublic

Authored by markj on Dec 18 2023, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 2:14 AM
Unknown Object (File)
Oct 2 2024, 7:33 PM
Unknown Object (File)
Sep 28 2024, 7:22 AM
Unknown Object (File)
Sep 27 2024, 9:31 PM
Unknown Object (File)
Sep 27 2024, 3:45 PM
Unknown Object (File)
Sep 27 2024, 2:23 AM
Unknown Object (File)
Sep 26 2024, 5:18 PM
Unknown Object (File)
Sep 25 2024, 8:24 PM
Subscribers

Details

Summary

struct nvme_hmb_desc contains a pad field which was not getting
initialized before being synced. This doesn't have much consequence but
triggers a report from KMSAN, which verifies that host-filled DMA memory
is initialized before it is made visible to the device. So, let's just
initialize it properly.

Reported by: KMSAN
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable