diff options
author | Pablo Neira Ayuso | 2014-01-06 13:54:30 +0100 |
---|---|---|
committer | Pablo Neira Ayuso | 2014-01-06 14:00:55 +0100 |
commit | 2a50d805e59ed18265fca44825719f35927af8af (patch) | |
tree | 1eb56b3c5af351ad0464ec91f70af996de7572df /net/netfilter/xt_recent.c | |
parent | net/mlx4_core: Warn if device doesn't have enough PCI bandwidth (diff) | |
download | kernel-qcow2-linux-2a50d805e59ed18265fca44825719f35927af8af.tar.gz kernel-qcow2-linux-2a50d805e59ed18265fca44825719f35927af8af.tar.xz kernel-qcow2-linux-2a50d805e59ed18265fca44825719f35927af8af.zip |
Revert "netfilter: avoid get_random_bytes calls"
This reverts commit a42b99a6e329654d376b330de057eff87686d890.
Hannes Frederic Sowa reported some problems with this patch, more specifically
that prandom_u32() may not be ready at boot time, see:
http://marc.info/?l=linux-netdev&m=138896532403533&w=2
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_recent.c')
-rw-r--r-- | net/netfilter/xt_recent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c index bfdc29f1a04a..1e657cf715c4 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c @@ -334,7 +334,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par, size_t sz; if (unlikely(!hash_rnd_inited)) { - hash_rnd = prandom_u32(); + get_random_bytes(&hash_rnd, sizeof(hash_rnd)); hash_rnd_inited = true; } if (info->check_set & ~XT_RECENT_VALID_FLAGS) { |