Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp803633rwb; Mon, 26 Sep 2022 06:09:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45t8EzGhUSSKsStw2qFnkycRoqV0KxV49NF23Aq9THnlQP/W2QjlsQLYxIJ47ZI/nSvS06 X-Received: by 2002:a17:90a:ea01:b0:202:c73e:547c with SMTP id w1-20020a17090aea0100b00202c73e547cmr25190989pjy.206.1664197758854; Mon, 26 Sep 2022 06:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664197758; cv=none; d=google.com; s=arc-20160816; b=zVhtpDUro91Z0/z1NUE6PgUdJxCwBnxSEM8SBbiGBjIkxr6HboogIw19/uYayfw4gc NeY85G3Qb4RAOgf4gr4O5eP6ptQSWmnxteSbm9W5HlFJiNOaliXM5oJLJEw6cKBDHF90 Rn6acaiHGA3TcV0GHyytrI71Kztj5iMbhgi9fIcV6qcX+WqyauwcMv5DWRM5TyM6BnBJ XVBHfdmbMZaoLqLGuujv3Ddcaa+vSAqrmRwEQxCfsNxP90eAYp89flCqS9SypO6uaZ0S LC56SaiIlic9xgS4TBiMM+8/HNKZoA08WdGC71tPo0hxF4odxnLzv9MwrCFuMf+xZv4w aQVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JUP2/+gO+zA3fsPlr5GpjMh2A89K/u0NBS0PBSC6H7c=; b=tctROhywldheEcT0DFjUgbFAdT4ak8Jlcqr4iQ7bnZ4/d1pPjIX03iWvPYpLIIJaZE eNh6J+/+ddWi6XaKAdyDQBt1YRDIls3Yocx92avQF4b6CYHgwybQukSBGAI5iGHfUNyW GC90F2a/A/JZIJNp/p53fe+sHyrw1cHFIvrvsaZpkCOGfeuLpCTXI0QIC7XcB6GbwLwU 3DbjuVkdTkQqJrXUoTbzN+16bcIT3ykVSM5/icx3EVdiYDMiq7uORZTkqLt/SE/7aAhu BSzT8GscSlwb1uKnoZ6kKuIY2mdIsPGg0t8P+YEsZoN7ddwV4BG5lTFVv1m69gUeypdV i0DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GalQYhq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h71-20020a63834a000000b0043c87ece306si1361493pge.534.2022.09.26.06.09.07; Mon, 26 Sep 2022 06:09:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GalQYhq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235972AbiIZKfp (ORCPT + 99 others); Mon, 26 Sep 2022 06:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235611AbiIZKdX (ORCPT ); Mon, 26 Sep 2022 06:33:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C56E44F3A1; Mon, 26 Sep 2022 03:20:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D50160B9A; Mon, 26 Sep 2022 10:20:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58E62C433B5; Mon, 26 Sep 2022 10:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187636; bh=AXLqAExynxexynN+a64WeqYqgR2F9VxCs+rGGpDCrxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GalQYhq/PVRwmOdfiSe1ooeCq2HK8fx47MglQlFAvY9Wk8CQWB7HTfxi+1n5hR23e HV1L/wRUMiF6bVryITS3+uddwndAbE8k+gqyrXRuqkzFwvOhX62Fq4RSEs9USbPgoH 4tC1U4kPWD5WF/COnh06D/1g2irJsVAXhNNqcey0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Metzmacher , Ronnie Sahlberg , "Paulo Alcantara (SUSE)" , Steve French Subject: [PATCH 5.4 013/120] cifs: dont send down the destination address to sendmsg for a SOCK_STREAM Date: Mon, 26 Sep 2022 12:10:46 +0200 Message-Id: <20220926100751.074521978@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100750.519221159@linuxfoundation.org> References: <20220926100750.519221159@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 @@ -209,8 +209,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)