Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dccp: do not leak jiffies on the wire

For some reason I missed the case of DCCP passive
flows in my previous patch.

Fixes: a904a0693c18 ("inet: stop leaking jiffies on the wire")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Thiemo Nagel <tnagel@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
3d1e5039 c43eab3e

+1 -1
+1 -1
net/dccp/ipv4.c
··· 416 416 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); 417 417 newinet->mc_index = inet_iif(skb); 418 418 newinet->mc_ttl = ip_hdr(skb)->ttl; 419 - newinet->inet_id = jiffies; 419 + newinet->inet_id = prandom_u32(); 420 420 421 421 if (dst == NULL && (dst = inet_csk_route_child_sock(sk, newsk, req)) == NULL) 422 422 goto put_and_exit;