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
F108384590: D43090.id131535.diff
Fri, Jan 24, 8:49 AM
Unknown Object (File)
Nov 23 2024, 1:42 AM
Unknown Object (File)
Nov 18 2024, 3:38 AM
Unknown Object (File)
Nov 15 2024, 11:21 PM
Unknown Object (File)
Nov 15 2024, 10:11 PM
Unknown Object (File)
Oct 29 2024, 2:14 AM
Unknown Object (File)
Oct 2 2024, 7:33 PM
Unknown Object (File)
Sep 28 2024, 7:22 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