linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BPF RNG
@ 2019-04-16 13:54 Kees Cook
  2019-04-16 13:55 ` Kees Cook
  0 siblings, 1 reply; 5+ messages in thread
From: Kees Cook @ 2019-04-16 13:54 UTC (permalink / raw)
  To: Daniel Borkmann
  Cc: Hannes Frederic Sowa, Alexei Starovoitov, LKML, Ingo Molnar,
	Reshetova, Elena

Hi,

In looking at prandom_u32() users, I noticed that BPF uses its own
state variable with bpf_user_rnd_u32(). It appears that this state is
never reseeded like regular prandom_u32(). (See __prandom_timer().) Is
this intentional, or should reseeding be happening?

-Kees

-- 
Kees Cook

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

end of thread, other threads:[~2019-04-16 22:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 13:54 BPF RNG Kees Cook
2019-04-16 13:55 ` Kees Cook
2019-04-16 14:44   ` Daniel Borkmann
2019-04-16 22:58     ` Kees Cook
2019-04-16 15:06   ` Theodore Ts'o

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).