All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] efi_loader: fixes for Simple Output Protocol
@ 2019-09-05  8:06 Heinrich Schuchardt
  2019-09-05  8:06 ` [U-Boot] [PATCH 1/2] efi_loader: cursor positioning Heinrich Schuchardt
  2019-09-05  8:06 ` [U-Boot] [PATCH 2/2] efi_loader: do not set invalid screen mode Heinrich Schuchardt
  0 siblings, 2 replies; 7+ messages in thread
From: Heinrich Schuchardt @ 2019-09-05  8:06 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-09-06  6:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05  8:06 [U-Boot] [PATCH 0/2] efi_loader: fixes for Simple Output Protocol Heinrich Schuchardt
2019-09-05  8:06 ` [U-Boot] [PATCH 1/2] efi_loader: cursor positioning Heinrich Schuchardt
2019-09-05 20:21   ` Alexander Graf
2019-09-05 20:35     ` Heinrich Schuchardt
2019-09-06  6:18       ` Alexander Graf
2019-09-05  8:06 ` [U-Boot] [PATCH 2/2] efi_loader: do not set invalid screen mode Heinrich Schuchardt
2019-09-05 20:26   ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.