search for: ldlinux_enter_command

Displaying 5 results from an estimated 5 matches for "ldlinux_enter_command".

2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
From: Sylvain Gault <sylvain.gault at gmail.com> When a COM32 module exits, the functions never return and a new call to ldlinux_enter_command is made. This could fill the stack and overflow on some data present in memory. This patch use setjmp/longjmp to return to the main function and restart from there when a COM32 module exits. Signed-off-by: Sylvain Gault <sylvain.gault at gmail.com> --- com32/elflink/ldlinux/execute.c | 4...
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
...t;) 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() function gets ultimately called from ldlinux_enter_command(). And execute(), when it runs a COM32 module, always calls ldlinux_enter_command() afterwards. Thus stacking up calls. There is a comment just above tha...
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 Aug 14
1
[GIT PULL] elflink fixes
...flink/ldlinux/config.h b/com32/elflink/ldlinux/config.h index 4583202..ea4736e 100644 --- a/com32/elflink/ldlinux/config.h +++ b/com32/elflink/ldlinux/config.h @@ -47,4 +47,6 @@ extern int new_linux_kernel(char *okernel, char *ocmdline); extern void pm_load_high(com32sys_t *regs); +extern void ldlinux_enter_command(bool prompt); + #endif /* __CONFIG_H__ */ diff --git a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c index 5d128cb..e7969c2 100644 --- a/com32/elflink/ldlinux/execute.c +++ b/com32/elflink/ldlinux/execute.c @@ -18,6 +18,7 @@ #include <com32.h> #include <sys/exec.h&gt...