Commit c00259fd authored by Will Deacon's avatar Will Deacon Committed by Will Deacon
Browse files

BACKPORT: net: Introduce skb_copy_datagram_from_iter_full()



In a similar manner to copy_from_iter()/copy_from_iter_full(), introduce
skb_copy_datagram_from_iter_full() which reverts the iterator to its
initial state when returning an error.

A subsequent fix for a vsock regression will make use of this new
function.

Cc: Christian Brauner <brauner@kernel.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Link: https://patch.msgid.link/20250818180355.29275-2-will@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit b08a784a)
Bug: 421244320
[willdeacon@: Fix context conflict with __zerocopy_sg_from_iter()]
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Change-Id: I1a19947a273bf88f57474974d8cd752dc13246ee
parent 565afd19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment