]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Selftests, add printk to test_sk_lookup_kern to encode null ptr check
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 21 May 2020 20:08:26 +0000 (13:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 May 2020 00:44:25 +0000 (17:44 -0700)
commit46bd91107713df42c30f90e1c05ee84caa6f425a
tree26ac9a5812fa137c7ba21cf91a1f083ba39dbd67
parent6868e524618a6e8770ede89d51486b18cd0d8fa0
bpf: Selftests, add printk to test_sk_lookup_kern to encode null ptr check

Adding a printk to test_sk_lookup_kern created the reported failure
where a pointer type is checked twice for NULL. Lets add it to the
progs test test_sk_lookup_kern.c so we test the case from C all the
way into the verifier.

We already have printk's in selftests so seems OK to add another one.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/159009170603.6313.1715279795045285176.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c