While testing my rust Aya xdp ebpf program i came across this error
Error: the BPF_PROG_LOAD syscall failed. Verifier output: fd 10 is not pointing to valid bpf_mapverification time 215 usecstack depth 0+0+0+0+0processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
Caused by:Bad file descriptor (os error 9)
After doing some research i found the issue being the EbpfLogger::init(&mut bpf) call.This doesn't happen to me when i use it in my personal laptop with 6.8 kernel (ubuntu) and it happens with debian 11 with 6.1 backport kernel (where i am trying to benchmark it). I don't know if this is a kernel version issue, but i had to note it.
Not really familiar how to debug such issues it would help me a lot since, i can't benchmark my program.(i have configured some HashMaps who don't cause any errors, maybe it is something used underneath for passing log messages from kernel space to userspace)