]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: Fix from address in memcpy_to_iter_csum()
authorMichael Lass <bevan@bi-co.net>
Wed, 31 Jan 2024 15:52:20 +0000 (16:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:14:32 +0000 (19:14 +0100)
commit50d0dff3f706ff4a71df99b7526341ae9fa83e09
treea8566ac4ea0c60575fb5370ee65023da771e9bdd
parent3438de322e549183126d9bafe131e9dd80348811
net: Fix from address in memcpy_to_iter_csum()

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.

Fixes: dc32bff195b4 ("iov_iter, net: Fold in csum_and_memcpy()")
Cc: David Howells <dhowells@redhat.com>
Cc: stable@vger.kernel.org
Cc: regressions@lists.linux.dev
Signed-off-by: Michael Lass <bevan@bi-co.net>
Reviewed-by: Jeffrey Altman <jaltman@auristor.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/datagram.c