]> git.ipfire.org Git - thirdparty/grub.git/commit
tests/util/grub-shell: Enable RNG device to better test stack smashing
authorGlenn Washburn <development@efficientek.com>
Fri, 1 Sep 2023 04:50:56 +0000 (23:50 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 12 Oct 2023 16:48:28 +0000 (18:48 +0200)
commitcf58eca2a2f55a8086a7cbd37c5b6435c168548a
tree8f076805595c165aa7e03b8dea974ba7f33ffd8d
parentc3bdf263f63b57394fee836cde3e582a4576e6fd
tests/util/grub-shell: Enable RNG device to better test stack smashing

In certain firmwares, e.g. OVMF, the RNG protocol is not enabled unless
there is an RNG device. When not enabled, GRUB fails to initialize the
stack guard with random bytes. For testing, this is not a big issue, but
there have been bugs found in the initialization. So turn this on for EFI
platforms to catch any regressions.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in