diff options
author | Arseniy Krasnov <avkrasnov@sberdevices.ru> | 2023-03-14 14:09:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-16 17:28:23 +0000 |
commit | 7e699d2a4e8104d304e921ac5e0a0c73f0f7b623 (patch) | |
tree | 2fceebde7ae3f8405ee6dc91d0476864b7d36017 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8daaf39f7f6ef53a11817f6a11ec104016c3545f (diff) |
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