Received: by 10.223.185.111 with SMTP id b44csp908129wrg; Fri, 9 Mar 2018 16:34:29 -0800 (PST) X-Google-Smtp-Source: AG47ELsNTCf6vHvKmJiwNq+jD1w1iGP8sCHY6zVBV2P8DTHQyj3z0YFz+2Wmhid5MYyvOaRjdjXd X-Received: by 10.98.137.147 with SMTP id n19mr326711pfk.193.1520642068894; Fri, 09 Mar 2018 16:34:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520642068; cv=none; d=google.com; s=arc-20160816; b=PiT13ujdxkJrDa3fx/AZHvZ/XCF2SAy/rok/MCAcn9W+EmjNyMyUXpSxXbHFBlP2NU Cxp9F3y7Ji4TbEu00Rq+P2QAm26xMj9a7vMe/1ytp9UMGZOP0FfOaoUjfGIwab9q+QXB i8zVHBDo7z4z6PpVXIPhNgnenygyLA006akKURq+enVNdZOYIO5SBR7L+5YBKFy+ma98 eLeQS/jISyj4z/eqarB16IeRN3ptTscBy9SUsTSBP3CqVj4YOfwyoi47RLHEMoFhtcYP emodEf7N8uCLXstHoldyW46uuRe6D0LqklZEfRuelzo0YKuUvaKF6M2r5Ww/OvTidnnu wQTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QDzTNO4wsF3IIOXbXDcoT1BB0MAn/aQ5LnQsvJQXjds=; b=rRmG6EbCo/MSAbFnqBLMFXi3xrFZWWyUcTMf+wLWvAhurz4qEYihMYbIiXYumnTIXz EH/aJtq3ecf+Y/EWqjfQI0Epa+c/j1JH4r956yGK4yPBm9nJzFIIkBPF1QcgM+LXN9hQ 9BXziaCrruyjHgOCRwd35BFKMKK6IS0U7EtgbKTKqx8Qk3BnQGBnnfUUlVslhy6R1Tg2 jFGYMSRWI9vYAqsPY/hpl0h+/kCJvm9FL9jS6M+s4Yrx08E6pOYytqaKjSiMkDpNPPCV KBofwOcuxGn8XT9ezEtltFVzmJbNwkboEF47BsnvkQE4O6gQwrBWQotC0x2usr4i21tm S8bA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i66si1476482pgc.445.2018.03.09.16.34.14; Fri, 09 Mar 2018 16:34:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751889AbeCJAWU (ORCPT + 99 others); Fri, 9 Mar 2018 19:22:20 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39958 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933852AbeCJAWR (ORCPT ); Fri, 9 Mar 2018 19:22:17 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 30249115E; Sat, 10 Mar 2018 00:22:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Dionne , David Howells , "David S. Miller" Subject: [PATCH 4.9 46/65] rxrpc: Fix send in rxrpc_send_data_packet() Date: Fri, 9 Mar 2018 16:18:46 -0800 Message-Id: <20180310001828.632814746@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180310001824.927996722@linuxfoundation.org> References: <20180310001824.927996722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Howells [ Upstream commit 93c62c45ed5fad1b87e3a45835b251cd68de9c46 ] All the kernel_sendmsg() calls in rxrpc_send_data_packet() need to send both parts of the iov[] buffer, but one of them does not. Fix it so that it does. Without this, short IPv6 rxrpc DATA packets may be seen that have the rxrpc header included, but no payload. Fixes: 5a924b8951f8 ("rxrpc: Don't store the rxrpc header in the Tx queue sk_buffs") Reported-by: Marc Dionne Signed-off-by: David Howells Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/rxrpc/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/rxrpc/output.c +++ b/net/rxrpc/output.c @@ -391,7 +391,7 @@ send_fragmentable: (char *)&opt, sizeof(opt)); if (ret == 0) { ret = kernel_sendmsg(conn->params.local->socket, &msg, - iov, 1, iov[0].iov_len); + iov, 2, len); opt = IPV6_PMTUDISC_DO; kernel_setsockopt(conn->params.local->socket,