On Mon, Jul 1, 2019 at 9:54 AM Stanislav Fomichev <s...@google.com> 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 <andr...@fb.com> > Cc: Yonghong Song <y...@fb.com> > Signed-off-by: Stanislav Fomichev <s...@google.com> > ---
Acked-by: Andrii Nakryiko <andr...@fb.com> > 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>