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

iovisor / ubpf / 21459857185
78%

Build:
DEFAULT BRANCH: main
Ran 28 Jan 2026 11:51PM UTC
Jobs 6
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

28 Jan 2026 11:47PM UTC coverage: 76.609% (-1.5%) from 78.066%
21459857185

push

github

web-flow
Add bounds checking to x86_64 JIT compiler for load/store operations (#721)

* Implement bounds checking for load/store operations in x86-64 JIT compiler

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Add bounds checking for x86_64 JIT compiler - initial implementation

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix register offset calculations in bounds check, verify basic JIT works

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix stack base calculation for BasicJitMode and error path stack cleanup

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix all 5 review comments: remove unused function, fix register loading, use patchable jumps, fix stack cleanup, reserve parameter storage

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix 5 new review comments: use R11 for address, fix stack alignment, clean up comments, fix error return, fix type signatures

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix 6 new review comments: use R10 for address, add atomic bounds checks, fix formatting, add error patterns to tests

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Fix JIT bounds checking register save/restore order and disable by default

The JIT bounds checking implementation had issues with register corruption:
1. Registers were being computed into before being saved
2. R10 (mapped to BPF_REG_1 on Windows) was not being properly restored
3. Stack offsets for accessing saved registers were incorrect

Fixed by:
- Save all volatile registers BEFORE computing the effective address
- Load saved register values from stack if addr_reg was pushed
- Fix stack layout comments and offsets for both Windows and Linux
- Properly restore R10 by popping instead of discarding

Since the JIT bounds checking is still not fully working (tests... (continued)

21 of 141 new or added lines in 2 files covered. (14.89%)

32 existing lines in 2 files now uncovered.

6334 of 8268 relevant lines covered (76.61%)

533328.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
75.83
-2.0% vm/ubpf_vm.c
116
80.3
-7.05% vm/ubpf_jit_x86_64.c

Uncovered Existing Lines

Lines Coverage ∆ File
6
43.46
-2.53% vm/test.c
26
75.83
-2.0% vm/ubpf_vm.c
Jobs
ID Job ID Ran Files Coverage
1 run-Debug-ubuntu-latest-x86_64 - 21459857185.1 28 Jan 2026 11:56PM UTC 68
72.11
GitHub Action Run
2 run-RelWithDebInfo-ubuntu-24.04-arm-arm64 - 21459857185.2 28 Jan 2026 11:58PM UTC 69
57.06
GitHub Action Run
3 run-RelWithDebInfo-ubuntu-latest-x86_64 - 21459857185.3 28 Jan 2026 11:57PM UTC 68
72.08
GitHub Action Run
4 run-Debug-macos-latest-x86_64 - 21459857185.4 28 Jan 2026 11:52PM UTC 84
75.37
GitHub Action Run
5 run-RelWithDebInfo-macos-latest-x86_64 - 21459857185.5 28 Jan 2026 11:51PM UTC 84
75.24
GitHub Action Run
6 run-Debug-ubuntu-24.04-arm-arm64 - 21459857185.6 28 Jan 2026 11:55PM UTC 69
57.05
GitHub Action Run
Source Files on build 21459857185
  • Tree
  • List 130
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21459857185
  • ebfb44fb on github
  • Prev Build on main (#21458771598)
  • Next Build on main (#21460047714)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc