Page MenuHomeFreeBSD

nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident
ClosedPublic

Authored by jhb on Nov 20 2025, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 8, 2:08 AM
Unknown Object (File)
Tue, Apr 7, 12:50 PM
Unknown Object (File)
Tue, Apr 7, 1:21 AM
Unknown Object (File)
Sun, Apr 5, 2:06 AM
Unknown Object (File)
Sat, Apr 4, 11:22 PM
Unknown Object (File)
Tue, Mar 17, 10:10 PM
Unknown Object (File)
Feb 28 2026, 10:35 AM
Unknown Object (File)
Feb 28 2026, 12:34 AM
Subscribers

Details

Summary

These buffers should not overlap.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68767
Build 65650: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 20 2025, 2:52 PM

memmove -> memcpy is the right thing because sn and cddata->sn can't possibly overlap.

sys/dev/nvme/nvme.h
35

This is OBE. I committed, without review, this change earlier today. I had missed this review until I was doing a deep-dive into my unread email. mea culpa.

This revision is now accepted and ready to land.Nov 26 2025, 3:02 AM
sys/dev/nvme/nvme.h
35

No worries.

jhb retitled this revision from nvme: Small cleanups to <dev/nvme/nvme.h> to nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.Dec 2 2025, 3:56 PM
jhb edited the summary of this revision. (Show Details)