From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8616E1ED4F for ; Tue, 25 Jul 2023 11:44:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0634DC433C8; Tue, 25 Jul 2023 11:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690285451; bh=GzCfp5ZC+XQR6Kz3eaXOoYUmX2Lve56RffVXYa/ah2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XnuXmoJXB+3uqCcQpHGUgtZ+xTV+GAKLTUXzQHdRfJ/1aLCNxw+ERCxLc44V9IHOD ZWr/ZJMo3N8G92gmegbNO9pQEz3sAfMjK7l5G/T0aJ64QQIPfpyIhaqhuqIrHOHmx0 xyyoHGRWE9bggngj1tMOnw+FvFPBsCoqXxT5b5C0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Amit Klein , Eric Dumazet , Willy Tarreau , Willem de Bruijn , David Ahern , Hannes Frederic Sowa , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 209/313] udp6: fix udp6_ehashfn() typo Date: Tue, 25 Jul 2023 12:46:02 +0200 Message-ID: <20230725104530.051139898@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230725104521.167250627@linuxfoundation.org> References: <20230725104521.167250627@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Eric Dumazet [ Upstream commit 51d03e2f2203e76ed02d33fb5ffbb5fc85ffaf54 ] Amit Klein reported that udp6_ehash_secret was initialized but never used. Fixes: 1bbdceef1e53 ("inet: convert inet_ehash_secret and ipv6_hash_secret to net_get_random_once") Reported-by: Amit Klein Signed-off-by: Eric Dumazet Cc: Willy Tarreau Cc: Willem de Bruijn Cc: David Ahern Cc: Hannes Frederic Sowa Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/ipv6/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 797d45ceb2c74..93eb622219756 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -87,7 +87,7 @@ static u32 udp6_ehashfn(const struct net *net, fhash = __ipv6_addr_jhash(faddr, udp_ipv6_hash_secret); return __inet6_ehashfn(lhash, lport, fhash, fport, - udp_ipv6_hash_secret + net_hash_mix(net)); + udp6_ehash_secret + net_hash_mix(net)); } int udp_v6_get_port(struct sock *sk, unsigned short snum) -- 2.39.2