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
F102717311: D37486.diff
Sat, Nov 16, 7:15 AM
Unknown Object (File)
Oct 8 2024, 6:12 AM
Unknown Object (File)
Oct 3 2024, 12:57 PM
Unknown Object (File)
Oct 3 2024, 10:00 AM
Unknown Object (File)
Oct 1 2024, 6:16 PM
Unknown Object (File)
Oct 1 2024, 1:16 PM
Unknown Object (File)
Sep 5 2024, 6:43 AM
Unknown Object (File)
Sep 4 2024, 11:35 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.