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)
Wed, Apr 15, 12:35 PM
Unknown Object (File)
Tue, Apr 14, 3:39 AM
Unknown Object (File)
Sat, Apr 11, 3:26 PM
Unknown Object (File)
Sat, Apr 11, 2:07 AM
Unknown Object (File)
Tue, Apr 7, 3:42 AM
Unknown Object (File)
Sun, Apr 5, 7:45 AM
Unknown Object (File)
Mon, Mar 30, 6:01 AM
Unknown Object (File)
Mar 16 2026, 12:31 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