From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Matt Fleming <matt@console-pimps.org>
Cc: P J P <ppandit@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org
Subject: Re: 3.12 to 3.13 boot regression bisected - still applies to 3.16
Date: Tue, 5 Aug 2014 10:02:42 +0200 [thread overview]
Message-ID: <20140805100242.425e1093@pluto> (raw)
In-Reply-To: <20140804135452.GJ15082@console-pimps.org>
On Mon, 4 Aug 2014 14:54:52 +0100 Matt Fleming wrote:
> On Mon, 04 Aug, at 03:06:27PM, Bruno Prémont wrote:
> >
> > Yes, I did as I have seen that patch flying by, but it did not help
> > (I tried at 3.16-rc7).
>
> :-( Thanks for testing.
>
> > On 3.16-rc7 I even tried adding earlyprintk=efi,keep, console=efi,
> > ignore_loglevel and added some efi_printk() in EFI stub (in the spirit
> > of https://bugzilla.kernel.org/show_bug.cgi?id=68761)
> > The last message I get is my efi_printk() right before exiting boot
> > services. Without my efi_printk() there is no output at all.
> >
> > Then system reboots.
>
> OK, so the fact that the system reboots suggests that the boot
> stub/kernel caused a fault.
>
> > There is no output on serial console either (via BMC),
> > (earlycon=uart,io,0x3f8,115200 or earlyprintk=serial,ttyS0,115200)
> >
> >
> > I even tried without initrd (setting CONFIG_INITRAMFS_SOURCE="")
> > and got the same end-result.
>
> Oh that's interesting.
>
> > I could share a slightly modified one, replacing the
> > contained /etc/passwd. It's about 16MiB in size due to RAID controller
> > management blobs for recovery. Except for that it just tries to find
> > ROOT partition, setting up dmcrypt if needed.
>
> This shouldn't be necessary if you can reproduce the issue without an
> initrd as you stated above.
I just verified CONFIG_INITRAMFS_SOURCE="" on 3.16 and it reboots.
> > Any hint on how to find out what fails would be nice!
> > initrd issues tend not to be easy to debug (it would help if initrd
> > issues could be reported at the time kernel tries to start init - e.g.
> > when console outputs are up and running).
>
> I don't think this is necessarily an initrd issue.
>
> The way that I would debug this is to insert while(1); into strategic
> places. Yes, it's lame and time consuming, but it's effective.
>
> My first suggestion would be setup_arch(). In particular, because your
> machine is resetting, I'd guess that the kernel's early trap handlers
> haven't yet been installed.
>
> So throw a,
>
> while (1);
>
> in there and see if you can get your machine to hang instead of reset.
> If it doesn't hang, the reset occurs earlier in boot - work backwards.
> If it does hang then you know that execution gets at least that far -
> work forwards. Like I said, lame but effective.
I tried in setup_arch(), but system still keeps rebooting.
Working backwards I got to x86_64_start_kernel() in
arch/x86/kernel/head64.c but system is still rebooting.
Not sure what happens before x86_64_start_kernel() is called, it seems
to be called from ASM code in arch/x86/kernel/head_64.S.
> Meanwhile I'm going to go and stare at the EFI boot stub code and
> instrument OVMF to check for more memory corruption bugs like the one
> Michael found in commit c7fb93ec51d4 ("x86/efi: Include a .bss section
> within the PE/COFF headers").
If there are places between exit_boot() in
arch/x86/boot/compressed/eboot.c and x86_64_start_kernel() where I
should include such loops, please tell!
Bruno
next prev parent reply other threads:[~2014-08-05 8:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 9:34 3.12 to 3.13 boot regression bisected - still applies to 3.16 Bruno Prémont
2014-08-04 12:27 ` Matt Fleming
2014-08-04 13:06 ` Bruno Prémont
2014-08-04 13:54 ` Matt Fleming
2014-08-05 8:02 ` Bruno Prémont [this message]
2014-08-05 8:45 ` Matt Fleming
2014-08-05 9:13 ` Bruno Prémont
2014-08-05 9:18 ` Matt Fleming
2014-08-05 11:51 ` Bruno Prémont
2014-08-05 12:11 ` Bruno Prémont
2014-08-05 12:55 ` Matt Fleming
2014-08-05 14:21 ` Bruno Prémont
2014-08-05 15:07 ` Matt Fleming
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=20140805100242.425e1093@pluto \
--to=bonbons@linux-vserver.org \
--cc=akpm@linux-foundation.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=ppandit@redhat.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;
as well as URLs for NNTP newsgroup(s).