libbpf: prog 'xdp_filter_spam': BPF program load failed: Permission denied
libbpf: prog 'xdp_filter_spam': -- BEGIN PROG LOAD LOG --
0: R1=ctx() R10=fp0
0: (b7) r0 = 2 ; R0_w=2
1: (61) r2 = *(u32 *)(r1 +4) ; R1=ctx() R2_w=pkt_end()
2: (61) r1 = *(u32 *)(r1 +0) ; R1_w=pkt(r=0)
3: (bf) r3 = r1 ; R1_w=pkt(r=0) R3_w=pkt(r=0)
4: (07) r3 += 14 ; R3_w=pkt(off=14,r=0)
5: (2d) if r3 > r2 goto pc+900 ; R2_w=pkt_end() R3_w=pkt(off=14,r=14)
6: (71) r5 = *(u8 *)(r1 +12) ; R1_w=pkt(r=14) R5_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=255,var_off=(0x0; 0xff))
7: (71) r4 = *(u8 *)(r1 +13) ; R1_w=pkt(r=14) R4_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=255,var_off=(0x0; 0xff))
8: (67) r4 <<= 8 ; R4_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=0xff00,var_off=(0x0; 0xff00))
9: (4f) r4 |= r5 ; R4_w=scalar() R5_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=255,var_off=(0x0; 0xff))
10: (15) if r4 == 0x81 goto pc+1 ; R4_w=scalar()
11: (55) if r4 != 0xa888 goto pc+4 ; R4=0xa888
12: (bf) r3 = r1 ; R1=pkt(r=14) R3_w=pkt(r=14)
13: (07) r3 += 18 ; R3_w=pkt(off=18,r=14)
14: (2d) if r3 > r2 goto pc+891 ; R2=pkt_end() R3_w=pkt(off=18,r=18)
15: (69) r4 = *(u16 *)(r1 +16) ; R1=pkt(r=18) R4_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=0xffff,var_off=(0x0; 0xffff))
16: (55) if r4 != 0x8 goto pc+889 ; R4_w=8
17: (bf) r1 = r3 ; R1_w=pkt(off=18,r=18) R3_w=pkt(off=18,r=18)
18: (07) r1 += 20 ; R1=pkt(off=38,r=18)
19: (2d) if r1 > r2 goto pc+886 ; R1=pkt(off=38,r=38) R2=pkt_end()
20: (71) r4 = *(u8 *)(r3 +0) ; R3=pkt(off=18,r=38) R4_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=255,var_off=(0x0; 0xff))
21: (57) r4 &= 15 ; R4_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=15,var_off=(0x0; 0xf))
22: (b7) r1 = 5 ; R1_w=5
23: (2d) if r1 > r4 goto pc+882 ; R1_w=5 R4_w=scalar(smin=umin=smin32=umin32=5,smax=umax=smax32=umax32=15,var_off=(0x0; 0xf))
24: (67) r4 <<= 2 ; R4_w=scalar(smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
25: (bf) r1 = r3 ; R1_w=pkt(off=18,r=38) R3=pkt(off=18,r=38)
26: (0f) r1 += r4 ; R1=pkt(id=1,off=18,r=0,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c)) R4=scalar(smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
27: (2d) if r1 > r2 goto pc+878 ; R1=pkt(id=1,off=18,r=18,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c)) R2=pkt_end()
28: (71) r3 = *(u8 *)(r3 +9) ; R3_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=255,var_off=(0x0; 0xff))
29: (55) if r3 != 0x6 goto pc+876 ; R3_w=6
30: (bf) r3 = r1 ; R1=pkt(id=1,off=18,r=18,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c)) R3_w=pkt(id=1,off=18,r=18,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
31: (07) r3 += 20 ; R3_w=pkt(id=1,off=38,r=18,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
32: (2d) if r3 > r2 goto pc+873 ; R2=pkt_end() R3_w=pkt(id=1,off=38,r=38,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
33: (69) r3 = *(u16 *)(r1 +12) ; R1=pkt(id=1,off=18,r=38,smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c)) R3_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=0xffff,var_off=(0x0; 0xffff))
34: (77) r3 >>= 4 ; R3_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=4095,var_off=(0x0; 0xfff))
35: (57) r3 &= 15 ; R3_w=scalar(smin=smin32=0,smax=umax=smax32=umax32=15,var_off=(0x0; 0xf))
36: (b7) r4 = 5 ; R4=5
37: (2d) if r4 > r3 goto pc+868 ; R3=scalar(smin=umin=smin32=umin32=5,smax=umax=smax32=umax32=15,var_off=(0x0; 0xf)) R4=5
38: (67) r3 <<= 2 ; R3_w=scalar(smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
39: (0f) r1 += r3 ; R1_w=pkt(id=2,off=18,r=0,smin=umin=smin32=umin32=40,smax=umax=smax32=umax32=120,var_off=(0x0; 0x7c)) R3_w=scalar(smin=umin=smin32=umin32=20,smax=umax=smax32=umax32=60,var_off=(0x0; 0x3c))
40: (2d) if r1 > r2 goto pc+865 ; R1_w=pkt(id=2,off=18,r=18,smin=umin=smin32=umin32=40,smax=umax=smax32=umax32=120,var_off=(0x0; 0x7c)) R2=pkt_end()
41: (1f) r2 -= r1 ; R1_w=pkt(id=2,off=18,r=18,smin=umin=smin32=umin32=40,smax=umax=smax32=umax32=120,var_off=(0x0; 0x7c)) R2_w=scalar()
42: (bf) r3 = r2 ; R2_w=scalar(id=3) R3_w=scalar(id=3)
43: (67) r3 <<= 32 ; R3_w=scalar(smax=0x7fffffff00000000,umax=0xffffffff00000000,smin32=0,smax32=umax32=0,var_off=(0x0; 0xffffffff00000000))
44: (c7) r3 s>>= 32 ; R3_w=scalar(smin=0xffffffff80000000,smax=0x7fffffff)
45: (b7) r4 = 4 ; R4=4
46: (6d) if r4 s> r3 goto pc+859 ; R3=scalar(smin=umin=smin32=umin32=4,smax=umax=umax32=0x7fffffff,var_off=(0x0; 0x7fffffff)) R4=4
47: (71) r3 = *(u8 *)(r1 +0)
invalid access to packet, off=18 size=1, R1(id=2,off=18,r=18)
R1 offset is outside of the packet
processed 48 insns (limit 1000000) max_states_per_insn 0 total_states 5 peak_states 5 mark_read 1
-- END PROG LOAD LOG --
libbpf: prog 'xdp_filter_spam': failed to load: -13
libbpf: failed to load object 'filter_xdp_antispam.o'
potatoenjoyer@potatoenjoyer:~/nsu_studies/networks/filter$ sudo dmesg | tail -n 30
[27550.532615] amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 8
[27550.532617] amdgpu 0000:04:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 8
[27550.532620] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 8
[27550.532622] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 8
[27550.532624] amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 8
[27550.552544] nvme nvme0: 16/0/0 default/read/poll queues
[27550.556785] nvme nvme0: Ignoring bogus Namespace Identifiers
[27550.670796] OOM killer enabled.
[27550.670804] Restarting tasks ... done.
[27550.674022] random: crng reseeded on system resumption
[27550.692141] PM: suspend exit
[27550.828068] ata2: SATA link down (SStatus 0 SControl 300)
[27550.828068] ata1: SATA link down (SStatus 0 SControl 300)
[27553.313492] wlp2s0: authenticate with 50:ff:20:11:4c:8e (local address=34:6f:24:bf:a1:87)
[27553.452683] wlp2s0: send auth to 50:ff:20:11:4c:8e (try 1/3)
[27553.456511] wlp2s0: authenticated
[27553.458663] wlp2s0: associate with 50:ff:20:11:4c:8e (try 1/3)
[27553.466945] wlp2s0: RX AssocResp from 50:ff:20:11:4c:8e (capab=0x1c11 status=0 aid=3)
[27553.473473] wlp2s0: associated
[27553.649449] wlp2s0: Limiting TX power to 20 (20 - 0) dBm as advertised by 50:ff:20:11:4c:8e
[27607.508638] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27608.841596] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27610.010602] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27614.490591] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27709.908824] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27711.243313] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27712.576931] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27715.161677] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27716.495106] pcieport 0000:00:08.1: PME: Spurious native interrupt!
[27721.496357] pcieport 0000:00:08.1: PME: Spurious native interrupt!