netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] vsock/test: fix wrong setsockopt() parameters
@ 2024-10-29 14:49 Konstantin Shkolnyy
  2024-10-29 14:49 ` [PATCH v4 1/2] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter Konstantin Shkolnyy
  2024-10-29 14:49 ` [PATCH v4 2/2] vsock/test: fix parameter types in SO_VM_SOCKETS_* calls Konstantin Shkolnyy
  0 siblings, 2 replies; 6+ messages in thread
From: Konstantin Shkolnyy @ 2024-10-29 14:49 UTC (permalink / raw)
  To: sgarzare
  Cc: virtualization, netdev, linux-kernel, mjrosato,
	Konstantin Shkolnyy

Parameters were created using wrong C types, which caused them to be of
wrong size on some architectures, causing problems.

The problem with SO_RCVLOWAT was found on s390 (big endian), while x86-64
didn't show it. After the fix, all tests pass on s390.
Then Stefano Garzarella pointed out that SO_VM_SOCKETS_* calls might have
a similar problem, which turned out to be true, hence, the second patch.

Changes for v4:
- add "Reviewed-by:" to the first patch, and add a second patch fixing
SO_VM_SOCKETS_* calls, which depends on the first one (hence, it's now
a patch series.)
Changes for v3:
- fix the same problem in vsock_perf and update commit message
Changes for v2:
- add "Fixes:" lines to the commit message

Konstantin Shkolnyy (2):
  vsock/test: fix failures due to wrong SO_RCVLOWAT parameter
  vsock/test: fix parameter types in SO_VM_SOCKETS_* calls

 tools/testing/vsock/vsock_perf.c |  8 ++++----
 tools/testing/vsock/vsock_test.c | 23 ++++++++++++++++-------
 2 files changed, 20 insertions(+), 11 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-04 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29 14:49 [PATCH v4 0/2] vsock/test: fix wrong setsockopt() parameters Konstantin Shkolnyy
2024-10-29 14:49 ` [PATCH v4 1/2] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter Konstantin Shkolnyy
2024-10-29 14:49 ` [PATCH v4 2/2] vsock/test: fix parameter types in SO_VM_SOCKETS_* calls Konstantin Shkolnyy
2024-10-31 14:16   ` Stefano Garzarella
2024-10-31 16:04     ` Konstantin Shkolnyy
2024-11-04 10:30       ` Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).