diff options
author | 2023-03-14 14:09:27 +0300 | |
---|---|---|
committer | 2023-03-16 17:28:23 +0000 | |
commit | 7e699d2a4e8104d304e921ac5e0a0c73f0f7b623 (patch) | |
tree | 2fceebde7ae3f8405ee6dc91d0476864b7d36017 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | virtio/vsock: don't drop skbuff on copy failure (diff) | |
download | linux-rng-7e699d2a4e8104d304e921ac5e0a0c73f0f7b623.tar.xz linux-rng-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions