https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112654
--- Comment #4 from Jose E. Marchesi <jemarch at gcc dot gnu.org> --- I think the problem here may be that OP's kernel doesn't understand BPF V4 instructions, and the program above has been compiled with them (movs). Try to use -mcpu=v3?