summaryrefslogtreecommitdiffstats
path: root/net/iucv
diff options
context:
space:
mode:
authorArseniy Krasnov <avkrasnov@sberdevices.ru>2023-03-14 12:09:27 +0100
committerDavid S. Miller <davem@davemloft.net>2023-03-16 18:28:23 +0100
commit7e699d2a4e8104d304e921ac5e0a0c73f0f7b623 (patch)
tree2fceebde7ae3f8405ee6dc91d0476864b7d36017 /net/iucv
parentvirtio/vsock: don't drop skbuff on copy failure (diff)
downloadlinux-7e699d2a4e8104d304e921ac5e0a0c73f0f7b623.tar.xz
linux-7e699d2a4e8104d304e921ac5e0a0c73f0f7b623.zip
test/vsock: copy to user failure test
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>
Diffstat (limited to 'net/iucv')
0 files changed, 0 insertions, 0 deletions