netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net V3 1/2] net: remove unnecessary rotation
@ 2017-07-31 17:08 Shaohua Li
  2017-07-31 17:08 ` [PATCH net V3 2/2] net: fix tcp reset packet flowlabel for ipv6 Shaohua Li
  0 siblings, 1 reply; 5+ messages in thread
From: Shaohua Li @ 2017-07-31 17:08 UTC (permalink / raw)
  To: netdev, davem; +Cc: Kernel-team, xiyou.wangcong, Shaohua Li

From: Shaohua Li <shli@fb.com>

According to David Miller, the rotation doesn't really help avoid
security problem, so delte it.

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Shaohua Li <shli@fb.com>
---
 include/net/ipv6.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 6eac5cf..7548367 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -790,12 +790,6 @@ static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
 
 	hash = skb_get_hash_flowi6(skb, fl6);
 
-	/* Since this is being sent on the wire obfuscate hash a bit
-	 * to minimize possbility that any useful information to an
-	 * attacker is leaked. Only lower 20 bits are relevant.
-	 */
-	rol32(hash, 16);
-
 	flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK;
 
 	if (net->ipv6.sysctl.flowlabel_state_ranges)
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-31 21:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31 17:08 [PATCH net V3 1/2] net: remove unnecessary rotation Shaohua Li
2017-07-31 17:08 ` [PATCH net V3 2/2] net: fix tcp reset packet flowlabel for ipv6 Shaohua Li
2017-07-31 18:10   ` Cong Wang
2017-07-31 19:30     ` Shaohua Li
2017-07-31 21:24       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).