Re: [bpf-next PATCH] bpf: libbpf, add kernel version section parsing back

2019-10-18 Thread John Fastabend
Alexei Starovoitov wrote: > On Fri, Oct 18, 2019 at 9:52 AM Andrii Nakryiko wrote: > > > > On 10/18/19 7:41 AM, John Fastabend wrote: > > > With commit "libbpf: stop enforcing kern_version,..." we removed the > > > kernel version section parsing in favor of querying for the kernel > > > using unam

Re: [bpf-next PATCH] bpf: libbpf, add kernel version section parsing back

2019-10-18 Thread Alexei Starovoitov
On Fri, Oct 18, 2019 at 9:52 AM Andrii Nakryiko wrote: > > On 10/18/19 7:41 AM, John Fastabend wrote: > > With commit "libbpf: stop enforcing kern_version,..." we removed the > > kernel version section parsing in favor of querying for the kernel > > using uname() and populating the version using t

Re: [bpf-next PATCH] bpf: libbpf, add kernel version section parsing back

2019-10-18 Thread Daniel Borkmann
On Fri, Oct 18, 2019 at 07:41:26AM -0700, John Fastabend wrote: > With commit "libbpf: stop enforcing kern_version,..." we removed the > kernel version section parsing in favor of querying for the kernel > using uname() and populating the version using the result of the > query. After this any vers

Re: [bpf-next PATCH] bpf: libbpf, add kernel version section parsing back

2019-10-18 Thread Andrii Nakryiko
On 10/18/19 7:41 AM, John Fastabend wrote: > With commit "libbpf: stop enforcing kern_version,..." we removed the > kernel version section parsing in favor of querying for the kernel > using uname() and populating the version using the result of the > query. After this any version sections were sim

[bpf-next PATCH] bpf: libbpf, add kernel version section parsing back

2019-10-18 Thread John Fastabend
With commit "libbpf: stop enforcing kern_version,..." we removed the kernel version section parsing in favor of querying for the kernel using uname() and populating the version using the result of the query. After this any version sections were simply ignored. Unfortunately, the world of kernels i