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, Feb 25, 10:58 AM
Unknown Object (File)
Sun, Feb 23, 6:35 PM
Unknown Object (File)
Feb 21 2025, 11:19 AM
Unknown Object (File)
Feb 10 2025, 3:24 AM
Unknown Object (File)
Feb 10 2025, 2:34 AM
Unknown Object (File)
Jan 31 2025, 12:30 AM
Unknown Object (File)
Jan 30 2025, 5:59 PM
Unknown Object (File)
Jan 29 2025, 8:58 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.