Re: [PATCH] arm64: add support for rng-seed

2019-05-10 Thread Rob Herring
On Thu, May 9, 2019 at 11:27 PM Hsin-Yi Wang wrote: > > On Wed, May 8, 2019 at 3:47 AM Rob Herring wrote: > > > > Documentation/devicetree/bindings/chosen.txt | 14 + > > > > Actually, this file has been converted to json-schema and lives > > here[1]. I need to remove this one (or leave

Re: [PATCH] arm64: add support for rng-seed

2019-05-10 Thread Rasmus Villemoes
On 09/05/2019 10.00, Hsin-Yi Wang wrote: Why do you need to clear it? That wasn't necessary for kaslr-seed. >>> I think it's for security purpose. If we know the random seed, it's >>> more likely we can predict randomness. >>> Currently on arm64, kaslr-seed will be wiped out (in >>>

Re: [PATCH] arm64: add support for rng-seed

2019-05-08 Thread Rob Herring
On Wed, May 8, 2019 at 10:06 AM Hsin-Yi Wang wrote: > > On Wed, May 8, 2019 at 10:04 PM Rob Herring wrote: > > > > On Tue, May 7, 2019 at 11:08 PM Hsin-Yi Wang wrote: > > > > > > On Wed, May 8, 2019 at 3:47 AM Rob Herring wrote: > > > > > > > > +boot-architecture list as there was some

Re: [PATCH] arm64: add support for rng-seed

2019-05-06 Thread Hsin-Yi Wang
On Tue, May 7, 2019 at 12:54 PM Hsin-Yi Wang wrote: > > Introducing a chosen node, rng-seed, which is an 64 bytes entropy > that can be passed to kernel called very early to increase device > randomness. Bootloader should provide this entropy and the value is > read from /chosen/rng-seed in DT. >

[PATCH] arm64: add support for rng-seed

2019-05-06 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an 64 bytes entropy that can be passed to kernel called very early to increase device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang ---