Re: [PATCH bpf-next 2/2] selftests/bpf: add verifier tests for wide stores

2019-07-01 Thread Stanislav Fomichev
On 06/30, Yonghong Song wrote: > > > On 6/28/19 4:10 PM, Stanislav Fomichev wrote: > > Make sure that wide stores are allowed at proper (aligned) addresses. > > Note that user_ip6 is naturally aligned on 8-byte boundary, so > > correct addresses are user_ip6[0] and user_ip6[2]. msg_src_ip6 is, >

Re: [PATCH bpf-next 2/2] selftests/bpf: add verifier tests for wide stores

2019-07-01 Thread Andrii Nakryiko
On Sat, Jun 29, 2019 at 11:02 PM Yonghong Song wrote: > > > > On 6/28/19 4:10 PM, Stanislav Fomichev wrote: > > Make sure that wide stores are allowed at proper (aligned) addresses. > > Note that user_ip6 is naturally aligned on 8-byte boundary, so > > correct addresses are user_ip6[0] and user_ip

Re: [PATCH bpf-next 2/2] selftests/bpf: add verifier tests for wide stores

2019-06-29 Thread Yonghong Song
On 6/28/19 4:10 PM, Stanislav Fomichev wrote: > Make sure that wide stores are allowed at proper (aligned) addresses. > Note that user_ip6 is naturally aligned on 8-byte boundary, so > correct addresses are user_ip6[0] and user_ip6[2]. msg_src_ip6 is, > however, aligned on a 4-byte bondary, so on

[PATCH bpf-next 2/2] selftests/bpf: add verifier tests for wide stores

2019-06-28 Thread Stanislav Fomichev
Make sure that wide stores are allowed at proper (aligned) addresses. Note that user_ip6 is naturally aligned on 8-byte boundary, so correct addresses are user_ip6[0] and user_ip6[2]. msg_src_ip6 is, however, aligned on a 4-byte bondary, so only msg_src_ip6[1] can be wide-stored. Cc: Andrii Nakryi