ubpf
ubpf copied to clipboard
Userspace eBPF VM
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.2. Release notes Sourced from actions/cache's releases. v4.0.2 What's Changed Fix fail-on-cache-miss not working by @cdce8p in actions/cache#1327 Full Changelog: https://github.com/actions/cache/compare/v4.0.1...v4.0.2 v4.0.1 What's Changed Update...
Bumps [external/bpf_conformance](https://github.com/Alan-Jowett/bpf_conformance) from `c4ce8f5` to `ce95710`. Commits ce95710 Bump github/codeql-action from 3.25.3 to 3.25.4 (#249) 421c734 Bump actions/dependency-review-action from 4.2.5 to 4.3.2 (#240) 3e528b4 Bump actions/checkout from 4.1.4 to 4.1.5...
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.24.5 to 3.25.5. Changelog Sourced from github/codeql-action's changelog. CodeQL Action Changelog See the releases page for the relevant changes to the CodeQL CLI and language packs. Note...
Setting of the offset -> PC target should occur after adjusting the stack, not before: https://github.com/iovisor/ubpf/blob/2bcb0150a414d6c50fe555df9069c2da8384eaed/vm/ubpf_jit_x86_64.c#L304 Failure to do this causes each loop iteration to adjust the stack on each...
The following instruction sequence causes uBPF to crash in JIT mode ``` call local 0x0 jgt %r0, %r0, +0 exit exit exit ``` [program_local_call.zip](https://github.com/iovisor/ubpf/files/15255811/program_local_call.zip)
As per the BPF ISA spec: https://www.ietf.org/archive/id/draft-ietf-bpf-isa-00.html#section-3.1-3  But the implementation of 32bit ALU operations doesn't truncate. https://github.com/iovisor/ubpf/blob/e8de891f30db1799985eab9bae1eccb2849dd505/vm/ubpf_jit_x86_64.c#L317C1-L320C19
Test case: ``` -- mem 00 00 00 01 00 00 00 02 -- asm sub %r2, 1 jne %r2, 0, -2 mov %r0, 0 exit -- result 0x0 ```...
Bumps [external/bpf_conformance](https://github.com/Alan-Jowett/bpf_conformance) from `a407af3` to `b8bd0e3`. Commits b8bd0e3 Bump github/codeql-action from 3.25.11 to 3.25.12 (#283) b728ddc Bump actions/dependency-review-action from 4.3.3 to 4.3.4 (#282) 49ee55e Bump windows/nanoserver from f31fa31 to 736f884...
I have been going through the ubpf_loader code and I was wondering if the offset check below should be `>=` instead? https://github.com/iovisor/ubpf/blob/2c2a68a2d9d3d9c4db159a03391a2841e8baa964/vm/ubpf_loader.c#L367 Couldn't there be cases where the offset could...