Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni [off-list ref]:
On Fri, 4 Sep 2026 14:43:07 +0100 you wrote:
Devmem tcp tx doesn't work without zero-copy, however it's not currently
enforced if NETIF_F_SG isn't present. In this case, tcp_sendmsg_locked()
will try the copy path and try to copy data from an iovec which consists
of offsets into the dma-buf and would normally fail. Moreover,
d9c56501c72fd ("net: tcp: block mixing readable and unreadable frags")
relies on that and assumes that the devmem binding is present IFF we're
using the zero-copy path, which can be used to mix net-iov and pages in
a single skb, and break invariants. Let's reject devmem tx without
zero-copy.
[...]
Here is the summary with links:
- [net,v2,1/1] tcp: reject non zerocopy devmem tx
https://git.kernel.org/netdev/net/c/125755776bc6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html