Re: [PATCH bpf v7 12/13] bpf: sockmap, test FIONREAD returns correct bytes in rx buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 02, 2023 at 08:51 AM -07, John Fastabend wrote:
> 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@xxxxxxxxx>
> ---

Reviewed-by: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux