bpf: sk_msg, fix sk_msg_md access past end test
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 20 Dec 2018 19:35:29 +0000 (11:35 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 20 Dec 2018 22:47:08 +0000 (23:47 +0100)
commit9ee79a65d176e5815877aa148acc956e4cc90c53
treed61307e9cdc96d09e6842b4cd44a5bdfbc82596d
parent77ea5f4cbe2084db9ab021ba73fb7eadf1610884
bpf: sk_msg, fix sk_msg_md access past end test

Currently, the test to ensure reads past the end of the sk_msg_md
data structure fail is incorrectly expecting success. Fix this
typo and use correct expected error.

Fixes: 945a47d87cee ("bpf: sk_msg, add tests for size field")
Reported-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c