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

2007-08-02 Thread H. Peter Anvin
Borislav Petkov wrote: Hi, now this is one of those cases where one tries to shoot a small fly with a nuclear missile. The first assumption that something was wrong with the kernel setup code was wrong and here's how i know: The problem with my version of grub not hitting the breakpoint

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

2007-08-02 Thread H. Peter Anvin
Borislav Petkov wrote: Hi, now this is one of those cases where one tries to shoot a small fly with a nuclear missile. The first assumption that something was wrong with the kernel setup code was wrong and here's how i know: The problem with my version of grub not hitting the breakpoint

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

2007-08-01 Thread Borislav Petkov
On Wed, Aug 01, 2007 at 10:36:07AM -0400, H. Peter Anvin wrote: > Borislav Petkov wrote: >> 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

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

2007-08-01 Thread H. Peter Anvin
Borislav Petkov wrote: 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

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

2007-08-01 Thread H. Peter Anvin
Borislav Petkov wrote: 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... Oh lovely. The

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

2007-08-01 Thread H. Peter Anvin
Borislav Petkov wrote: 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... Oh lovely. The

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

2007-08-01 Thread H. Peter Anvin
Borislav Petkov wrote: 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

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

2007-08-01 Thread Borislav Petkov
On Wed, Aug 01, 2007 at 10:36:07AM -0400, H. Peter Anvin wrote: Borislav Petkov wrote: 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

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

2007-07-31 Thread Borislav Petkov
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

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

2007-07-31 Thread Borislav Petkov
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

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

2007-07-30 Thread H. Peter Anvin
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

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

2007-07-30 Thread Borislav Petkov
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

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

2007-07-30 Thread H. Peter Anvin
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

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

2007-07-30 Thread H. Peter Anvin
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

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

2007-07-30 Thread Borislav Petkov
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

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

2007-07-30 Thread H. Peter Anvin
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

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

2007-07-29 Thread Borislav Petkov
On Sun, Jul 29, 2007 at 06:50:32AM -0700, H. Peter Anvin wrote: > Borislav Petkov wrote: >> Right, this was too easy to be true. I now did: >> qemu -hda /dev/hda -snapshot >> and booted from the hd using the installed grub and the same kernel and it >> _didn't_ boot showing again "no setup

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

2007-07-29 Thread H. Peter Anvin
Borislav Petkov wrote: Right, this was too easy to be true. I now did: qemu -hda /dev/hda -snapshot and booted from the hd using the installed grub and the same kernel and it _didn't_ boot showing again "no setup signature found... " Okay, so it's an algorithmic problem. This is quite

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

2007-07-29 Thread Borislav Petkov
On Sun, Jul 29, 2007 at 10:24:02AM +0100, Xudong Guan wrote: > Borislav Petkov wrote: > > On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: > > > If we can't reproduce the problem in simulation, that itself will tell > > > us something very important. If we *can* reproduce it in

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

2007-07-29 Thread Xudong Guan
Borislav Petkov wrote: > On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: > > If we can't reproduce the problem in simulation, that itself will tell > > us something very important. If we *can* reproduce it in simulation, it > > will be vastly easier to debug. > > [EMAIL

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

2007-07-29 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: [added to cc: Chuck Ebbert] > Borislav Petkov wrote: > >> > >> The absolute best would be if we could replicate this in simulation > >> (Bochs or Qemu); this would make it very simple to debug. Would you be > >> willing to try to do

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

2007-07-29 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: [added to cc: Chuck Ebbert] Borislav Petkov wrote: The absolute best would be if we could replicate this in simulation (Bochs or Qemu); this would make it very simple to debug. Would you be willing to try to do that?

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

2007-07-29 Thread Xudong Guan
Borislav Petkov wrote: On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: If we can't reproduce the problem in simulation, that itself will tell us something very important. If we *can* reproduce it in simulation, it will be vastly easier to debug. [EMAIL

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

2007-07-29 Thread Borislav Petkov
On Sun, Jul 29, 2007 at 10:24:02AM +0100, Xudong Guan wrote: Borislav Petkov wrote: On Thu, Jul 26, 2007 at 09:31:54PM -0700, H. Peter Anvin wrote: If we can't reproduce the problem in simulation, that itself will tell us something very important. If we *can* reproduce it in simulation,

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

