diff options
author | 2023-05-22 19:56:16 -0700 | |
---|---|---|
committer | 2023-05-23 16:11:13 +0200 | |
commit | bb516f98c731cafe27900f43c0ef0aa7b5a9a44b (patch) | |
tree | a39f25da84739da53744a21552f01ee5d4237729 /scripts/generate_rust_analyzer.py | |
parent | bpf, sockmap: Test shutdown() correctly exits epoll and recv()=0 (diff) | |
download | wireguard-linux-bb516f98c731cafe27900f43c0ef0aa7b5a9a44b.tar.xz wireguard-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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions