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)
Mon, Jul 20, 12:43 PM
Unknown Object (File)
Sat, Jul 18, 12:23 PM
Unknown Object (File)
Tue, Jul 7, 5:29 AM
Unknown Object (File)
Tue, Jul 7, 5:12 AM
Unknown Object (File)
Sun, Jul 5, 6:51 PM
Unknown Object (File)
Jun 25 2026, 2:37 AM
Unknown Object (File)
Jun 14 2026, 2:45 AM
Unknown Object (File)
Jun 13 2026, 8:38 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