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 6, 2:48 PM
Unknown Object (File)
Sun, Oct 4, 1:01 PM
Unknown Object (File)
Sat, Oct 3, 4:58 PM
Unknown Object (File)
Sat, Oct 3, 11:21 AM
Unknown Object (File)
Mon, Sep 28, 9:51 PM
Unknown Object (File)
Sep 14 2026, 7:40 PM
Unknown Object (File)
Sep 11 2026, 8:56 PM
Unknown Object (File)
Sep 7 2026, 8:54 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