From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8433506216157001736==" MIME-Version: 1.0 From: David Miller To: mptcp at lists.01.org Subject: [MPTCP] Re: [PATCH net-next] mptcp: ADD_ADDRs with echo bit are smaller Date: Sat, 03 Oct 2020 17:36:48 -0700 Message-ID: <20201003.173648.767792137065746549.davem@davemloft.net> In-Reply-To: 20201003153656.1224144-1-matthieu.baerts@tessares.net X-Status: X-Keywords: X-UID: 6180 --===============8433506216157001736== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Matthieu Baerts Date: Sat, 3 Oct 2020 17:36:56 +0200 > The MPTCP ADD_ADDR suboption with echo-flag=3D1 has no HMAC, the size is > smaller than the one initially sent without echo-flag=3D1. We then need to > use the correct size everywhere when we need this echo bit. > = > Before this patch, the wrong size was reserved but the correct amount of > bytes were written (and read): the remaining bytes contained garbage. > = > Fixes: 6a6c05a8b016 ("mptcp: send out ADD_ADDR with echo flag") > Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/95 > Reported-and-tested-by: Davide Caratti > Acked-by: Geliang Tang > Signed-off-by: Matthieu Baerts Applied. --===============8433506216157001736==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23BADC41604 for ; Sun, 4 Oct 2020 00:36:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9E6E206A5 for ; Sun, 4 Oct 2020 00:36:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbgJDAgt (ORCPT ); Sat, 3 Oct 2020 20:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbgJDAgt (ORCPT ); Sat, 3 Oct 2020 20:36:49 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB1DC0613D0; Sat, 3 Oct 2020 17:36:49 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4F0B711E3E4CB; Sat, 3 Oct 2020 17:20:01 -0700 (PDT) Date: Sat, 03 Oct 2020 17:36:48 -0700 (PDT) Message-Id: <20201003.173648.767792137065746549.davem@davemloft.net> To: matthieu.baerts@tessares.net Cc: mathew.j.martineau@linux.intel.com, kuba@kernel.org, geliangtang@gmail.com, dcaratti@redhat.com, netdev@vger.kernel.org, mptcp@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] mptcp: ADD_ADDRs with echo bit are smaller From: David Miller In-Reply-To: <20201003153656.1224144-1-matthieu.baerts@tessares.net> References: <20201003153656.1224144-1-matthieu.baerts@tessares.net> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Sat, 03 Oct 2020 17:20:01 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthieu Baerts Date: Sat, 3 Oct 2020 17:36:56 +0200 > The MPTCP ADD_ADDR suboption with echo-flag=1 has no HMAC, the size is > smaller than the one initially sent without echo-flag=1. We then need to > use the correct size everywhere when we need this echo bit. > > Before this patch, the wrong size was reserved but the correct amount of > bytes were written (and read): the remaining bytes contained garbage. > > Fixes: 6a6c05a8b016 ("mptcp: send out ADD_ADDR with echo flag") > Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/95 > Reported-and-tested-by: Davide Caratti > Acked-by: Geliang Tang > Signed-off-by: Matthieu Baerts Applied.