Re: [PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info

2018-05-30 Thread Dmitry V. Levin
On Sun, May 27, 2018 at 01:28:42PM +0200, Eugene Syromiatnikov wrote: > Recent introduction of netns_dev/netns_ino to bpf_map_info/bpf_prog info > has broken compat, as offsets of these fields are different in 32-bit > and 64-bit ABIs. One fix (other than implementing compat support in > syscall

Re: [PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info

2018-05-30 Thread Dmitry V. Levin
On Sun, May 27, 2018 at 01:28:42PM +0200, Eugene Syromiatnikov wrote: > Recent introduction of netns_dev/netns_ino to bpf_map_info/bpf_prog info > has broken compat, as offsets of these fields are different in 32-bit > and 64-bit ABIs. One fix (other than implementing compat support in > syscall

[PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info

2018-05-27 Thread Eugene Syromiatnikov
Recent introduction of netns_dev/netns_ino to bpf_map_info/bpf_prog info has broken compat, as offsets of these fields are different in 32-bit and 64-bit ABIs. One fix (other than implementing compat support in syscall in order to handle this discrepancy) is to use __aligned_u64 instead of __u64

[PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info

2018-05-27 Thread Eugene Syromiatnikov
Recent introduction of netns_dev/netns_ino to bpf_map_info/bpf_prog info has broken compat, as offsets of these fields are different in 32-bit and 64-bit ABIs. One fix (other than implementing compat support in syscall in order to handle this discrepancy) is to use __aligned_u64 instead of __u64