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)
Wed, Jul 22, 11:44 PM
Unknown Object (File)
Wed, Jul 22, 6:26 PM
Unknown Object (File)
Tue, Jul 21, 3:31 AM
Unknown Object (File)
Mon, Jul 13, 8:27 PM
Unknown Object (File)
Mon, Jul 13, 8:27 PM
Unknown Object (File)
Sat, Jul 4, 4:54 PM
Unknown Object (File)
Wed, Jul 1, 2:07 AM
Unknown Object (File)
Mon, Jun 29, 1:21 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48477
Build 45363: arc lint + arc unit

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.