[PATCH v2] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter

2024-10-25 Thread Konstantin Shkolnyy
This happens on 64-bit big-endian machines. SO_RCVLOWAT requires an int parameter. However, instead of int, the test uses unsigned long in one place and size_t in another. Both are 8 bytes long on 64-bit machines. The kernel, having received the 8 bytes, doesn't test for the exact size of the param

Re: [PATCH v2] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter

2024-10-25 Thread Stefano Garzarella
On Thu, Oct 24, 2024 at 11:10:58AM -0500, Konstantin Shkolnyy wrote: This happens on 64-bit big-endian machines. SO_RCVLOWAT requires an int parameter. However, instead of int, the test uses unsigned long in one place and size_t in another. Both are 8 bytes long on 64-bit machines. The kernel, ha