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
F166826870: D37486.id.diff
Sun, Aug 16, 9:29 PM
Unknown Object (File)
Sun, Aug 16, 4:28 AM
Unknown Object (File)
Sun, Aug 16, 4:22 AM
Unknown Object (File)
Sat, Aug 15, 11:25 AM
Unknown Object (File)
Sat, Aug 15, 11:23 AM
Unknown Object (File)
Sat, Aug 8, 11:54 AM
Unknown Object (File)
Sun, Aug 2, 4:09 AM
Unknown Object (File)
Thu, Jul 30, 3:10 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.