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, Sep 23, 10:17 AM
Unknown Object (File)
Thu, Sep 18, 1:48 AM
Unknown Object (File)
Aug 21 2025, 1:42 AM
Unknown Object (File)
Aug 4 2025, 4:01 AM
Unknown Object (File)
Aug 2 2025, 12:24 PM
Unknown Object (File)
Jul 26 2025, 12:28 AM
Unknown Object (File)
Jul 25 2025, 4:13 PM
Unknown Object (File)
Jul 25 2025, 5:34 AM
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