Skip to content

Commit

Permalink
Merge branch 'iovisor:main' into cross_check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Jowett authored Oct 23, 2024
2 parents 248f3ba + 2e945f5 commit 84d8178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion external/ebpf-verifier
Submodule ebpf-verifier updated 0 files
5 changes: 2 additions & 3 deletions vm/ubpf_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ ubpf_check_shadow_stack(
uintptr_t stack_end = stack_start + stack_length;

if (access_start > access_end) {
// Overflow
// Not a stack location.
return true;
}

Expand Down Expand Up @@ -929,8 +929,7 @@ ubpf_exec_ex(
do { \
if (!ubpf_check_shadow_stack( \
vm, stack_start, stack_length, shadow_stack, (char*)reg[inst.src] + inst.offset, size)) { \
return_value = -1; \
goto cleanup; \
shadow_registers &= ~REGISTER_TO_SHADOW_MASK(inst.dst); \
} \
if (!bounds_check( \
vm, \
Expand Down

0 comments on commit 84d8178

Please sign in to comment.