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
F114948183: D43090.id131536.diff
Fri, Apr 18, 10:03 PM
Unknown Object (File)
Sat, Apr 12, 4:04 AM
Unknown Object (File)
Wed, Apr 2, 8:05 PM
Unknown Object (File)
Mar 8 2025, 3:34 PM
Unknown Object (File)
Feb 15 2025, 5:11 PM
Unknown Object (File)
Feb 13 2025, 1:11 PM
Unknown Object (File)
Jan 26 2025, 12:41 PM
Unknown Object (File)
Jan 24 2025, 8:49 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