]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80cf438576cd68b4966f3972baf9fd052e5a9b0a
treed61307e9cdc96d09e6842b4cd44a5bdfbc82596d
parentdd715c2b85332c1f33d1876e92fe162a4d2ae426
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: be237c89bfeb ("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