]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[lkrnprefix] Copy command line before installing iPXE
authorMichael Brown <mcb30@ipxe.org>
Wed, 18 Jan 2012 00:02:16 +0000 (00:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 18 Jan 2012 00:02:16 +0000 (00:02 +0000)
commitf5bbe7ec4a4b31ad197947b025c54a8e87402436
treeb3d902ef93ee3e72210c50d4ca7f682ba14ba6a9
parent18d288728114745211584249de930a9b1c7bcdcd
[lkrnprefix] Copy command line before installing iPXE

The command line may be situated in an area of base memory that will
be overwritten by iPXE's real-mode segments, causing the command line
to be corrupted before it can be used.

Fix by creating a copy of the command line on the prefix stack (below
0x7c00) before installing the real-mode segments.

Reported-by: Dave Hansen <dave@sr71.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/runtime.c
src/arch/i386/prefix/lkrnprefix.S