summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorArseniy Krasnov <avkrasnov@salutedevices.com>2023-11-22 00:16:42 +0300
committerJakub Kicinski <kuba@kernel.org>2023-11-23 19:49:16 +0300
commitf0863888f6cfef33e3117dccfe94fa78edf76be4 (patch)
treef30b84521a5394f699ae6dcfbf30fabd09abc21a /drivers
parent4e20655e503e3a478cd1682bf25e3202dd823da8 (diff)
downloadlinux-f0863888f6cfef33e3117dccfe94fa78edf76be4.tar.xz
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: 5c338112e48a ("test/vsock: rework message bounds test") Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com> Reported-by: Bogdan Marcynkov <bmarcynk@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://lore.kernel.org/r/20231121211642.163474-1-avkrasnov@salutedevices.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions