Skip to content
Commit f0863888 authored by Arseniy Krasnov's avatar Arseniy Krasnov Committed by Jakub Kicinski
Browse files

vsock/test: fix SEQPACKET message bounds test

Tune message length calculation to make this test work on machines
where 'getpagesize()' returns >32KB. Now maximum message length is not
hardcoded (on machines above it was smaller than 'getpagesize()' return
value, thus we get negative value and test fails), but calculated at
runtime and always bigger than 'getpagesize()' result. Reproduced on
aarch64 with 64KB page size.

Fixes: 5c338112

 ("test/vsock: rework message bounds test")
Signed-off-by: default avatarArseniy Krasnov <avkrasnov@salutedevices.com>
Reported-by: default avatarBogdan Marcynkov <bmarcynk@redhat.com>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20231121211642.163474-1-avkrasnov@salutedevices.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4e20655e
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