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)
Sat, Feb 7, 11:38 PM
Unknown Object (File)
Sat, Feb 7, 4:40 PM
Unknown Object (File)
Fri, Jan 30, 8:04 PM
Unknown Object (File)
Jan 13 2026, 1:39 AM
Unknown Object (File)
Dec 23 2025, 12:51 AM
Unknown Object (File)
Dec 21 2025, 9:29 PM
Unknown Object (File)
Dec 6 2025, 11:37 AM
Unknown Object (File)
Nov 28 2025, 12:25 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