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)
Tue, Apr 16, 4:55 AM
Unknown Object (File)
Thu, Apr 11, 5:33 PM
Unknown Object (File)
Tue, Apr 9, 8:28 PM
Unknown Object (File)
Sat, Apr 6, 6:13 PM
Unknown Object (File)
Wed, Apr 3, 7:09 AM
Unknown Object (File)
Feb 15 2024, 8:40 AM
Unknown Object (File)
Feb 15 2024, 8:40 AM
Unknown Object (File)
Feb 15 2024, 8:39 AM

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.