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
F97064619: D43090.diff
Fri, Sep 27, 3:45 PM
F96888903: D43090.id.diff
Fri, Sep 27, 2:23 AM
Unknown Object (File)
Thu, Sep 26, 5:18 PM
Unknown Object (File)
Wed, Sep 25, 8:24 PM
Unknown Object (File)
Tue, Sep 24, 9:19 AM
Unknown Object (File)
Tue, Sep 24, 4:17 AM
Unknown Object (File)
Mon, Sep 23, 6:07 AM
Unknown Object (File)
Fri, Sep 20, 9:56 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54992
Build 51881: arc lint + arc unit