On Mon, Jul 1, 2019 at 9:54 AM Stanislav Fomichev <[email protected]> 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 <[email protected]> > Cc: Yonghong Song <[email protected]> > Signed-off-by: Stanislav Fomichev <[email protected]> > ---
Acked-by: Andrii Nakryiko <[email protected]> > 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>
