Commit 2a8298a2 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Colin Watson

grub-core/loader/efi/fdt.c: do not copy random memory

We should not try to copy any memory area which is outside of the original
fdt. If this extra memory is controlled by a hypervisor this might end
with a crash.
Signed-off-by: 's avatarHeinrich Schuchardt <>

Origin: other,
Last-Update: 2018-12-21

Patch-Name: efi-fdt-do-not-copy-random-memory.patch
parent 614ea062
......@@ -66,7 +66,7 @@ grub_fdt_load (grub_size_t additional_size)
if (raw_fdt)
grub_memmove (fdt, raw_fdt, size);
grub_memmove (fdt, raw_fdt, size - additional_size);
grub_fdt_set_totalsize (fdt, size);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment