[BUG?] xdp-loader unable to load XDP program with bpf_xdp_adjust_meta() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We have run into issue reported in [0] when the XDP program has calls like:

bpf_xdp_adjust_meta(ctx, -(int)sizeof(struct meta_data))
or
bpf_xdp_adjust_tail(ctx, -1) < 0

xdp-loader is unable to load these XDP programs with verifier error
message "Extension program changes packet data, while original does
not", it seems to be triggered by the patches [1], removing these
calls work around the issue. it appears  another workaround is to
bpf_xdp_adjust_meta(ctx, 0) after reading [1] thread?

[0]: https://github.com/xdp-project/xdp-tools/issues/503
[1]: https://lore.kernel.org/all/20241210041100.1898468-1-eddyz87@xxxxxxxxx/

Vincent

Thanks!




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux