Displaying 4 results from an estimated 4 matches for "ldlinux_auto_boot".
2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...sole_init();
@@ -333,16 +336,25 @@ __export int main(int argc __unused, char **argv)
if (!syslinux_setadv(ADV_BOOTONCE, 0, NULL))
syslinux_adv_write();
- load_kernel(cmdline); /* Shouldn't return */
- ldlinux_enter_command();
- }
-
- if (!forceprompt && !shift_is_held())
- ldlinux_auto_boot();
+ /*
+ * The corresponding longjmp is located in the execute function
+ * after a COM32 module has returned.
+ */
+ retval = setjmp(__return_to_command_prompt);
+ if (retval == 0)
+ load_kernel(cmdline); /* Shouldn't return */
+ } else {
+ retval = setjmp(__return_to_command_prom...
2015 Oct 13
5
[PATCH 0/2] Stack overflows when running commands
From: Sylvain Gault <sylvain.gault at gmail.com>
Hello there,
I propose 2 patches that fix two possible stack overflows either when running a
COM32 module or when loading a new config file.
I didn't find a better way to do this than to use the infamous setjmp/longjmp
functions to restore the stack to a previous state. This makes the logic a bit
more complex, but the behavior is not
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
Here are the patches that I've got queued up based on the very helpful
feedback I received from people testing Syslinux 5.00-pre9. Unless
anyone has any concerns these will make it into Syslinux 5.00-pre10.
Matt Fleming (9):
pxe: Don't call open_config() from the pxe core
ldlinux: Print a warning if no config file is found
2015 Oct 11
0
Stack overflow: it's not a bug, it's a feature
...ry=0x7fd4590 "hello.c32", type=7,
sysappend=sysappend at entry=false) at
/home/celelibi/code/syslinux/com32/elflink/ldlinux/execute.c:50
#1 0x07fafe38 in load_kernel (command_line=<optimized out>) at
/home/celelibi/code/syslinux/com32/elflink/ldlinux/ldlinux.c:179
#2 0x07fb0002 in ldlinux_auto_boot () at
/home/celelibi/code/syslinux/com32/elflink/ldlinux/ldlinux.c:249
#3 0x07fb0080 in enter_cmdline () at
/home/celelibi/code/syslinux/com32/elflink/ldlinux/ldlinux.c:273
#4 0x07fb016c in ldlinux_enter_command () at
/home/celelibi/code/syslinux/com32/elflink/ldlinux/ldlinux.c:281
The execute()...