Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Officeyutong committed Jun 8, 2024
1 parent f780d35 commit fa23a8a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-execution-context-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
pull_request:
branches: "master"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion src/libebpf_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static inline bool ebpf_runtime_bound_check(const struct ebpf_vm *vm, void *addr
} else if (addr >= stack && ((char *)addr + size) <= ((char *)stack + EBPF_STACK_SIZE)) {
return true;
} else {
ebpf_set_error_string("ebpf error: out of bounds memory %s at PC %u, addr %p, size %d\nmem %p/%zd stack %p/%d\n", type, cur_pc, addr, size,
ebpf_set_error_string("ebpf error: out of bounds memory %s at PC %u, addr %p, size %d, mem %p/%zd stack %p/%d", type, cur_pc, addr, size,
mem, mem_len, stack, EBPF_STACK_SIZE);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion vm-test/test-cases/err-stack-oob.data
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
stb [r10], 0
exit
-- error pattern
ebpf error: out of bounds memory store at PC 0, addr .*, size 1
ebpf error: out of bounds memory store at PC 0, addr .*, size 1, mem .* stack .*
-- result
0xffffffffffffffff
-- no jit
Expand Down
1 change: 0 additions & 1 deletion vm-test/test_runner/test_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ int main(int argc, char **argv) {
if (ebpf_vm_run(vm, mem, mem_len, &ret) < 0) {
ret = UINT64_MAX;
fprintf(stderr, "%s", ebpf_error_string());
return 1;
}
}

Expand Down

0 comments on commit fa23a8a

Please sign in to comment.