From: Greg Kroah-Hartman Date: Tue, 20 Sep 2022 16:44:05 +0000 (+0200) Subject: 4.14-stable patches X-Git-Tag: v5.19.11~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b81a8331a1d4f1708cc9d44b2f64113fad83035;p=thirdparty%2Fkernel%2Fstable-queue.git 4.14-stable patches added patches: cifs-don-t-send-down-the-destination-address-to-sendmsg-for-a-sock_stream.patch --- diff --git a/queue-4.14/cifs-don-t-send-down-the-destination-address-to-sendmsg-for-a-sock_stream.patch b/queue-4.14/cifs-don-t-send-down-the-destination-address-to-sendmsg-for-a-sock_stream.patch new file mode 100644 index 00000000000..4ee9977af63 --- /dev/null +++ b/queue-4.14/cifs-don-t-send-down-the-destination-address-to-sendmsg-for-a-sock_stream.patch @@ -0,0 +1,34 @@ +From 17d3df38dc5f4cec9b0ac6eb79c1859b6e2693a4 Mon Sep 17 00:00:00 2001 +From: Stefan Metzmacher +Date: Wed, 14 Sep 2022 05:25:46 +0200 +Subject: cifs: don't send down the destination address to sendmsg for a SOCK_STREAM + +From: Stefan Metzmacher + +commit 17d3df38dc5f4cec9b0ac6eb79c1859b6e2693a4 upstream. + +This is ignored anyway by the tcp layer. + +Signed-off-by: Stefan Metzmacher +Cc: stable@vger.kernel.org +Reviewed-by: Ronnie Sahlberg +Reviewed-by: Paulo Alcantara (SUSE) +Signed-off-by: Steve French +Signed-off-by: Greg Kroah-Hartman +--- + fs/cifs/transport.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/fs/cifs/transport.c ++++ b/fs/cifs/transport.c +@@ -153,8 +153,8 @@ smb_send_kvec(struct TCP_Server_Info *se + + *sent = 0; + +- smb_msg->msg_name = (struct sockaddr *) &server->dstaddr; +- smb_msg->msg_namelen = sizeof(struct sockaddr); ++ smb_msg->msg_name = NULL; ++ smb_msg->msg_namelen = 0; + smb_msg->msg_control = NULL; + smb_msg->msg_controllen = 0; + if (server->noblocksnd) diff --git a/queue-4.14/series b/queue-4.14/series index a8275a5dc9d..9ff3a928ffa 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -4,3 +4,4 @@ drm-meson-correct-osd1-global-alpha-value.patch parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch efi-libstub-disable-shadow-call-stack.patch efi-libstub-disable-struct-randomization.patch +cifs-don-t-send-down-the-destination-address-to-sendmsg-for-a-sock_stream.patch