]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Verify optval=NULL case
authorStanislav Fomichev <sdf@google.com>
Tue, 18 Apr 2023 22:53:39 +0000 (15:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 21 Apr 2023 15:10:34 +0000 (17:10 +0200)
commit833d67ecdc5f35f1ebf59d0fccc1ce771434be9c
tree20aa94dcd4c88a9d96bcaabd89dfd2a2bf227458
parent00e74ae0863827d944e36e56a4ce1e77e50edb91
selftests/bpf: Verify optval=NULL case

Make sure we get optlen exported instead of getting EFAULT.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230418225343.553806-3-sdf@google.com
tools/testing/selftests/bpf/prog_tests/sockopt_sk.c
tools/testing/selftests/bpf/progs/sockopt_sk.c