linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Riffard <laurent.riffard@free.fr>
To: Andrew Morton <akpm@osdl.org>
Cc: Chuck Ebbert <76306.1226@compuserve.com>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.17-rc5-mm1
Date: Fri, 02 Jun 2006 00:56:45 +0200	[thread overview]
Message-ID: <447F70AD.6000309@free.fr> (raw)
In-Reply-To: <20060601150250.3a66c489.akpm@osdl.org>


Le 02.06.2006 00:02, Andrew Morton a écrit :
> Chuck Ebbert <76306.1226@compuserve.com> wrote:
>> In-Reply-To: <447DD4D3.3060205@free.fr>
>>
>> On Wed, 31 May 2006 19:39:31 +0200, Laurent Riffard wrote:
>>
>>> pktcdvd: writer pktcdvd0 mapped to hdc
>>> BUG: unable to handle kernel NULL pointer dereference at virtual address 00000084
>>>  printing eip:
>>> c01118f1
>>> *pde = 00000000
>>> Oops: 0000 [#1]
>>> last sysfs file: /block/pktcdvd0/removable
>>> Modules linked in: pktcdvd lp parport_pc parport snd_pcm_oss snd_mixer_oss snd_ens1371 gameport snd_rawmidi snd_seq_device snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd_page_alloc snd soundcore af_packet floppy ide_cd cdrom loop aes dm_crypt nl
>>> CPU:    0
>>> EIP:    0060:[<c01118f1>]    Not tainted VLI
>>> EFLAGS: 00010006   (2.6.17-rc5-mm1 #11) 
>>> EIP is at do_page_fault+0xb4/0x5bc
>>> eax: d6750084   ebx: d6750000   ecx: 0000007b   edx: 00000000
>>> esi: d6758000   edi: c011183d   ebp: d675007c   esp: d6750044
>>> ds: 007b   es: 007b   ss: 0068
>>> Process  (pid: 0, threadinfo=d674f000 task=d657c000)
>>> Stack: 00000000 d6750084 00000000 00000049 00000084 00000000 00001e2e 02001120 
>>>        00000027 00000022 00000055 d6750000 d6758000 c011183d d67500f0 c010340d 
>>>        d6750000 0000007b 00000000 d6758000 c011183d d67500f0 d67500f8 0000007b 
>>> Call Trace:
>>>  [<c010340d>] error_code+0x39/0x40
>>> Code: 00 00 c0 81 0f 84 12 02 00 00 e9 1c 05 00 00 8b 45 cc f7 40 30 00 02 02 00 74 06 e8 68 af 01 00 fb f7 43 14 ff ff ff ef 8b 55 d0 <8b> b2 84 00 00 00 0f 85 e5 01 00 00 85 f6 0f 84 dd 01 00 00 8d 
>>> EIP: [<c01118f1>] do_page_fault+0xb4/0x5bc SS:ESP 0068:d6750044
>> arch/i386/mm/fault.c::do_page_fault():
>>
>>   12:   f7 40 30 00 02 02 00      testl  $0x20200,0x30(%eax)
>>   19:   74 06                     je     21 <_EIP+0x21>
>>         if (regs->eflags & (X86_EFLAGS_IF|VM_MASK))
>>
>>   1b:   e8 68 af 01 00            call   1af88 <_EIP+0x1af88>
>>   20:   fb                        sti
>>                 local_irq_enable();
>>
>> local_irq_enable() should only be doing an sti; your code has an extra
>> function call. Do you have any extra patches applied?
> 
> This is all the lockdep stuff - it adds instrumentation to local_irq_foo().
> 
>>   21:   f7 43 14 ff ff ff ef      testl  $0xefffffff,0x14(%ebx)
>> if (in_atomic()...
>>
>>   28:   8b 55 d0                  mov    0xffffffd0(%ebp),%edx
>> Get tsk from local storage and put it in edx.
>>
>> 00000000 <_EIP>:
>>    0:   8b b2 84 00 00 00         mov    0x84(%edx),%esi   <=====
>>         mm = tsk->mm;
>>
>> tsk was zero here, implying that current was 0 when the page fault happened.
>>
>>
>>    6:   0f 85 e5 01 00 00         jne    1f1 <_EIP+0x1f1>
>>    c:   85 f6                     test   %esi,%esi
>>    e:   0f 84 dd 01 00 00         je     1f1 <_EIP+0x1f1>
>>
>>
>>
>> Andrew, should we add debug code to the fault handler to test for current == 0?
> 
> `current == 0' implies a scrogged thread_info.  I'm not sure what debugging
> we could usefully add to the pagefault handler to detect that.  Apart from
> getting a good backtrace.  Which the x86_64 guys have broken.
> 
> Laurent, please disable CONFIG_STACK_UNWIND and try again - that way we
> should be able to see whereabouts the thread-info got corrupted.

I tried 2.6.17-rc5-mm2 with CONFIG_STACK_UNWIND disabled today and the bug 
still happened.

But I can't get a full stack trace right now since I don't have my second 
box here. Will do tomorrow.

-- 
laurent

  reply	other threads:[~2006-06-01 22:55 UTC|newest]

Thread overview: 179+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01 21:39 2.6.17-rc5-mm1 Chuck Ebbert
2006-06-01 22:02 ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-01 22:56   ` Laurent Riffard [this message]
2006-06-02 20:19     ` 2.6.17-rc5-mm1 Laurent Riffard
  -- strict thread matches above, loose matches on Subject: below --
2006-06-05  0:59 2.6.17-rc5-mm1 Chuck Ebbert
2006-06-05  1:10 ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-05 10:32   ` 2.6.17-rc5-mm1 Laurent Riffard
2006-06-05 16:14     ` 2.6.17-rc5-mm1 Laurent Riffard
2006-06-05 18:00       ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-05 18:18         ` 2.6.17-rc5-mm1 Dave Jones
2006-06-05 21:52         ` 2.6.17-rc5-mm1 Barry K. Nathan
2006-06-06  7:26           ` 2.6.17-rc5-mm1 Ingo Molnar
2006-06-06 20:08             ` 2.6.17-rc5-mm1 Laurent Riffard
2006-06-06 20:58               ` 2.6.17-rc5-mm1 Ingo Molnar
2006-06-06 21:38                 ` 2.6.17-rc5-mm1 Laurent Riffard
2006-06-06 22:05                   ` 2.6.17-rc5-mm1 Ingo Molnar
2006-06-06 22:29                     ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-07  6:22                       ` 2.6.17-rc5-mm1 Jens Axboe
2006-06-08 19:00                         ` 2.6.17-rc5-mm1 Laurent Riffard
2006-06-04  6:49 2.6.17-rc5-mm1 Chuck Ebbert
2006-06-04 19:49 ` 2.6.17-rc5-mm1 Laurent Riffard
     [not found] <fa.OzJugEVv9WJAu9OjbsckjHU7X1U@ifi.uio.no>
     [not found] ` <fa.Gc0Mz2XRYv0MekBhe0EU0fxdjxI@ifi.uio.no>
2006-06-02  8:53   ` 2.6.17-rc5-mm1 Aneesh Kumar K.V
     [not found] <6iEI8-6Tx-37@gated-at.bofh.it>
     [not found] ` <6iG79-11u-23@gated-at.bofh.it>
     [not found]   ` <6iGqr-1sJ-3@gated-at.bofh.it>
     [not found]     ` <6iGJN-1SM-17@gated-at.bofh.it>
     [not found]       ` <6iIsf-4Eq-11@gated-at.bofh.it>
2006-06-01  0:43         ` 2.6.17-rc5-mm1 Robert Hancock
2006-06-01  5:36           ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-06-02  8:52             ` 2.6.17-rc5-mm1 Andi Kleen
2006-06-06  4:36               ` 2.6.17-rc5-mm1 David Miller
2006-06-06  5:56                 ` 2.6.17-rc5-mm1 Andi Kleen
2006-05-31 19:32 2.6.17-rc5-mm1 Martin Bligh
2006-05-30 15:33 ` 2.6.17-rc5-mm1 Pavel Machek
2006-05-31 21:06 ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-31 21:23   ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-05-31 21:43     ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-31 21:53       ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-05-31 22:14         ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-01 16:34         ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-01 17:29           ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-05 13:05           ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 16:37             ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-05 16:42             ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 18:43             ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 18:49               ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-06-05 18:52                 ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 19:14                   ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-05 19:27                     ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 19:33                       ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-05 19:37                         ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:04                           ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 18:57                 ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:02               ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 20:05                 ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:08                   ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 20:13                     ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-05 20:16                       ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:27                       ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:43                         ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-05 20:58                           ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-05 21:07                             ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-06-05 22:12                             ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-06  5:14                             ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 16:32                               ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-06 17:16                                 ` 2.6.17-rc5-mm1 Martin Schwidefsky
2006-06-06 18:04                                   ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-06 18:21                                     ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 18:24                                       ` 2.6.17-rc5-mm1 Martin Schwidefsky
2006-06-06 17:20                                 ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 17:34                                   ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-06 17:45                                     ` 2.6.17-rc5-mm1 Martin Schwidefsky
2006-06-06 17:47                                     ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 17:39                                   ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-06 17:48                                     ` 2.6.17-rc5-mm1 Martin Schwidefsky
2006-06-06 17:59                                     ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 18:05                                       ` 2.6.17-rc5-mm1 Martin Schwidefsky
2006-06-06 18:15                                         ` 2.6.17-rc5-mm1 Hugh Dickins
2006-06-06 18:28                                           ` 2.6.17-rc5-mm1 Christoph Lameter
2006-06-07  9:17                               ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-06 11:39                           ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-07  9:17                           ` 2.6.17-rc5-mm1 Andy Whitcroft
2006-06-05 20:44                         ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-05 20:07                 ` 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 23:07       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 23:15         ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 23:29         ` 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 23:38       ` 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 19:32 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 21:08 ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-31 21:15   ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 21:27     ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-05-31 21:33       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 21:43         ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-05-31 21:53           ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 21:59             ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-05-31 22:12               ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 22:21                 ` 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 22:32                   ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 22:36                     ` 2.6.17-rc5-mm1 Martin Bligh
2006-05-31 22:50                       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-06-01 10:36                         ` 2.6.17-rc5-mm1 Roman Zippel
2006-06-01 14:49                           ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-06-01 15:23                             ` 2.6.17-rc5-mm1 Roman Zippel
2006-06-01 15:31                               ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-06-01 15:43                                 ` 2.6.17-rc5-mm1 Roman Zippel
2006-06-01 16:55                                   ` 2.6.17-rc5-mm1 Martin Bligh
2006-06-01 21:04                                     ` 2.6.17-rc5-mm1 Roman Zippel
2006-06-01 21:07                                       ` 2.6.17-rc5-mm1 Martin J. Bligh
2006-06-02  0:19                                         ` 2.6.17-rc5-mm1 Roman Zippel
2006-05-31 22:43                     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 22:46                 ` 2.6.17-rc5-mm1 Roman Zippel
2006-06-01  7:10       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30  9:29 2.6.17-rc5-mm1 Andrew Morton
2006-05-30  9:42 ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 10:12 ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 12:46 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 19:13   ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 15:59 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 16:08   ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 18:51     ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 16:16 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 19:28   ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 19:48     ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 18:39 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 19:04   ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 19:55   ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 20:20     ` 2.6.17-rc5-mm1 Dave Jones
2006-05-30 20:32       ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 18:55 ` 2.6.17-rc5-mm1 Michal Piotrowski
     [not found]   ` <6bffcb0e0605301157o6b7c5f66q3c9f151cbb4537d5@mail.gmail.com>
2006-05-30 19:42     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 21:57       ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 22:09         ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:18           ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:26             ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:29               ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:31                 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 22:32                 ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 10:56                 ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:59           ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 23:05             ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 23:06               ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 23:49                 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-31  3:08                   ` 2.6.17-rc5-mm1 Steven Rostedt
2006-05-30 19:45   ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-31 13:51   ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-31 14:02     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 14:05       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 14:12       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 15:05         ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-30 19:43 ` 2.6.17-rc5-mm1 Roland Dreier
2006-05-30 21:07 ` 2.6.17-rc5-mm1 Brice Goglin
2006-05-30 21:07 ` 2.6.17-rc5-mm1 Laurent Riffard
2006-05-30 21:24   ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-30 21:43     ` 2.6.17-rc5-mm1 Mel Gorman
2006-05-30 21:24 ` 2.6.17-rc5-mm1 Roland Dreier
2006-05-30 22:45   ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-30 22:49     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:52       ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 22:58         ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 23:05           ` 2.6.17-rc5-mm1 Thomas Gleixner
2006-05-30 23:14             ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-30 23:32               ` 2.6.17-rc5-mm1 Roland Dreier
2006-05-30 23:15             ` 2.6.17-rc5-mm1 Benjamin Herrenschmidt
2006-05-30 23:53               ` 2.6.17-rc5-mm1 Greg KH
2006-05-30 23:53 ` 2.6.17-rc5-mm1 Michal Piotrowski
2006-05-31  3:17 ` 2.6.17-rc5-mm1 Steven Rostedt
2006-05-31  4:14   ` 2.6.17-rc5-mm1 Andrew Morton
2006-05-31  6:31     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 11:50       ` 2.6.17-rc5-mm1 Steven Rostedt
2006-05-31 11:55         ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31  6:39     ` 2.6.17-rc5-mm1 Arjan van de Ven
2006-05-31 16:48 ` 2.6.17-rc5-mm1 Jesse Brandeburg
2006-05-31 23:08   ` 2.6.17-rc5-mm1 Ingo Molnar
2006-05-31 17:39 ` 2.6.17-rc5-mm1 Laurent Riffard
2006-05-31 18:09   ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-01 22:07   ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-02  7:49     ` 2.6.17-rc5-mm1 Jan Beulich
2006-06-01  1:25 ` 2.6.17-rc5-mm1 Randy.Dunlap
2006-06-01  1:40   ` 2.6.17-rc5-mm1 Siddha, Suresh B
2006-06-01  2:17     ` 2.6.17-rc5-mm1 Randy.Dunlap
2006-06-01  1:43   ` 2.6.17-rc5-mm1 Andrew Morton
2006-06-01  6:14     ` 2.6.17-rc5-mm1 Ingo Molnar
2006-06-01 15:12       ` 2.6.17-rc5-mm1 Randy.Dunlap

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=447F70AD.6000309@free.fr \
    --to=laurent.riffard@free.fr \
    --cc=76306.1226@compuserve.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /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).