From: Borislav Petkov <bbpetkov@yahoo.de>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Xudong Guan <xudong.guan@gmail.com>,
linux-kernel@vger.kernel.org, Chuck Ebbert <cebbert@redhat.com>
Subject: Re: 2.6.23-rc1: no setup signature found...
Date: Wed, 1 Aug 2007 06:38:36 +0200 [thread overview]
Message-ID: <20070801043835.GA4676@gollum.tnic> (raw)
In-Reply-To: <46AE4E29.7060402@zytor.com>
On Mon, Jul 30, 2007 at 01:46:33PM -0700, H. Peter Anvin wrote:
> Borislav Petkov wrote:
>> Hi,
>> i decided to do some cheating :) and skipped the breakpoint where it used
>> to
>> stop (0x40200). (by the way, hitting 'c' wouldn't continue at all and keep
>> executing the same instruction over and over again). This time it seems it
>> behaves as expected:
>
> Uhm, it looks to me that you ran qemu with the -kernel option again (I can
> tell because the dump exhibits a few bugs that are characteristic of the
> qemu loader.) This makes qemu itself load the kernel and not rely on the
> boot loader that's on your bootloader.
>
> I was expecting you to run "qemu -S -s -hda /dev/hda -snapshot", which you
> previously said when run (without the -S -s) options reproduced the
> problem.
ups, sorry for that, i thought falsely here that you want to debug the kernel
part of the setup code ...
>
> After taking the dump, please do:
>
> delete
> c
>
> ... to verify the problem is reproduced.
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.
next prev parent reply other threads:[~2007-08-01 4:39 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 11:26 Borislav Petkov
2007-07-26 15:08 ` Xudong Guan
2007-07-26 15:19 ` H. Peter Anvin
2007-07-26 15:26 ` Xudong Guan
2007-07-26 15:43 ` H. Peter Anvin
[not found] ` <46A8C7BA.3040008@zytor.com>
[not found] ` <20070726162439.GA13387@xguan-laptop>
[not found] ` <46A8CB3F.7040207@zytor.com>
[not found] ` <20070726171609.GA16236@xguan-laptop>
2007-07-26 17:55 ` H. Peter Anvin
2007-07-26 16:30 ` Borislav Petkov
2007-07-26 16:36 ` Xudong Guan
2007-07-26 16:59 ` Borislav Petkov
2007-07-26 17:09 ` Xudong Guan
2007-07-26 18:12 ` H. Peter Anvin
2007-07-27 1:36 ` Borislav Petkov
2007-07-27 4:31 ` H. Peter Anvin
2007-07-27 15:51 ` Chuck Ebbert
2007-07-29 8:51 ` Borislav Petkov
2007-07-29 9:24 ` Xudong Guan
2007-07-29 10:37 ` Borislav Petkov
2007-07-29 13:50 ` H. Peter Anvin
2007-07-29 19:15 ` Borislav Petkov
2007-07-30 14:05 ` H. Peter Anvin
2007-07-30 18:53 ` Borislav Petkov
2007-07-30 20:46 ` H. Peter Anvin
2007-08-01 4:38 ` Borislav Petkov [this message]
2007-08-01 12:41 ` H. Peter Anvin
2007-08-01 14:36 ` H. Peter Anvin
2007-08-02 5:13 ` 2.6.23-rc1: no setup signature found... SOLVED! Borislav Petkov
2007-08-02 17:41 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070801043835.GA4676@gollum.tnic \
--to=bbpetkov@yahoo.de \
--cc=cebbert@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xudong.guan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®