On Mon, Jul 1, 2019 at 9:54 AM Stanislav Fomichev <sdf@xxxxxxxxxx> 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 only msg_src_ip6[1] > can be wide-stored. > > Cc: Andrii Nakryiko <andriin@xxxxxx> > Cc: Yonghong Song <yhs@xxxxxx> > Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/testing/selftests/bpf/test_verifier.c | 17 +++++++-- > .../selftests/bpf/verifier/wide_store.c | 36 +++++++++++++++++++ > 2 files changed, 50 insertions(+), 3 deletions(-) > create mode 100644 tools/testing/selftests/bpf/verifier/wide_store.c > <snip>