diff options
Diffstat (limited to 'src/boot/selfboot.c')
-rw-r--r-- | src/boot/selfboot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/boot/selfboot.c b/src/boot/selfboot.c index fd5b382764..2556a14d6e 100644 --- a/src/boot/selfboot.c +++ b/src/boot/selfboot.c @@ -519,6 +519,11 @@ int selfboot(struct lb_memory *mem, struct cbfs_payload *payload) timestamp_add_now(TS_SELFBOOT_JUMP); #endif + /* Before we go off to run the payload, see if + * we stayed within our bounds. + */ + checkstack(_estack, 0); + /* Jump to kernel */ jmp_to_elf_entry((void*)entry, bounce_buffer, bounce_size); return 1; |