While loading test.c program (with refactored packet size's check) I'm getting the following debug message:
2020-02-03T09:39:58.645Z|24443|verifier|INFO|PC=176, class=0x5, opcode=0x5
2020-02-03T09:39:58.645Z|24444|verifier|INFO| unconditional jump from PC 176 to PC 212
2020-02-03T09:39:58.645Z|24445|verifier|INFO|PC=212, class=0x3, opcode=0x7b
2020-02-03T09:39:58.645Z|24446|verifier|INFO| Spilled R8 to stack offset 888
2020-02-03T09:39:58.645Z|24447|verifier|INFO|PC=213, class=0x1, opcode=0x79
2020-02-03T09:39:58.645Z|24448|verifier|INFO| Loaded R8 from stack offset 872
2020-02-03T09:39:58.645Z|24449|verifier|INFO|PC=214, class=0x7, opcode=0x7
2020-02-03T09:39:58.645Z|24450|verifier|INFO| R8 (t=4) has updated range [304;304] U [304;304]
2020-02-03T09:39:58.645Z|24451|verifier|INFO|PC=215, class=0x7, opcode=0xb7
2020-02-03T09:39:58.645Z|24452|verifier|INFO| R1 now has type 0x4, range [38;38] U [38;38]
2020-02-03T09:39:58.645Z|24453|verifier|INFO|PC=216, class=0x7, opcode=0xbf
2020-02-03T09:39:58.645Z|24454|verifier|INFO| R9 now has type 0x4, range [0;0] U [0;0]
2020-02-03T09:39:58.645Z|24455|verifier|INFO|PC=217, class=0x5, opcode=0x55
2020-02-03T09:39:58.645Z|24456|verifier|INFO| R3 (t=4) may have updated range [0;0] U [0;0]
2020-02-03T09:39:58.645Z|24457|verifier|INFO|PC=218, class=0x7, opcode=0xb7
2020-02-03T09:39:58.645Z|24458|verifier|INFO| R1 now has type 0x4, range [34;34] U [34;34]
2020-02-03T09:39:58.645Z|24459|verifier|INFO|PC=219, class=0x0, opcode=0x18
2020-02-03T09:39:58.645Z|24460|bpf|WARN|Failed to load code: invalid access to map value (0 + 8 > 4) at PC 219
While loading
test.c
program (with refactored packet size's check) I'm getting the following debug message:test.c
test.h
\cc @pchaigno