Files
wlan-ap-legacy-targets/ipq806x/backport-5.4/999-bpf-off-by-one-backport.patch
John Crispin 023fc857e9 ipq806x: add 2.11 version of the target
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-28 13:12:50 +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:
*