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)
Thu, Sep 17, 3:10 AM
Unknown Object (File)
Sat, Sep 12, 5:52 PM
Unknown Object (File)
Sep 2 2026, 10:27 AM
Unknown Object (File)
Aug 31 2026, 10:29 AM
Unknown Object (File)
Aug 29 2026, 10:09 AM
Unknown Object (File)
Aug 29 2026, 2:03 AM
Unknown Object (File)
Aug 27 2026, 8:21 AM
Unknown Object (File)
Aug 25 2026, 4:57 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.