aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2023-05-22 19:56:16 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2023-05-23 16:11:13 +0200
commitbb516f98c731cafe27900f43c0ef0aa7b5a9a44b (patch)
treea39f25da84739da53744a21552f01ee5d4237729 /net/unix/af_unix.c
parent1fa1fe8ff161cc34620e31295235dc1e6d0dce77 (diff)
downloadlinux-bb516f98c731cafe27900f43c0ef0aa7b5a9a44b.tar.gz
linux-bb516f98c731cafe27900f43c0ef0aa7b5a9a44b.tar.bz2
linux-bb516f98c731cafe27900f43c0ef0aa7b5a9a44b.zip
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 <john.fastabend@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com> Link: https://lore.kernel.org/bpf/20230523025618.113937-13-john.fastabend@gmail.com
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions