Re: [PATCH v4] m68k: write bootinfo as rom section and re-randomize on reboot

2022-10-23 Thread Jason A. Donenfeld
On Sat, Oct 22, 2022 at 8:41 AM Richard Henderson wrote: > > On Sat, 22 Oct 2022, 08:33 Laurent Vivier, wrote: >> >> Le 17/10/2022 à 22:29, Jason A. Donenfeld a écrit : >> >> >> Notes: >> - don't send your patch as a reply to a previous version >> - add an history: >> >> v4: replace (void *)(((u

Re: [PATCH v4] m68k: write bootinfo as rom section and re-randomize on reboot

2022-10-22 Thread Richard Henderson
On Sat, 22 Oct 2022, 08:33 Laurent Vivier, wrote: > Le 17/10/2022 à 22:29, Jason A. Donenfeld a écrit : > > > Notes: > - don't send your patch as a reply to a previous version > - add an history: > > v4: replace (void *)(((unsigned long)base + 3) & ~3) by > (void *)(((uintptr_t)bas

Re: [PATCH v4] m68k: write bootinfo as rom section and re-randomize on reboot

2022-10-21 Thread Laurent Vivier
Le 17/10/2022 à 22:29, Jason A. Donenfeld a écrit : Rather than poking directly into RAM, add the bootinfo block as a proper ROM, so that it's restored when rebooting the system. This way, if the guest corrupts any of the bootinfo items, but then tries to reboot, it'll still be restored back to n

[PATCH v4] m68k: write bootinfo as rom section and re-randomize on reboot

2022-10-17 Thread Jason A. Donenfeld
Rather than poking directly into RAM, add the bootinfo block as a proper ROM, so that it's restored when rebooting the system. This way, if the guest corrupts any of the bootinfo items, but then tries to reboot, it'll still be restored back to normal as expected. Then, since the RNG seed needs to