Skip to content
Commit e89600eb authored by Krasnov Arseniy Vladimirovich's avatar Krasnov Arseniy Vladimirovich Committed by David S. Miller
Browse files

af_vsock: SOCK_SEQPACKET broken buffer test



Add test where sender sends two message, each with own
data pattern. Reader tries to read first to broken buffer:
it has three pages size, but middle page is unmapped. Then,
reader tries to read second message to valid buffer. Test
checks, that uncopied part of first message was dropped
and thus not copied as part of second message.

Signed-off-by: default avatarKrasnov Arseniy Vladimirovich <AVKrasnov@sberdevices.ru>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efb3719f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment