From 94cfaa45195ee5c12bf61fc34696ed7be29c1cbe Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Sun, 8 Apr 2012 16:33:16 -0300 Subject: [PATCH] PXELINUX: do not load 32-bit environment twice Calling load_env32() once, it should never return. If it does, then jump to kaboom. Signed-off-by: Paulo Alcantara --- core/pxelinux.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pxelinux.asm b/core/pxelinux.asm index 68cb864..31224fd 100644 --- a/core/pxelinux.asm +++ b/core/pxelinux.asm @@ -223,7 +223,6 @@ adhcp_copy: mov eax,ROOT_FS_OPS xor ebp,ebp pm_call fs_init - pm_call load_env32 section .rodata alignz 4 @@ -268,6 +267,7 @@ ROOT_FS_OPS: ; Jump to 32-bit ELF space ; pm_call load_env32 + jmp kaboom ; load_env32() shouldn't return. If it does, then kaboom! ; ; Now we have the config file open. Parse the config file and -- 2.7.4