John Fastabend bb516f98c7 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
2023-05-23 16:11:13 +02:00
..
2023-04-24 12:28:34 -07:00
2023-04-29 10:05:22 -07:00
2023-02-23 09:37:29 -08:00
2023-03-01 09:27:00 -08:00
2023-02-23 09:37:29 -08:00
2023-04-18 16:53:52 -07:00
2023-05-04 13:09:43 -07:00
2023-04-25 11:05:04 -07:00
2023-04-24 12:16:14 -07:00
2023-02-23 09:37:29 -08:00
2023-03-01 09:27:00 -08:00
2023-04-11 14:10:47 -06:00