mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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: Mon, 30 Jul 2007 20:53:59 +0200	[thread overview]
Message-ID: <20070730185359.GA4290@gollum.tnic> (raw)
In-Reply-To: <46ADF02F.7010800@zytor.com>

[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]

On Mon, Jul 30, 2007 at 07:05:35AM -0700, H. Peter Anvin wrote:
> Borislav Petkov wrote:
>> Breakpoint 4, 0x00040200 in ?? ()
>> 1: x/i ($cs << 4) + $eip  0x40300:      lea    (%si),%dx
>> (gdb) p/x $ds
>> $1 = 0x18
>
>
> This isn't the setup code, it's doing something else.
>
> Could you try this again, but when you get to this point, if the 
> instruction displayed isn't a "jmp" instruction, and $ds doesn't have the 
> right value, enter "c" and see if you hit the proper break later.

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:


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 architecture 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 *0x50200
Breakpoint 4 at 0x50200
(gdb)         br *0x60200
Breakpoint 5 at 0x60200
(gdb)         br *0x70200
Breakpoint 6 at 0x70200
(gdb)         br *0x80200
Breakpoint 7 at 0x80200
(gdb)         br *0x90200
Breakpoint 8 at 0x90200
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in ?? ()
1: x/i ($cs << 4) + $eip  0x90200:      jmp    0x9023c
(gdb) p/x $ds
$1 = 0x9000
(gdb) dump memory setup.dump 0x90000 0x98000
(gdb) 

-- 
Regards/Gruß,
    Boris.

[-- Attachment #2: setup.dump --]
[-- Type: application/octet-stream, Size: 32768 bytes --]

  reply	other threads:[~2007-07-30 18:55 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 [this message]
2007-07-30 20:46                           ` H. Peter Anvin
2007-08-01  4:38                             ` Borislav Petkov
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=20070730185359.GA4290@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®