Revision 7e699d2a4e8104d304e921ac5e0a0c73f0f7b623 authored by Arseniy Krasnov on 14 March 2023, 11:09:27 UTC, committed by David S. Miller on 16 March 2023, 17:28:23 UTC
This adds SOCK_STREAM and SOCK_SEQPACKET tests for invalid buffer case.
It tries to read data to NULL buffer (data already presents in socket's
queue), then uses valid buffer. For SOCK_STREAM second read must return
data, because skbuff is not dropped, but for SOCK_SEQPACKET skbuff will
be dropped by kernel, and 'recv()' will return EAGAIN.

Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8daaf39
History

back to top