Re: [PATCH net v4] tcp: devmem: don't write truncated dmabuf CMSGs to userspace
From: patchwork-bot+netdevbpf
Date: Tue Feb 25 2025 - 22:21:06 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 24 Feb 2025 09:44:01 -0800 you wrote:
> Currently, we report -ETOOSMALL (err) only on the first iteration
> (!sent). When we get put_cmsg error after a bunch of successful
> put_cmsg calls, we don't signal the error at all. This might be
> confusing on the userspace side which will see truncated CMSGs
> but no MSG_CTRUNC signal.
>
> Consider the following case:
> - sizeof(struct cmsghdr) = 16
> - sizeof(struct dmabuf_cmsg) = 24
> - total cmsg size (CMSG_LEN) = 40 (16+24)
>
> [...]
Here is the summary with links:
- [net,v4] tcp: devmem: don't write truncated dmabuf CMSGs to userspace
https://git.kernel.org/netdev/net/c/18912c520674
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html