[U-Boot] [PATCH 0/2] efi_loader: fixes for Simple Output Protocol

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Sep 5 08:06:02 UTC 2019


Fix errors in the simple output protocol which may lead to providing
incorrect values for columns or rows.

Allowing to set an illegal screen mode has led to an illegal memory
access in the UEFI SCT.

For reference:

As the illegal memory access led to QEMU stopping the following patch for
Linux has been proposed. With the patch QEMU does not stop but hands the
error back to U-Boot which than outputs the relative position in the
loaded UEFI binary or in U-Boot (in this case SetMem16() called by
AppendStringToHistory() of EDK2's ConsoleLogger).

KVM: inject data abort if instruction cannot be decoded
https://lkml.org/lkml/2019/9/4/1488

Heinrich Schuchardt (2):
  efi_loader: cursor positioning
  efi_loader: do not set invalid screen mode

 lib/efi_loader/efi_console.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

--
2.23.0.rc1



More information about the U-Boot mailing list