public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Zbigniew Baniewski <zb@ispid.com.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: "modularized" 2.4.34.4  ->  ide-core "unresolved symbols"
Date: Sat, 12 May 2007 13:08:27 +0200	[thread overview]
Message-ID: <20070512110827.GA21596@1wt.eu> (raw)
In-Reply-To: <20070509220544.GA14957@localhost.localdomain>

Hi Zbigniew,

On Thu, May 10, 2007 at 12:05:44AM +0200, Zbigniew Baniewski wrote:
> So, I changed the config (below) and made another compilation - still the
> same:
> ------------------------
> ...ordinary boot messages, ending with "hda:... sectors... w/Cache..."
> hda: attached ide-disk driver
> hda:<1>Unable to handle kernel paging request at virtual address ffffff00 
> printing eip:
> 
> ...a lot of interesting stuff...              
> 
> <0>Kernel panic: Attempted to kill the idle task!
> In idle task - not syncing.
> -----------------------
> 
> I'm afraid, kernel 2.4.34.4 is just broken.

Well, in fact it's not just that easy.

I've tried your image and could reproduce the same panic here.
However, it is not the same problem at all, because it appears
unrelated to IDE, and it crashes about 1 second after init has
been forked. I noticed this because I had a hard time trying
to get access to a shell, then I finally decided to put sash
on the FS and rebuild it. I booted with init=sash and got the
sash prompt, then the panic one second after it, while no
module could be loaded.

I decoded the panic dump :

VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 116k freed
Unable to handle kernel paging request at virtual address ffffff00
 printing eip:
c0113a80
Oops: 0002
CPU:    0
EIP:    0010:[<c0113a80>]    Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010286
eax: ffffff00   ebx: 00000001   ecx: ffffffff   edx: c0300000
esi: 00049800   edi: c0270800   ebp: 0003e000   esp: c0301fc4
ds: 0018   es: 0018   ss: 0018
Process swapper (pid: 0, stackpage=c0301000)
Stack: c012016c 00000001 00049800 c0270800 c011e2a0 c0108166 c0270f60 00007dfd 
       00007dfd 00007dfd 00007dfd c0303340 c011e1ba 00000000 00000000 
Call Trace:    [<c012016c>] [<c011e2a0>] [<c0108166>] [<c011e1ba>]
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

>>EIP; c0113a80 <init_idle+0/94>   <=====
Trace; c012016c <cpu_idle+8/54>
Trace; c011e2a0 <rest_init+50/54>
Trace; c0108166 <start_kernel+172/178>
Trace; c011e1ba <L6+0/2>
Code;  c0113a80 <init_idle+0/94>
00000000 <_EIP>:

 <0>Kernel panic: Attempted to kill the idle task!


It crashes in init_idle(), itself called by cpu_idle(). I retried with
plain 2.4.34, and this one works perfectly.

Then I dowloaded grsec as I've noticed your kernel is called -grsec. I
applied the patch to plain 2.4.34, and kaboom ! The same panic as above.
Unfortunately, grsec does not seem to modify the functions above, so
it's trickier than it looks.

The fact that it is inside an initrd makes it amazingly difficult to
debug. It took me 3 hours this morning to succesfully get a shell
with no modules loaded.

Then I tried to hard-link the IDEDISK module, and it works even with
grsec. So right now, all I can say is :
  - 2.4.34 + IDEDISK=y  works
  - 2.4.34 + IDEDISK=m  works
  - 2.4.34 + grsec + IDEDISK=y  works
  - 2.4.34 + grsec + IDEDISK=m  breaks

I do not have enough knowledge of the IDE DISK driver nor of grsec to
guess what goes wrong. If other people on the list could enlighten me,
I would appreciate it. In the mean time, I suggest that you avoid
grsec+IDEDISK=m. So maybe using IDEDISK=y would be acceptable, even
if we agree that we're hiding the bug instead of fixing it ?

Regards,
Willy


  parent reply	other threads:[~2007-05-12 11:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 19:49 "modularized" 2.4.34.4 -> ide-core "unresolved symbols" Zbigniew Baniewski
2007-05-06  4:36 ` Willy Tarreau
2007-05-08 20:23   ` Zbigniew Baniewski
2007-05-08 21:16     ` Willy Tarreau
2007-05-08 22:14       ` Zbigniew Baniewski
2007-05-08 22:39         ` Willy Tarreau
2007-05-08 22:53           ` Zbigniew Baniewski
2007-05-09 22:05           ` Zbigniew Baniewski
2007-05-10  9:21             ` Willy Tarreau
2007-05-12 11:08             ` Willy Tarreau [this message]
     [not found] <fa.rg7bSh1mNv1yib9QUzNuRvWTPe8@ifi.uio.no>
2007-05-06  2:41 ` Robert Hancock

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=20070512110827.GA21596@1wt.eu \
    --to=w@1wt.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zb@ispid.com.pl \
    /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