Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4283613ybg; Mon, 8 Jun 2020 04:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd8a0yO3zcB5r7k1BntxQvaSCuAShYqrupT5w9H8w5/gqewadRR8nckJ3Zd/MKlAGZNH3q X-Received: by 2002:a17:906:6410:: with SMTP id d16mr21248019ejm.376.1591614242279; Mon, 08 Jun 2020 04:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591614242; cv=none; d=google.com; s=arc-20160816; b=NjiOpUsSKQxeMG7lU7DEAx69uysrE6rENYBHvXEaeJDgxC4ebsXQDjWy7cxk4ouU/A P8tNwR3WH/Weq9nRAT/r3fQNApSkCYelWEpepqIzxSDB4M4RC47YyoR6kP9KwGZMUngX +rr0YCqkUo3TgDwK8iqoR1LkOrGl7CVlhVXuXxGtyC6szVvK8nfPtnc3wYH6uCpghmO+ GKAtDADf+AzBaoNFykTKvcOGA4bVjMbeCIWr5eM6DsjHveTlLtUAAIZ1nD+QlUOCdUY3 LvxDWoTkzQVW3tAu331CeG8OalpwINmeqaOECnI8hBnLw3mJHZnNunZ4XVToHUTFIQed TzWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l1OyezJKsfAVEn8ZVy6btGksNrrO6qZZSqmY/a2YBUc=; b=xDmTaxl85G/6fMbuNK34qpun2vtWmiBjN5Zj/SVH4DcFianCtlRZF1QGpVUt8HV1KY E0H6I/h1CVuMk2eh72lark4br6S6oDoDSA1wHc3ORWG74xIsbqNo36/0H85QLGiCWF/A zmmaT6b6vxoBp7tjQ7ffsJuW1P08qYP/i7rqGM0YWE7pOMRTCtUG17+m9l1CvL+Mgh1c 7fMDYQhgmEFJfWtfOGMMlwUcCJB5hlrMX2BQYwZyRV9DJup0tAvQEiUmDOM7vjoQZU1u 5vJaOAXJXp4LIUdLOz62ZAlYABfiaA3sIpyws8tOrQXnxzKqPL10va1pTqav2qtAAApU iWmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sHYjPvNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si8401908edm.85.2020.06.08.04.03.39; Mon, 08 Jun 2020 04:04:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sHYjPvNZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729548AbgFHLBq (ORCPT + 99 others); Mon, 8 Jun 2020 07:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729425AbgFHLBp (ORCPT ); Mon, 8 Jun 2020 07:01:45 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19FE7C08C5C2; Mon, 8 Jun 2020 04:01:45 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o8so8580939pgm.7; Mon, 08 Jun 2020 04:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=l1OyezJKsfAVEn8ZVy6btGksNrrO6qZZSqmY/a2YBUc=; b=sHYjPvNZ05Y/2voOPYUDydKiKVm3AEujp2Am7yigeXijOCK3nHmkUB9ETSi50Frpze /1NIcSkfY4GZn01Aj1nlxUBBiGS4yaAaR8VcYZXt90tqadFm7EfQV294OlKIBjNfKwNY PAncwq0xfIcsWUJh2PaFx6Jzcgk9SI8DHFg9gltk/Qg2hHQ1Db8uRlbc95AVyFK6APst ZXWrfeW3F3QqZE0/kN0Wqu4wwTDcaGe4pYbQ9EidQ2J6H6NEfxZmbUH5DZKhZ6lDl0oa wH7xpxM2LE/lDFILbY600U9PCCjyfNb4ZOPDSltM2sEify+sLdNG18pZxLxBvJ7Bm6Rv CClQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=l1OyezJKsfAVEn8ZVy6btGksNrrO6qZZSqmY/a2YBUc=; b=C0yg4oeiuN8qa1yHOCnDTZJoo8zG13CKqmnewrcL6LJNbihyBJUJmeCqBCFbfnOTCp tBH/8o145DC0pULINVkz+zokywcgEF2fT57gTBKYpUiZLc4t6yX05bZXb4OxyRr0K4RQ uKA1NDHPoPFqInWVmQsynuirhjbC0DXMNvABR6KAJsQiPUlce6oBTGYxcuO026DUKuAm ZteswtVI9jSFNm6FRGYspYClCUjwUBfkAOuuPT/6xAZlQ6DO/yXnx2PSWNhCB12njKmi caFOl5qP8MppHm+9l1htr0RgDgsf0wz4TXKpLdN7v5n/gg+VRdhTalS7p6A0MIq4sBep lsVw== X-Gm-Message-State: AOAM533dzhJZXRnsAi0Dpj6shZHSyUaSqUrmGyvcfZKa4N5TFDHvUbse uQLCzd95JxktxeU9cQ3ePgE= X-Received: by 2002:a63:1312:: with SMTP id i18mr20063902pgl.142.1591614104413; Mon, 08 Jun 2020 04:01:44 -0700 (PDT) Received: from localhost ([43.224.245.180]) by smtp.gmail.com with ESMTPSA id m9sm6957125pfo.200.2020.06.08.04.01.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jun 2020 04:01:43 -0700 (PDT) Date: Mon, 8 Jun 2020 18:59:29 +0800 From: Geliang Tang To: Matthieu Baerts Cc: Mat Martineau , Matthieu Baerts , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Peter Krystad , netdev@vger.kernel.org, mptcp@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mptcp: bugfix for RM_ADDR option parsing Message-ID: <20200608105929.GA24487@OptiPlex> References: <904e4ae90b94d679d9877d3c48bd277cb9b39f5f.1591601587.git.geliangtang@gmail.com> <41246875-febc-e88d-304b-2a6692f590ac@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41246875-febc-e88d-304b-2a6692f590ac@tessares.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 08, 2020 at 12:10:23PM +0200, Matthieu Baerts wrote: > Hi Geliang, > > On 08/06/2020 09:48, Geliang Tang wrote: > > In MPTCPOPT_RM_ADDR option parsing, the pointer "ptr" pointed to the > > "Subtype" octet, the pointer "ptr+1" pointed to the "Address ID" octet: > > > > +-------+-------+---------------+ > > |Subtype|(resvd)| Address ID | > > +-------+-------+---------------+ > > | | > > ptr ptr+1 > > > > We should set mp_opt->rm_id to the value of "ptr+1", not "ptr". This patch > > will fix this bug. > > Thank you for the patch, good catch! > Indeed "ptr" should be incremented. > > Because this is a bug-fix for net, may you clearly indicate that in the > subject to help -net maintainers please? [PATCH net v2] > > Also, may you add a "Fixes" tag as well as it is for -net ? I guess it > should be: > > Fixes: 3df523ab582c ("mptcp: Add ADD_ADDR handling") > > The rest is good! > > Cheers, > Matt > -- > Matthieu Baerts | R&D Engineer > matthieu.baerts@tessares.net > Tessares SA | Hybrid Access Solutions > www.tessares.net > 1 Avenue Jean Monnet, 1348 Louvain-la-Neuve, Belgium Hi Matt, Thanks for your reply. I have already resend patch v2 to you. -Geliang