Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3710155imm; Tue, 17 Jul 2018 09:04:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd7yQaHhKTq9S4rrnp9MwfhiuoBkzD0KcGOfvGMDTGRy4/Pb7lRTxTdKbhiKP9gHmbFODqX X-Received: by 2002:a65:5784:: with SMTP id b4-v6mr2183481pgr.315.1531843449910; Tue, 17 Jul 2018 09:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531843449; cv=none; d=google.com; s=arc-20160816; b=FhSETTs2yNZukTLhANMewoBL2uPg7Gp13px+Z3MDKnbjPMBIGkOxK3uoYVGJuiy9Bd XqRaItcJheppknI4fCwtq/dgkmccUj9ul5cevFMDm7O3h9UdKYog8jnr7D+McYLO6q8Y Vooldq/nqJbfAHarSmcSQIGLJF7NW6tbyNKV2+xHEQCl7XbsIM36/WG29QmLv+SDPXDE B4BlXmsPcLVTxlXV9PtBsJfoC2s+MlZF9GpWFyDJYC8Q20FZmE36lrDjNGGeat/lnu5M 5y9arKaMy9JhBp8Oop4Na8V1ymg2MTvDQNO4rddIlC+73IGpxUM9Pc/j4nz2T0NuaHjb NtnQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Ayu9Y6WtYmjZ9SPMFxsXDOIEGuYajd1FbCvfkhhdQ5I=; b=egxJnp/DTkmFHb0IvdJkt6iydm7z8Ub3zRg3EtlJeSrQLv0asxfeD8ghHQ2gyUwvo4 o5C2fI2MqBpeHcEFYsVyesa4lCVScpDR9QwBi97On9GPcZuHUE3L02+6HokNAEFmenWA dszM9GGAKoPeb+l1aRrspamXQpXw3nyso3f2j0Mcil+wi47Va7US6TvNTV1yMF6KLTpq AL51j9Hh3kZnjvjRukta85QkYynq1Hg6IuJIM9f56GB5RuhJtvLUzR13JYwIA+gLgLHq jspexnW0TItks/dYxXqFZxf5RoCMO20apUM7erJGFDMwMooFPRni5SVLi1K6zCSkUJDV y/yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N5KEn6pt; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9-v6si1144108pll.291.2018.07.17.09.03.54; Tue, 17 Jul 2018 09:04:09 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N5KEn6pt; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730421AbeGQQgh (ORCPT + 99 others); Tue, 17 Jul 2018 12:36:37 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39593 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729704AbeGQQgg (ORCPT ); Tue, 17 Jul 2018 12:36:36 -0400 Received: by mail-ed1-f67.google.com with SMTP id w14-v6so1651304eds.6; Tue, 17 Jul 2018 09:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ayu9Y6WtYmjZ9SPMFxsXDOIEGuYajd1FbCvfkhhdQ5I=; b=N5KEn6ptI6SmSxkesPRjMKN4Zu9/lcLQZX3D8h4tOEj1Z+rmhKVPUpYfRRygQvqqVq qNcd9rg9AHePMcoUh8w+xCzSIR4gxQZNNMYA8yKtZe8wKBi7BbT63u2wadUFP4TnYNOA +K/eTqC4kFalDbR9DFDNg1L0Djjwqp4VFXt8jf70bZVYraCguGiOgFYYwyhi8LLau7TI nHBzZfxsZn7+b0PYcrrNpZN9f0DHP6LO9TcaYOq052hF82onZXbPG25rvAZEzjEeuQkQ hMm07eTFAfGCSfLrwmGPwphZwZjPrhifn84aRjr6rAS6vvAK6h/lfhouM0TdArDSO4ak 5/5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ayu9Y6WtYmjZ9SPMFxsXDOIEGuYajd1FbCvfkhhdQ5I=; b=WuNXcwOU9wdM/WiGuxJcTKGXYzhizwG8DEqEnB40W1Ahgd4kNwAycXXH3D0lyEdbW5 ihPn1oYV7kaHl4BlhbAQKVxYtosc8tGilkUxP8rUPhi2okPLSALqrT9s20KCue9ev4EV bpobgK2/FjGHgaNQWR1ISVx4Rxii8vdSLyWubFDatdn3zk7gH1sOK5vQolXdukRuyUHp 2xW34nrlq7IFEVejflgDMvrztOCIpG1+reWIxCgdkdw4gZ/Zr5ufVNmCbEqmyZRq0bsF 83WmBY9XvyKZTZpkIyI5WwYcvOFg7NETe78eOx6GMYb8xgP4mpCy45MRH5A+enaVgu9E xEWA== X-Gm-Message-State: AOUpUlGJRwk5KzVGtnBV1NNkPrrZTOpse6c1Xq3ZGA7TIUSMA862w/FX LnMCBXxYAShSrrPr9GYCTgUd3zQtrSU= X-Received: by 2002:a50:cdde:: with SMTP id h30-v6mr3077890edj.159.1531843394816; Tue, 17 Jul 2018 09:03:14 -0700 (PDT) Received: from suzaku.dub.corp.google.com ([2620:0:1040:1d:bf5f:ba23:dd4e:c3cd]) by smtp.gmail.com with ESMTPSA id g14-v6sm1074846edm.25.2018.07.17.09.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 09:03:14 -0700 (PDT) Subject: Re: [PATCH] ipv6: sr: fix useless rol32 call on hash To: Colin King , "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180717155254.30367-1-colin.king@canonical.com> From: David Lebrun Message-ID: <6ab9af97-33b6-d5cc-d1e9-6e5fbd9158a8@gmail.com> Date: Tue, 17 Jul 2018 17:03:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180717155254.30367-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/17/2018 04:52 PM, Colin King wrote: > 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 Acked-by: dlebrun@google.com Good catch, thanks ! In that case, the same issue is present in include/net/ipv6.h:ip6_make_flowlabel().