aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_sockmap_drop_prog.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2023-05-22 19:56:16 -0700
committerDaniel Borkmann <[email protected]>2023-05-23 16:11:13 +0200
commitbb516f98c731cafe27900f43c0ef0aa7b5a9a44b (patch)
treea39f25da84739da53744a21552f01ee5d4237729 /tools/testing/selftests/bpf/progs/test_sockmap_drop_prog.c
parent1fa1fe8ff161cc34620e31295235dc1e6d0dce77 (diff)
bpf, sockmap: Test FIONREAD returns correct bytes in rx buffer
A bug was reported where ioctl(FIONREAD) returned zero even though the socket with a SK_SKB verdict program attached had bytes in the msg queue. The result is programs may hang or more likely try to recover, but use suboptimal buffer sizes. Add a test to check that ioctl(FIONREAD) returns the correct number of bytes. Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Jakub Sitnicki <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_sockmap_drop_prog.c')
0 files changed, 0 insertions, 0 deletions