Files
wlan-ap-legacy-targets/ipq40xx/backport-5.4/999-bpf-off-by-one-backport.patch
jaspreetsachdev 4365a73103 ipq40xx: import legacy target from 2.11
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-21 10:55:09 +02:00

14 lines
389 B
Diff

Index: linux-5.4.158/kernel/bpf/verifier.c
===================================================================
--- linux-5.4.158.orig/kernel/bpf/verifier.c
+++ linux-5.4.158/kernel/bpf/verifier.c
@@ -5372,7 +5372,7 @@ static void find_good_pkt_pointers(struc
new_range = dst_reg->off;
if (range_right_open)
- new_range--;
+ new_range++;
/* Examples for register markings:
*