2007-07-29 Thread H. Peter Anvin
Borislav Petkov wrote: Right, this was too easy to be true. I now did: qemu -hda /dev/hda -snapshot and booted from the hd using the installed grub and the same kernel and it _didn't_ boot showing again no setup signature found... Okay, so it's an algorithmic problem. This is quite

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

2007-07-29 Thread Borislav Petkov
On Sun, Jul 29, 2007 at 06:50:32AM -0700, H. Peter Anvin wrote: Borislav Petkov wrote: Right, this was too easy to be true. I now did: qemu -hda /dev/hda -snapshot and booted from the hd using the installed grub and the same kernel and it _didn't_ boot showing again no setup signature

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

2007-07-27 Thread Chuck Ebbert
On 07/27/2007 12:31 AM, H. Peter Anvin wrote: > Borislav Petkov wrote: >>> The absolute best would be if we could replicate this in simulation >>> (Bochs or Qemu); this would make it very simple to debug. Would you be >>> willing to try to do that? >> sure, will do, however i'll be busy at

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

2007-07-27 Thread Chuck Ebbert
On 07/27/2007 12:31 AM, H. Peter Anvin wrote: Borislav Petkov wrote: The absolute best would be if we could replicate this in simulation (Bochs or Qemu); this would make it very simple to debug. Would you be willing to try to do that? sure, will do, however i'll be busy at work/travelling

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

2007-07-26 Thread H. Peter Anvin
Borislav Petkov wrote: >> >> The absolute best would be if we could replicate this in simulation >> (Bochs or Qemu); this would make it very simple to debug. Would you be >> willing to try to do that? > sure, will do, however i'll be busy at work/travelling tomorrow but as soon > as i > get home

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 11:12:09AM -0700, H. Peter Anvin wrote: > Borislav Petkov wrote: > > > >> What distro/version of grub are you running? > > Debian unstable > >> I'm wondering if there are > >> some old version of grub out there which did the "load four sectors" > >>

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

2007-07-26 Thread H. Peter Anvin
Borislav Petkov wrote: > >> What distro/version of grub are you running? > Debian unstable >> I'm wondering if there are >> some old version of grub out there which did the "load four sectors" >> way-anciently-obsolete crap; the other possibility that comes to mind is >> setting up the stack in

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: > On 09:26(-0700) Thu 26 Jul, H. Peter Anvin wrote: >> Xudong Guan wrote: >>> On 09:11(-0700) Thu 26 Jul, H. Peter Anvin wrote: Could you send me a copy of that Qemu image? >>> I can only upload the 70M bz2 file 2 hours later, when I return home >>> and have no upload

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

2007-07-26 Thread Xudong Guan
On 18:59(+0200) Thu 26 Jul, Borislav Petkov wrote: > On Thu, Jul 26, 2007 at 05:36:18PM +0100, Xudong Guan wrote: > > On my real machine with grub 0.97, there is no problem loading the > > same kernel. > > Do you mean the kernel with the 4fd06960f120e02e9abc802a09f9511c400042a5 > commit > on

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 05:36:18PM +0100, Xudong Guan wrote: > On 18:30(+0200) Thu 26 Jul, Borislav Petkov wrote: > > grub version: > > Version: 0.97-29 > > On my real machine with grub 0.97, there is no problem loading the > same kernel. Do you mean the kernel with the

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

2007-07-26 Thread Xudong Guan
On 18:30(+0200) Thu 26 Jul, Borislav Petkov wrote: > grub version: > Version: 0.97-29 On my real machine with grub 0.97, there is no problem loading the same kernel. Xudong - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED]

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 08:19:08AM -0700, H. Peter Anvin wrote: > Xudong Guan wrote: > > On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: > >>2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows > >> after loading > >> grub is "No setup signature found...," which, imho,

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: > On 08:19(-0700) Thu 26 Jul, H. Peter Anvin wrote: >> What distro/version of grub are you running? I'm wondering if there are >> some old version of grub out there which did the "load four sectors" >> way-anciently-obsolete crap; the other possibility that comes to mind is >>

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

2007-07-26 Thread Xudong Guan
On 08:19(-0700) Thu 26 Jul, H. Peter Anvin wrote: > What distro/version of grub are you running? I'm wondering if there are > some old version of grub out there which did the "load four sectors" > way-anciently-obsolete crap; the other possibility that comes to mind is > setting up the stack in

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: > On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: >>2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows >> after loading >> grub is "No setup signature found...," which, imho, comes from >> arch/i386/boot/header.S. I tried printing out the value of

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

