Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5762006imm; Mon, 23 Jul 2018 05:45:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeUzZZHVHmiMeFzrF4eF7u60qLIMMF2XeGTvGnRzrbY4Vnq9IF6jTF5S0rwmLKqL+OjEGor X-Received: by 2002:a63:f309:: with SMTP id l9-v6mr11881620pgh.369.1532349937914; Mon, 23 Jul 2018 05:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349937; cv=none; d=google.com; s=arc-20160816; b=GEEoNuJkLrA6k7XV3ezpeaGipXdR16asvaBaqliuVXOfLJmE73lJ3qH7Kzbpyg8bBG Y+e0AnlumKx770dTJS5E56OsN5YJB1663fYXWWNqb6l0Vtc7MOm88Z6UG6yN4Phb7wWN pMVX3mh6KHQ5vhbQBQ4TyBhebPt1eXqOgMDj3BDGW3q8PkexuxnVGpNCcJ5t3XJXytiK JNujepplyUJ3GRv7YoWPL2CbwmnbUBTDwMAkpEoKB7VLGu4L7XVaTETnfHWthfbtcGvi lzh2EbZKa+fhA3T0MjzP0ZGcRfJaGNWI9dJ/WEThHw1TSL6rzIV1EgNsgZlejB5krAHQ HxcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3DxUPYTXohVWkL1J65Nn3yj0yjNudM0dA/LXvza3iz4=; b=niwWP3xmLiVh5NtuiUl8M/nwpWs5ilpUYUKtJQ7IKOtX4GhxBy0Z/LYk5vRQbVsotV fn7rRqO0kJFSr5kh8Mog3Y10QU3hrlH19dVQDU+QTwAsYAJBkMUMCjaxekETLgn2gRSa LVqV7MYeOfksMtVLmg/MQAuevq+HjizmUv/8isd9ISzbC7lHqq0l8ARe9cX+yK+akhUF nni9l6iAHs87eSaoedKIjnyLJD3h08l6WdUWcOBV0SWB0EWav5lQij8PWaowTJt/1nlv 0Ma+3CvS5Echy9nD5dd8yU2XdSrkZHK98wmQ/Mdwj+NB4hLpmw/Gc0rFLblkJqvCFeHK BUVw== 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 i28-v6si9172921pfd.26.2018.07.23.05.45.23; Mon, 23 Jul 2018 05:45:37 -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 S2389028AbeGWNon (ORCPT + 99 others); Mon, 23 Jul 2018 09:44:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48638 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389009AbeGWNom (ORCPT ); Mon, 23 Jul 2018 09:44:42 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E870C40B; Mon, 23 Jul 2018 12:43:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , "David S. Miller" Subject: [PATCH 4.4 009/107] ipv6: fix useless rol32 call on hash Date: Mon, 23 Jul 2018 14:41:03 +0200 Message-Id: <20180723122413.346242790@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King [ Upstream commit 169dc027fb02492ea37a0575db6a658cf922b854 ] 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. Thanks to David Lebrun for spotting this. Signed-off-by: Colin Ian King Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- include/net/ipv6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -762,7 +762,7 @@ static inline __be32 ip6_make_flowlabel( * to minimize possbility that any useful information to an * attacker is leaked. Only lower 20 bits are relevant. */ - rol32(hash, 16); + hash = rol32(hash, 16); flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK;