Skip to content

Commit 8e17c1b

Browse files
ecree-solarflaredavem330
authored andcommitted
bpf/verifier: increase complexity limit to 128k
The more detailed value tracking can reduce the effectiveness of pruning for some programs. So, to avoid rejecting previously valid programs, up the limit to 128kinsns. Hopefully we will be able to bring this back down later by improving pruning performance. Signed-off-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0cbf474 commit 8e17c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/verifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct bpf_verifier_stack_elem {
140140
struct bpf_verifier_stack_elem *next;
141141
};
142142

143-
#define BPF_COMPLEXITY_LIMIT_INSNS 98304
143+
#define BPF_COMPLEXITY_LIMIT_INSNS 131072
144144
#define BPF_COMPLEXITY_LIMIT_STACK 1024
145145

146146
#define BPF_MAP_PTR_POISON ((void *)0xeB9F + POISON_POINTER_DELTA)

0 commit comments

Comments
 (0)