>From f004736d14725cc210ac39b974214082622081d3 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 11 Dec 2018 16:18:07 +0100 Subject: [PATCH] CVE-2018-18440: debug lmb failure --- common/image-fdt.c | 1 + lib/lmb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/image-fdt.c b/common/image-fdt.c index 5c0d6db3fe..2d7e3237ea 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -186,6 +186,7 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size) (ulong)desired_addr); if (of_start == NULL) { puts("Failed using fdt_high value for Device Tree"); + lmb_dump_all(lmb); goto error; } } else { diff --git a/lib/lmb.c b/lib/lmb.c index ba680f883e..c4539c461d 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -5,7 +5,7 @@ * Peter Bergner, IBM Corp. June 2001. * Copyright (C) 2001 Peter Bergner. */ - +#define DEBUG #include #include -- 2.17.1