2007-07-26 Thread Xudong Guan
On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: >2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows > after loading > grub is "No setup signature found...," which, imho, comes from > arch/i386/boot/header.S. I tried printing out the value of setup_sig like so I hitted

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 11:12:09AM -0700, H. Peter Anvin wrote: Borislav Petkov wrote: What distro/version of grub are you running? Debian unstable I'm wondering if there are some old version of grub out there which did the load four sectors way-anciently-obsolete crap; the other

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

2007-07-26 Thread H. Peter Anvin
Borislav Petkov wrote: What distro/version of grub are you running? Debian unstable I'm wondering if there are some old version of grub out there which did the load four sectors way-anciently-obsolete crap; the other possibility that comes to mind is setting up the stack in an invalid

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

2007-07-26 Thread Xudong Guan
On 18:59(+0200) Thu 26 Jul, Borislav Petkov wrote: On Thu, Jul 26, 2007 at 05:36:18PM +0100, Xudong Guan wrote: On my real machine with grub 0.97, there is no problem loading the same kernel. Do you mean the kernel with the 4fd06960f120e02e9abc802a09f9511c400042a5 commit on top? No, I

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

2007-07-26 Thread Xudong Guan
On 18:30(+0200) Thu 26 Jul, Borislav Petkov wrote: grub version: Version: 0.97-29 On my real machine with grub 0.97, there is no problem loading the same kernel. Xudong - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 08:19:08AM -0700, H. Peter Anvin wrote: Xudong Guan wrote: On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: 2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows after loading grub is No setup signature found..., which, imho, comes from

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

2007-07-26 Thread Xudong Guan
On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: 2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows after loading grub is No setup signature found..., which, imho, comes from arch/i386/boot/header.S. I tried printing out the value of setup_sig like so I hitted the

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: On 09:26(-0700) Thu 26 Jul, H. Peter Anvin wrote: Xudong Guan wrote: On 09:11(-0700) Thu 26 Jul, H. Peter Anvin wrote: Could you send me a copy of that Qemu image? I can only upload the 70M bz2 file 2 hours later, when I return home and have no upload restrictions. If you

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: On 08:19(-0700) Thu 26 Jul, H. Peter Anvin wrote: What distro/version of grub are you running? I'm wondering if there are some old version of grub out there which did the load four sectors way-anciently-obsolete crap; the other possibility that comes to mind is setting up

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

2007-07-26 Thread H. Peter Anvin
Xudong Guan wrote: On 13:26(+0200) Tue 24 Jul, Borislav Petkov wrote: 2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows after loading grub is No setup signature found..., which, imho, comes from arch/i386/boot/header.S. I tried printing out the value of setup_sig

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

2007-07-26 Thread Xudong Guan
On 08:19(-0700) Thu 26 Jul, H. Peter Anvin wrote: What distro/version of grub are you running? I'm wondering if there are some old version of grub out there which did the load four sectors way-anciently-obsolete crap; the other possibility that comes to mind is setting up the stack in an

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

2007-07-26 Thread H. Peter Anvin
Borislav Petkov wrote: The absolute best would be if we could replicate this in simulation (Bochs or Qemu); this would make it very simple to debug. Would you be willing to try to do that? sure, will do, however i'll be busy at work/travelling tomorrow but as soon as i get home i'll whip

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

2007-07-26 Thread Borislav Petkov
On Thu, Jul 26, 2007 at 05:36:18PM +0100, Xudong Guan wrote: On 18:30(+0200) Thu 26 Jul, Borislav Petkov wrote: grub version: Version: 0.97-29 On my real machine with grub 0.97, there is no problem loading the same kernel. Do you mean the kernel with the

2.6.23-rc1: no setup signature found...

2007-07-24 Thread Borislav Petkov
Hi there, 2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows after loading grub is "No setup signature found...," which, imho, comes from arch/i386/boot/header.S. I tried printing out the value of setup_sig like so # Setup corrupt somehow... setup_bad: movl

2.6.23-rc1: no setup signature found...

2007-07-24 Thread Borislav Petkov
Hi there, 2.6.23-rc1 won't boot on my Asus M6N laptop and the last thing it shows after loading grub is No setup signature found..., which, imho, comes from arch/i386/boot/header.S. I tried printing out the value of setup_sig like so snip # Setup corrupt somehow... setup_bad: movl