Page MenuHomeFreeBSD

bhyve: Don't leak uninitialized bits in NVMe completion statuses.
ClosedPublic

Authored by jhb on Nov 23 2022, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 2, 11:09 AM
Unknown Object (File)
Apr 24 2026, 5:30 AM
Unknown Object (File)
Apr 23 2026, 7:30 AM
Unknown Object (File)
Apr 21 2026, 11:56 PM
Unknown Object (File)
Apr 7 2026, 11:15 AM
Unknown Object (File)
Apr 7 2026, 1:59 AM
Unknown Object (File)
Apr 5 2026, 2:51 PM
Unknown Object (File)
Mar 19 2026, 8:31 PM

Details

Summary

In some cases, some bits in the 16-bit status word were never
initialized.

Reported by: GCC

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Nov 23 2022, 11:16 PM
This revision is now accepted and ready to land.Nov 24 2022, 6:31 AM

I'm surprised that clang didn't flag these. I've noticed it has trouble detecting uninitialized variable use in functions containing gotos, but that doesn't apply here.