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, Mar 16, 12:31 AM
Unknown Object (File)
Sun, Mar 8, 8:23 PM
Unknown Object (File)
Fri, Mar 6, 10:43 PM
Unknown Object (File)
Sat, Feb 28, 12:53 PM
Unknown Object (File)
Feb 7 2026, 11:38 PM
Unknown Object (File)
Feb 7 2026, 4:40 PM
Unknown Object (File)
Jan 30 2026, 8:04 PM
Unknown Object (File)
Jan 13 2026, 1:39 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