Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1026445imm; Wed, 18 Jul 2018 15:13:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfui1rRKmQTPRjHW1BarO312WsO3/FayckfrD9V16Cu9QyvuDdc7OSkCOc551UzgPWuYE1n X-Received: by 2002:a17:902:9690:: with SMTP id n16-v6mr7522950plp.94.1531952038002; Wed, 18 Jul 2018 15:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531952037; cv=none; d=google.com; s=arc-20160816; b=BD4CQ7qcIOF1wkglF0RFwbbAR16GgDpFC4QrUdJI8NIB7KwXrK5Uu5kIP17RhZjXic fA5AM+mwJF8aFx0dWls4jRmkO5Ocf9FEkqgT0r0EkJOVE30k1waUsq+tOmr7OeThW9gM C8t9HMzgUKzxu1FIKi8tzEEsvw6DLu5iIcWDYBQK8KYi9dc74o/jkgLfaY2GqdbsE79y zVpLuzwkRkRINJ/B0Im157f7faXUGShuO/oWb3Rjhbt6vByYthpnoHvJ6y5ms6kDaxBa 0zobmeWrJsNINheZbWUwLtiE2GvkfCBSKh0bz7WMLzvkJjhPxbbAV5dPeVY8fv5GKjVs mnUw== 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=gYkuoh/g1Tet1IbpLmHH8roDtiLMETcONL109usw6uM=; b=FZMJzkXWSoN/f9U+SZcx40u9cgt9aJfen8/smXTWwsrVbyaRf+laO6O8542zTzzWY3 GpGuqmlZ7RC4XMym0vue8ecwY/mTfsKrJe8EJBMq4OFYDrwuB//0D/bKpOoEdlA32O3x mR5s9u1haUFPOZyvohoQZ/plB3SBk2+smxprq+RNvySZHNLqhLi337WLit5MwtY5QQiS ZHFvKrq9tTnsAt6g+hnjJLLQboL5qnLt+6Ib+CuNCq2PynBjJGi82PW2UpQFb0gDpXO4 W1wWyXzbHhnECEY2D+FeY1MPtbJu018SRRp83UeUWJfjnNUPs5td8UnPt4AhJThQTCcJ RL0Q== 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 w24-v6si3901596plp.386.2018.07.18.15.13.20; Wed, 18 Jul 2018 15:13:57 -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 S1730432AbeGRWvn (ORCPT + 99 others); Wed, 18 Jul 2018 18:51:43 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:44634 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727009AbeGRWvn (ORCPT ); Wed, 18 Jul 2018 18:51:43 -0400 Received: from localhost (50-234-71-226-static.hfc.comcastbusiness.net [50.234.71.226]) (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 1B10E147A4127; Wed, 18 Jul 2018 15:11:47 -0700 (PDT) Date: Thu, 19 Jul 2018 07:11:46 +0900 (KST) Message-Id: <20180719.071146.1992073818180515891.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] ipv6: sr: fix useless rol32 call on hash From: David Miller In-Reply-To: <20180717155254.30367-1-colin.king@canonical.com> References: <20180717155254.30367-1-colin.king@canonical.com> X-Mailer: Mew version 6.7 on Emacs 26 / 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]); Wed, 18 Jul 2018 15:11:47 -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: Tue, 17 Jul 2018 16:52:54 +0100 > From: Colin Ian King > > The rol32 call is currently rotating hash but the rol'd value is > being discarded. I believe the current code is incorrect and hash > should be assigned the rotated value returned from rol32. > > Detected by CoverityScan, CID#1468411 ("Useless call") > > Fixes: b5facfdba14c ("ipv6: sr: Compute flowlabel for outer IPv6 header of seg6 encap mode") > Signed-off-by: Colin Ian King Applied and queued up for -stable.