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

google / alioth / 42707878325
40%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 10:03PM 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

09 Nov 2026 09:57PM UTC coverage: 39.484% (+0.08%) from 39.405%
42707878325

push

github

Lencerf
fix(virtio): check whole packed virtqueue rings in guest memory

Like SplitQueue::new() did, PackedQueue::new() checks only the first
descriptor of the ring, but the queue accesses descriptors up to the
queue size. A driver that places the ring at the end of guest memory,
or across two memory regions, makes the worker read and write host
memory beyond the guest memory mapping.

Check that the whole ring is backed by one contiguous host mapping, and
reject queue sizes above 2^15, the maximum for packed virtqueues, which
is also all that the 15-bit ring offset in WrappedIndex can address.

Also stop at a descriptor chain as long as the ring, since a chain takes
consecutive descriptors. Otherwise, a driver that sets VIRTQ_DESC_F_NEXT
in every descriptor makes the worker loop forever, and a driver that
changes the flags while the worker walks the chain can end it after more
descriptors than the ring has, which moves the offset of the next chain
beyond the ring.

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

858 of 1676 branches covered (51.19%)

Branch coverage included in aggregate %.

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

13 existing lines in 3 files now uncovered.

6216 of 16240 relevant lines covered (38.28%)

896.24 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
81.01
3.8% alioth/src/mem/mapped.rs
4
87.13
0.0% alioth/src/virtio/queue/split.rs
1
81.63
-0.24% alioth/src/virtio/dev/vsock/uds_vsock.rs
Jobs
ID Job ID Ran Files Coverage
1 42707878325.1 09 Nov 2026 10:03PM UTC 130
39.48
GitHub Action Run
Source Files on build 42707878325
  • Tree
  • List 130
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42707878325
  • e0b77c7e on github
  • Prev Build on main (#42696815888)
  • Next Build on main (#42723368780)
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