Open osinstom opened 4 years ago
I understand the second error, but not the first. In the second case, R0 is marked as UINIT by the call to printf. It is then used to access the packet, so the verifier complains. I need to check what's the correct behaviour there.
For the first case, does your printf have multiple arguments? I don't understand why R0 is accessed... I will try to find some time to run tests.
I'm trying to test programs with
ubpf_printf()
. However, verifier rejects them. I usempls.c
fromexmaples/
as the reference program.If I put
ubpf_printf()
beforeubpf_packet_data()
I'm getting the following message:If I put
ubpf_printf()
afterubpf_packet_data()
I'm getting the following message:The latter is quite strange for me, as
ubpf_printf()
does not impact the actual packet.@pchaigno Would you be able to take a look at it?