OSDN Git Service

net: net_secret should not depend on TCP
authorEric Dumazet <edumazet@google.com>
Tue, 24 Sep 2013 13:19:57 +0000 (06:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:30 +0000 (16:08 -0700)
commitbdf831a681dd237fcde669e07e5202daddfa0c65
tree53757db6bc886734764c24f2cab134a6f0540674
parent6ea2edb3b6cbe72d2f943e205c463f6cb8bafe56
net: net_secret should not depend on TCP

[ Upstream commit 9a3bab6b05383f1e4c3716b3615500c51285959e ]

A host might need net_secret[] and never open a single socket.

Problem added in commit aebda156a570782
("net: defer net_secret[] initialization")

Based on prior patch from Hannes Frederic Sowa.

Reported-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Hannes Frederic Sowa <hannes@strressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/secure_seq.h
net/core/secure_seq.c
net/ipv4/af_inet.c