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)
Sat, Feb 28, 10:35 AM
Unknown Object (File)
Sat, Feb 28, 12:34 AM
Unknown Object (File)
Fri, Feb 27, 11:29 AM
Unknown Object (File)
Jan 14 2026, 11:46 AM
Unknown Object (File)
Jan 13 2026, 7:55 AM
Unknown Object (File)
Dec 27 2025, 2:04 AM
Unknown Object (File)
Dec 22 2025, 11:51 PM
Unknown Object (File)
Dec 11 2025, 8:02 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)