From: Eric <eric@cisu.net>
To: Andi Kleen <ak@muc.de>
Cc: Andrew Morton <akpm@osdl.org>,
stoffel@lucent.com, Valdis.Kletnieks@vt.edu, bunk@fs.tum.de,
cova@ferrara.linux.it, linux-kernel@vger.kernel.org
Subject: Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - REALLY SOLVED
Date: Tue, 27 Jan 2004 13:31:11 -0600 [thread overview]
Message-ID: <200401271331.11812.eric@cisu.net> (raw)
In-Reply-To: <20040127181554.GA41917@colin2.muc.de>
On Tuesday 27 January 2004 12:15, Andi Kleen wrote:
> On Tue, Jan 27, 2004 at 12:37:43AM -0600, Eric wrote:
> > On Monday 26 January 2004 23:50, Andrew Morton wrote:
> > > Eric <eric@cisu.net> wrote:
> > > > YES. I finally have a working 2.6.2-rc1-mm3 booted kernel.
> > > > Lets review folks---
> > > > reverted -funit-at-a-time
> > > > patched test_wp_bit so exception tables are sorted sooner
> > > > reverted md-partition patch
> > >
> > > The latter two are understood, but the `-funit-at-a-time' problem is
> > > not.
> > >
> > > Can you plesae confirm that restoring only -funit-at-a-time again
> > > produces a crashy kernel? And that you are using a flavour of gcc-3.3?
> > > If so, I guess we'll need to only enable it for gcc-3.4 and later.
> >
> > Yes, confirmed. My version of gcc, I just sent you adding the
> > -funit-at-a-time hung after uncompressing the kernel. I booted a
> > secondary kernel, recompiled without it and all was fine again. Confirmed
> > non-boot for 2.6.2-rc1-mm3 but without a doubt for all kernels previous
> > where -funit-at-a-time is active in the makefile.
>
> Ok, found it. This patch should fix it. The top level asm in process.c
> assumed that the section was .text, but that is not guaranteed in a
> funit-at-a-time compiler. It ended up in the setup section and messed up
> the argument parsing. This bug could have hit with any compiler,
> it was just plain luck that it worked with newer gcc 3.3 and 3.4.
>
> Please test if it fixes your problem.
Yes. Confirmed. Lets review again.
-removed -funit from makefile
patched to fix exception table sorting
reverted md-partition-patch
BOOTS
add -funit again
FAILS
leave -funit active in makefile
patch with patch below
BOOTS
This patch is confirmed to fix the boot with -funit-at-a-time with
2.6.2-rc1-mm2 with gcc(below)
Thanks so much for everyones attention in the matter.
bot403@eric:~> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib
--enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
> Andrew, please merge it if the bug is confirmed to be fixed.
>
> -Andi
>
> diff -u linux-2.6.2rc1mm3-test/arch/i386/kernel/process.c-o
> linux-2.6.2rc1mm3-test/arch/i386/kernel/process.c ---
> linux-2.6.2rc1mm3-test/arch/i386/kernel/process.c-o 2004-01-27
> 02:26:39.000000000 +0100 +++
> linux-2.6.2rc1mm3-test/arch/i386/kernel/process.c 2004-01-27
> 19:09:41.131460832 +0100 @@ -253,13 +253,15 @@
> * the "args".
> */
> extern void kernel_thread_helper(void);
> -__asm__(".align 4\n"
> +__asm__(".section .text\n"
> + ".align 4\n"
> "kernel_thread_helper:\n\t"
> "movl %edx,%eax\n\t"
> "pushl %edx\n\t"
> "call *%ebx\n\t"
> "pushl %eax\n\t"
> - "call do_exit");
> + "call do_exit\n"
> + ".previous");
>
> /*
> * Create a kernel thread
-------------------------
Eric Bambach
Eric at cisu dot net
-------------------------
next prev parent reply other threads:[~2004-01-27 19:33 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-24 4:53 Kernels > 2.6.1-mm3 do not boot Eric
2004-01-24 6:11 ` Eric
2004-01-24 22:39 ` Eric
2004-01-25 1:02 ` Adrian Bunk
2004-01-25 4:03 ` Eric
2004-01-25 13:15 ` Adrian Bunk
2004-01-25 13:52 ` Fabio Coatti
2004-01-25 14:34 ` Adrian Bunk
2004-01-25 15:39 ` Fabio Coatti
2004-01-25 16:21 ` Adrian Bunk
2004-01-25 17:11 ` Kernels > 2.6.1-mm3 do not boot. - SOLVED Fabio Coatti
2004-01-25 17:30 ` [patch] " Adrian Bunk
2004-01-25 17:48 ` Andi Kleen
2004-01-25 18:00 ` Valdis.Kletnieks
2004-01-25 19:12 ` Andi Kleen
2004-01-25 20:21 ` John Stoffel
2004-01-25 20:25 ` Andi Kleen
2004-01-25 20:37 ` John Stoffel
2004-01-25 21:45 ` Andi Kleen
2004-01-25 21:49 ` Adrian Bunk
2004-01-25 23:18 ` John Stoffel
2004-01-25 23:47 ` Andi Kleen
2004-01-26 2:40 ` John Stoffel
2004-01-26 3:23 ` John Stoffel
2004-01-26 4:26 ` John Stoffel
2004-01-26 5:04 ` Andi Kleen
2004-01-26 14:14 ` John Stoffel
2004-01-26 14:36 ` Andi Kleen
2004-01-26 6:00 ` Andrew Morton
2004-01-26 6:09 ` Andi Kleen
2004-01-26 14:12 ` John Stoffel
2004-01-26 14:51 ` Fabio Coatti
2004-01-26 19:26 ` Eric
2004-01-26 19:56 ` Andrew Morton
2004-01-27 5:43 ` Eric
2004-01-27 5:50 ` Andrew Morton
2004-01-27 5:57 ` Eric
2004-01-27 6:37 ` Eric
2004-01-27 16:26 ` Andi Kleen
2004-01-27 18:15 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - REALLY SOLVED Andi Kleen
2004-01-27 19:31 ` Eric [this message]
2004-01-27 21:09 ` Fabio Coatti
2004-01-27 16:20 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Andi Kleen
2004-01-27 20:54 ` Andrew Morton
2004-01-27 22:30 ` Andi Kleen
2004-01-27 23:16 ` Andrew Morton
2004-01-27 23:29 ` Andi Kleen
2004-01-27 23:45 ` Andrew Morton
2004-01-27 0:18 ` 2.6.2-rc2 Hangs on boot (was: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED) John Stoffel
2004-01-27 0:38 ` Andrew Morton
2004-01-27 9:40 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Erik Hensema
2004-01-25 21:11 ` Andrew Morton
2004-01-25 21:21 ` Fabio Coatti
2004-01-25 21:46 ` Andi Kleen
2004-01-25 22:03 ` Bartlomiej Zolnierkiewicz
2004-01-25 22:08 ` Fabio Coatti
2004-01-25 22:13 ` Andi Kleen
2004-01-25 22:25 ` Andrew Morton
2004-01-25 22:31 ` Andi Kleen
2004-01-25 22:59 ` Andrew Morton
2004-01-26 3:48 ` Adrian Bunk
2004-01-25 23:24 ` John Stoffel
2004-01-26 3:27 ` Adrian Bunk
2004-01-25 21:54 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - II Andi Kleen
2004-01-25 21:48 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Adrian Bunk
2004-01-25 17:49 ` Valdis.Kletnieks
2004-01-25 16:28 ` Kernels > 2.6.1-mm3 do not boot Valdis.Kletnieks
2004-01-25 17:12 ` Fabio Coatti
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=200401271331.11812.eric@cisu.net \
--to=eric@cisu.net \
--cc=Valdis.Kletnieks@vt.edu \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=bunk@fs.tum.de \
--cc=cova@ferrara.linux.it \
--cc=linux-kernel@vger.kernel.org \
--cc=stoffel@lucent.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.