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

2024-10-28 Thread Stefano Garzarella
On Fri, Oct 25, 2024 at 10:41:24AM -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

[PATCH v3] 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