Re: XDP invalid memory access

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

 




On Thu, 16 Jan 2020, Maciej Fijalkowski wrote:

> 
> I see that optlen is a global variable. This line might be valid but
> you're using iproute2's loader for your XDP program, right? AFAIK it
> doesn't have support for BPF global variables, only libbpf does (Daniel,
> Andrii? is that true?).
> 
> So you have to either make the optlen a local variable or go with writing
> the loader part that is based on libbpf usage (see samples/bpf directory
> in kernel tree, for example xdp1_user.c).

ok I will try use optlen as local variable or use libbpf

> 
> Could you next time try a little better with the format of data you're
> providing? I'm pretty sure other folks would have spotted earlier that
> optlen is global if the code was properly formatted :)

I am using gmail from chrome browser in plain text mode, seems still not 
good with the text format. I switched to alpine now, not sure I have the 
proper alpine setting, let me know next time if you still see not properly 
format :)




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux