Re: [PATCH net] vsock/test: fix send_buf()/recv_buf() EINTR handling
From: patchwork-bot+netdevbpf
Date: Mon Apr 06 2026 - 21:51:40 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 3 Apr 2026 11:32:51 +0200 you wrote:
> From: Stefano Garzarella <sgarzare@xxxxxxxxxx>
>
> When send() or recv() returns -1 with errno == EINTR, the code skips
> the break but still adds the return value to nwritten/nread, making it
> decrease by 1. This leads to wrong buffer offsets and wrong bytes count.
>
> Fix it by explicitly continuing the loop on EINTR, so the return value
> is only added when it is positive.
>
> [...]
Here is the summary with links:
- [net] vsock/test: fix send_buf()/recv_buf() EINTR handling
https://git.kernel.org/netdev/net/c/24ad7ff66889
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html