Received: by 10.213.65.68 with SMTP id h4csp945601imn; Thu, 22 Mar 2018 11:54:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELu00m8dEgtKyhgHZDE463HhOcQlLcovdBH4ATISkq4EWA1GrXhsFYrrd7kgFdvGkK81G0Y2 X-Received: by 10.101.91.133 with SMTP id i5mr18508007pgr.249.1521744860361; Thu, 22 Mar 2018 11:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521744860; cv=none; d=google.com; s=arc-20160816; b=fkRrERt1xRDwqHoGN9J5W5CPRWGU/N0E06fRagCRn0yb8wD+SiOOToAe62qGQ+0taJ UVpBD2pLb1cz5ngLRy43n2POgTLdJfD+FXV19V3UeVPtaq0FOg/iRCnZEbc8vUQwqC5n 8hENnJ17cw6FtFKCYkBYHE99it3eVNoUhocj/0y0kBGUu+vN2NEWGNNaKx/IK2txWfL6 glA4jpcw/rvGv2jfzIzY3PXbAGqmuCZbjGsYZHNc1w/Xs1M1uPqCxzYhaqL06VLDGwBn mfymgCHe6qF+9ql6JIxCro+uCvHshRiGErh7VoKFckWR7PoJJNARpC4jTfdQOSASkWDd qVVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=hMdSM9X5VycJNbmYA87ZvbozixAWpmLfNpLzpPfGj4I=; b=ivtLuEMnXpEsgYQQW46YvU6vf179YWx+jpzSzR+2aJiXsReZ6C4OebExr1RMBUPPww L5mcDitCiRBlIlS9/tvGk33CvOzDceX1ac4rYdVIDvuKYBgqSCDW1maZXM/wOUxR/knj +swpLGpza7dhBMQB800vVvZw5SMAya/10H9/lfJPgwozkTL9uFr1Q+IgLNVLiOMKaMPF pVkPLJSIQjwHmAa4PYUnS/+5u0AGI5sRH+4ULzBp2sjaSXQNWbE8Y05R8pjJMiPWACbG nEpljAPtmwbXyQAGnzj/s85HHDH8iajOhvXLpIr1jB29cYpnVVHkKUAme4qhO0XkRU/E mr9g== 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 i187si5340636pfe.175.2018.03.22.11.54.05; Thu, 22 Mar 2018 11:54:20 -0700 (PDT) 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 S1751825AbeCVSxK (ORCPT + 99 others); Thu, 22 Mar 2018 14:53:10 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:59470 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbeCVSxI (ORCPT ); Thu, 22 Mar 2018 14:53:08 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (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 82D491165DD1E; Thu, 22 Mar 2018 11:53:07 -0700 (PDT) Date: Thu, 22 Mar 2018 14:53:06 -0400 (EDT) Message-Id: <20180322.145306.435067580111338677.davem@davemloft.net> To: colin.king@canonical.com Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] gre: fix TUNNEL_SEQ bit check on sequence numbering From: David Miller In-Reply-To: <20180321193458.4451-1-colin.king@canonical.com> References: <20180321193458.4451-1-colin.king@canonical.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) 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 [149.20.54.216]); Thu, 22 Mar 2018 11:53:08 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin King Date: Wed, 21 Mar 2018 19:34:58 +0000 > From: Colin Ian King > > The current logic of flags | TUNNEL_SEQ is always non-zero and hence > sequence numbers are always incremented no matter the setting of the > TUNNEL_SEQ bit. Fix this by using & instead of |. > > Detected by CoverityScan, CID#1466039 ("Operands don't affect result") > > Fixes: 77a5196a804e ("gre: add sequence number for collect md mode.") > Signed-off-by: Colin Ian King Applied, thanks Colin.