netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thiemo Nagel <tnagel@google.com>
To: Eric Dumazet <edumazet@google.com>
Cc: David Miller <davem@davemloft.net>,
	netdev <netdev@vger.kernel.org>,
	Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: [PATCH net] inet: stop leaking jiffies on the wire
Date: Mon, 11 Nov 2019 18:48:09 +0100	[thread overview]
Message-ID: <CAC=O2+QG6vdJxjHT9yVQ4c78qG6LdREJch0Z5gKvcdfO94t9Rg@mail.gmail.com> (raw)
In-Reply-To: <CANn89iLPfy6Nbk0pouySQq=xVsEOGJMkVEXM=nKWW3=e4OGjoQ@mail.gmail.com>

Hey Eric,

I think we should distinguish two different problems here:
a) There's insufficient entropy to seed the RNG. As a consequence,
observing a (partial) sequence of numbers may allow an attacker to
determine the internal state, independently of whether the RNG is
cryptographically secure or not.
b) The RNG is not cryptographically secure. In that case, observing a
(partial) sequence of numbers may allow an attacker to determine the
internal state, independent of the amount of entropy that was used to
seed it.

Problem a) is hard -- as you mention, it may require hardware support
to solve it fully. However the problem that I'm suggesting to address
is b), and that likely can be solved by swapping out prandom_u32() for
get_random_u32().

> If IP ID had to be cryptographically secure, you can be sure we would
> have addressed the problem 20 years ago.

I don't think this is a valid point at all. There are countless
examples of things that weren't known 20 years ago but that are better
understood today. One relevant example is RFC7258 which only came out
in 2014.

Kind regards,
Thiemo

  reply	other threads:[~2019-11-11 17:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 17:32 [PATCH net] inet: stop leaking jiffies on the wire Eric Dumazet
2019-11-01 21:59 ` David Miller
2019-11-04 15:24   ` Thiemo Nagel
2019-11-04 15:50     ` Eric Dumazet
2019-11-11  8:52       ` Thiemo Nagel
2019-11-11 15:53         ` Eric Dumazet
2019-11-11 17:48           ` Thiemo Nagel [this message]
2019-11-11 18:24             ` Eric Dumazet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=O2+QG6vdJxjHT9yVQ4c78qG6LdREJch0Z5gKvcdfO94t9Rg@mail.gmail.com' \
    --to=tnagel@google.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).