summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/boot/elfboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c
index f2c5975b11..03e9561d61 100644
--- a/src/boot/elfboot.c
+++ b/src/boot/elfboot.c
@@ -227,6 +227,10 @@ static int valid_area(struct lb_memory *mem, unsigned long buffer,
if ((mtype == LB_MEM_RAM) && (start < mend) && (end > mstart)) {
break;
}
+ if ((mtype == LB_MEM_TABLE) && (start < mend) && (end > mstart)) {
+ printk_err("Payload is overwriting Coreboot tables.\n");
+ break;
+ }
}
if (i == mem_entries) {
printk_err("No matching ram area found for range:\n");