]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vsock/test: fix parameter types in SO_VM_SOCKETS_* calls
authorKonstantin Shkolnyy <kshk@linux.ibm.com>
Tue, 3 Dec 2024 15:06:55 +0000 (09:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:09 +0000 (20:03 +0100)
commit876113e99ae15ae5bd3672baee3f48e492c6c64e
tree06705bce1ed9fe6e3025883f36ccdf69eadd6104
parentb24737a85e182ea0a91b9bccae16791a9697b706
vsock/test: fix parameter types in SO_VM_SOCKETS_* calls

[ Upstream commit 3f36ee29e732b68044d531f47d31f22d265954c6 ]

Change parameters of SO_VM_SOCKETS_* to unsigned long long as documented
in the vm_sockets.h, because the corresponding kernel code requires them
to be at least 64-bit, no matter what architecture. Otherwise they are
too small on 32-bit machines.

Fixes: 5c338112e48a ("test/vsock: rework message bounds test")
Fixes: 685a21c314a8 ("test/vsock: add big message test")
Fixes: 542e893fbadc ("vsock/test: two tests to check credit update logic")
Fixes: 8abbffd27ced ("test/vsock: vsock_perf utility")
Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/vsock/vsock_perf.c
tools/testing/vsock/vsock_test.c