• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / alioth / 42943648522
44%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 02:08AM UTC
Jobs 1
Files 130
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2026 02:03AM UTC coverage: 43.652% (+0.01%) from 43.638%
42943648522

push

github

Lencerf
fix(virtio): set WRITE flag on packed used descriptors from len

PackedQueue::set_used() previously loaded the overwritten available
descriptor's flags and only toggled AVAIL and USED, preserving stale
WRITE, NEXT, and INDIRECT bits in the used descriptor.

Per VirtIO 1.4 Sec 2.8.3 and 2.8.4, VIRTQ_DESC_F_WRITE in a used
descriptor specifies whether the device wrote any data into any part
of the buffer, and Element Length is reserved and ignored by drivers
when VIRTQ_DESC_F_WRITE is clear. Consequently, any request starting
with a readable header or an indirect descriptor (or completed out of
order into a readable slot) produced a used descriptor with WRITE
clear even when len > 0, so a driver that ignores Element Length as
the spec allows would treat the written length as 0. Conversely,
completing a writable slot with len == 0 left WRITE set, and NEXT,
which is reserved in used descriptors (Sec 2.8.6), or INDIRECT leaked
into used flags.

Linux is not affected, since it reads the length of a used descriptor
regardless of VIRTQ_DESC_F_WRITE.

Construct the used descriptor flags from scratch instead, setting
USED | AVAIL from the ring wrap counter and WRITE iff len > 0.

Fixes: f97eb722e6fa ("feat(virtio): support packed queue")
Signed-off-by: Changyuan Lyu <changyuanl@google.com>

976 of 1750 branches covered (55.77%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

6966 of 16444 relevant lines covered (42.36%)

905.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
81.22
-0.12% alioth/src/virtio/dev/vsock/uds_vsock.rs
Jobs
ID Job ID Ran Files Coverage
1 42943648522.1 11 Nov 2026 02:08AM UTC 130
43.65
GitHub Action Run
Source Files on build 42943648522
  • Tree
  • List 130
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42943648522
  • 8d777ce9 on github
  • Prev Build on gh-readonly-queue/main/pr-538-fd076e0e5056a97c458acb3d759abb39acdf4702 (#42933589532)
  • Next Build on main (#42957975457)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc