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, Dec 23, 12:51 AM
Unknown Object (File)
Sun, Dec 21, 9:29 PM
Unknown Object (File)
Sat, Dec 6, 11:37 AM
Unknown Object (File)
Nov 28 2025, 12:25 AM
Unknown Object (File)
Nov 26 2025, 4:41 PM
Unknown Object (File)
Nov 25 2025, 11:13 AM
Unknown Object (File)
Nov 25 2025, 1:15 AM
Unknown Object (File)
Nov 25 2025, 1:15 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