Re: 2.6.23-rc1: no setup signature found...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Borislav Petkov
Date: Tuesday, July 31, 2007 - 9:38 pm

On Mon, Jul 30, 2007 at 01:46:33PM -0700, H. Peter Anvin wrote:
ups, sorry for that, i thought falsely here that you want to debug the kernel
part of the setup code ...

In this case, we never land on a jump instruction:

GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
0x0000fff0 in ?? ()
	(gdb) set arch i8086
	The target architecture is assumed to be i8086
	(gdb) disp/i ($cs << 4)+$eip
	1: x/i ($cs << 4) + $eip  0xffff0:      ljmp   $0xf000,$0xe05b
	(gdb) br *0x10200
	Breakpoint 1 at 0x10200
	(gdb)         br *0x20200
	Breakpoint 2 at 0x20200
	(gdb)         br *0x30200
	Breakpoint 3 at 0x30200
	(gdb)         br *0x40200
	Breakpoint 4 at 0x40200
	(gdb)         br *0x50200
	Breakpoint 5 at 0x50200
	(gdb)         br *0x60200
	Breakpoint 6 at 0x60200
	(gdb)         br *0x70200
	Breakpoint 7 at 0x70200
	(gdb)         br *0x80200
	Breakpoint 8 at 0x80200
	(gdb)         br *0x90200
	Breakpoint 9 at 0x90200
	(gdb) c
	Continuing.

	Breakpoint 4, 0x00040200 in ?? ()
	1: x/i ($cs << 4) + $eip  0x40300:      lea    (%si),%dx
	(gdb) c
	Continuing.

if i do delete here, it loads the second stage of grub and continues to load the
kernel. Is there another way to land at the jmp instruction instead of poking
blindly, maybe disassemble something parts of the initial code. \me reading
grub-docs...

-- 
Regards/Gruß,
    Boris.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc1: no setup signature found..., Borislav Petkov, (Tue Jul 24, 4:26 am)
Re: 2.6.23-rc1: no setup signature found..., Xudong Guan, (Thu Jul 26, 8:08 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Thu Jul 26, 8:19 am)
Re: 2.6.23-rc1: no setup signature found..., Xudong Guan, (Thu Jul 26, 8:26 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Thu Jul 26, 8:43 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Thu Jul 26, 9:30 am)
Re: 2.6.23-rc1: no setup signature found..., Xudong Guan, (Thu Jul 26, 9:36 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Thu Jul 26, 9:59 am)
Re: 2.6.23-rc1: no setup signature found..., Xudong Guan, (Thu Jul 26, 10:09 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Thu Jul 26, 11:12 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Thu Jul 26, 6:36 pm)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Thu Jul 26, 9:31 pm)
Re: 2.6.23-rc1: no setup signature found..., Chuck Ebbert, (Fri Jul 27, 8:51 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Sun Jul 29, 1:51 am)
Re: 2.6.23-rc1: no setup signature found..., Xudong Guan, (Sun Jul 29, 2:24 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Sun Jul 29, 3:37 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Sun Jul 29, 6:50 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Sun Jul 29, 12:15 pm)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Mon Jul 30, 7:05 am)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Mon Jul 30, 11:53 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Mon Jul 30, 1:46 pm)
Re: 2.6.23-rc1: no setup signature found..., Borislav Petkov, (Tue Jul 31, 9:38 pm)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Wed Aug 1, 5:41 am)
Re: 2.6.23-rc1: no setup signature found..., H. Peter Anvin, (Wed Aug 1, 7:36 am)
Re: 2.6.23-rc1: no setup signature found... SOLVED!, Borislav Petkov, (Wed Aug 1, 10:13 pm)
Re: 2.6.23-rc1: no setup signature found... SOLVED!, H. Peter Anvin, (Thu Aug 2, 10:41 am)