]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Process bootinfo records before saving them
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 27 Sep 2022 13:08:34 +0000 (15:08 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 28 Sep 2022 20:16:44 +0000 (22:16 +0200)
commit05c93bd635b0b1a16afdb9368abb3c8304255a87
treec8b9aad19088e7e39fe84e923966454aa01bf302
parentf77605b8b0a573ee26242e12ea18fce5014f071c
m68k: Process bootinfo records before saving them

The RNG seed boot record is memzeroed after processing, in order to
preserve forward secrecy. By saving the bootinfo for procfs prior to
that, forward secrecy is violated, since it becomes possible to recover
past states. So, save the bootinfo block only after first processing
them.

Fixes: b2b1a7769d49 ("m68k: virt: Use RNG seed from bootinfo block")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20220927130835.1629806-1-Jason@zx2c4.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/setup_mm.c