Patch "net: Fix from address in memcpy_to_iter_csum()" has been added to the 6.7-stable tree
Subsystems (2)
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
net: Fix from address in memcpy_to_iter_csum()
to the 6.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-fix-from-address-in-memcpy_to_iter_csum.patch
and it can be found in the queue-6.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From fe92f874f09145a6951deacaa4961390238bbe0d Mon Sep 17 00:00:00 2001
From: Michael Lass <[email protected]>
Date: Wed, 31 Jan 2024 16:52:20 +0100
Subject: net: Fix from address in memcpy_to_iter_csum()
From: Michael Lass <[email protected]>
commit fe92f874f09145a6951deacaa4961390238bbe0d upstream.
While inlining csum_and_memcpy() into memcpy_to_iter_csum(), the from address passed to csum_partial_copy_nocheck() was accidentally changed. This causes a regression in applications using UDP, as for example OpenAFS, causing loss of datagrams.
--- net/core/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/datagram.c +1 -1
@@ -751,7 +751,7 @@ size_t memcpy_to_iter_csum(void *iter_to size_t len, void *from, void *priv2) { __wsum *csum = priv2; -__wsum next =csum_partial_copy_nocheck (from, iter_to, len); +__wsum next =csum_partial_copy_nocheck (from + progress, iter_to, len); *csum =csum_block_add (*csum, next, progress);return 0 ;
Patches currently in stable-queue which might be from [email protected] are
queue-6.7/net-fix-from-address-in-memcpy_to_iter_csum.patch