public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Neil Horman <nhorman@tuxdriver.com>
Cc: Simon Arlott <simon@fire.lp0.eu>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Herbert Xu <herbert@gondor.apana.org.au>
Subject: Re: BUG: unable to handle kernel NULL pointer dereference at 000000000000000e (reset_prng_context)
Date: Tue, 15 Jul 2008 13:49:28 +0200	[thread overview]
Message-ID: <20080715114928.GA29792@elte.hu> (raw)
In-Reply-To: <20080715113304.GA30565@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

> * Neil Horman <nhorman@tuxdriver.com> wrote:
> 
> > On Tue, Jul 15, 2008 at 12:25:37AM +0100, Simon Arlott wrote:
> > > http://img182.imageshack.us/img182/7205/1005489hh6.jpg
> > > 
> > > .config attached
> > > 
> > > -- 
> > > Simon Arlott
> > 
> > Looks like you don't have rfc3686(ctr(aes)) compiled in.  Add 
> > CONFIG_CRYPTO_CTR to your config, IIRC.  I'll add a depends directive 
> > to Kconfig for that in my next update.
> 
> i have just triggered this crash too. Please, when you know about 
> bootup crashes in your code send a patch to the lkml thread so that 
> people can apply it and have a working system.

btw., here's another crypto bug, in the same driver, in prng_mod_init():

[    0.552014] calling  crypto_authenc_module_init+0x0/0x10
[    0.552014] initcall crypto_authenc_module_init+0x0/0x10 returned 0 after 0 msecs
[    0.552014] calling  prng_mod_init+0x0/0x60
[    0.552014] BUG: scheduling while atomic: swapper/1/0x00000002
[    0.552014] Pid: 1, comm: swapper Not tainted 2.6.26-tip #2739
[    0.552014]  [<b012dd4c>] __schedule_bug+0x5c/0x70
[    0.552014]  [<b07a6d0c>] schedule+0x52c/0x900
[    0.552014]  [<b0126368>] ? __enqueue_entity+0xb8/0xe0
[    0.552014]  [<b0124990>] ? __resched_task+0x20/0x70
[    0.552014]  [<b07a7315>] schedule_timeout+0x75/0xc0
[    0.552014]  [<b07a8bb1>] ? _spin_unlock_irqrestore+0x31/0x40
[    0.552014]  [<b012a5ef>] ? try_to_wake_up+0xdf/0x280
[    0.552014]  [<b07a669f>] wait_for_common+0x6f/0x110
[    0.552014]  [<b012a790>] ? default_wake_function+0x0/0x10
[    0.552014]  [<b07a67d2>] wait_for_completion+0x12/0x20
[    0.552014]  [<b0144070>] kthread_create+0x70/0xa0
[    0.552014]  [<b02ff760>] ? cryptomgr_probe+0x0/0xa0
[    0.552014]  [<b02ff744>] cryptomgr_notify+0x244/0x260
[    0.552014]  [<b02ff760>] ? cryptomgr_probe+0x0/0xa0
[    0.552014]  [<b014843d>] notifier_call_chain+0x2d/0x60
[    0.552014]  [<b0148674>] __blocking_notifier_call_chain+0x44/0x60
[    0.552014]  [<b01486aa>] blocking_notifier_call_chain+0x1a/0x20
[    0.552014]  [<b02fa61e>] crypto_alg_mod_lookup+0x2e/0x80
[    0.552014]  [<b02fa6b2>] crypto_alloc_base+0x22/0x80
[    0.552014]  [<b03106c8>] reset_prng_context+0xc8/0x1f0
[    0.552014]  [<b0310847>] alloc_prng_context+0x37/0x70
[    0.552014]  [<b0a6fabe>] prng_mod_init+0xe/0x60
[    0.552014]  [<b01478f9>] ? ktime_get+0x19/0x40
[    0.552014]  [<b0a5972e>] kernel_init+0x1be/0x2d0
[    0.552014]  [<b0a6fab0>] ? prng_mod_init+0x0/0x60
[    0.552014]  [<b012da99>] ? schedule_tail+0x19/0x50
[    0.552014]  [<b0103d66>] ? ret_from_fork+0x6/0x20
[    0.552014]  [<b0a59570>] ? kernel_init+0x0/0x2d0
[    0.552014]  [<b0a59570>] ? kernel_init+0x0/0x2d0
[    0.552014]  [<b0105187>] kernel_thread_helper+0x7/0x10
[    0.552014]  =======================
[    0.552014] BUG: scheduling while atomic: swapper/1/0x00000002
[    0.552014] Pid: 1, comm: swapper Not tainted 2.6.26-tip #2739
[    0.552014]  [<b012dd4c>] __schedule_bug+0x5c/0x70
[    0.552014]  [<b07a6d0c>] schedule+0x52c/0x900
[    0.552014]  [<b01268e7>] ? enqueue_task_fair+0x47/0x50
[    0.552014]  [<b01240c7>] ? enqueue_task+0x57/0x70
[    0.552014]  [<b013a6d5>] ? lock_timer_base+0x25/0x50
[    0.552014]  [<b013a811>] ? __mod_timer+0x91/0xb0
[    0.552014]  [<b07a72e8>] schedule_timeout+0x48/0xc0
[    0.552014]  [<b013a540>] ? process_timeout+0x0/0x10
[    0.552014]  [<b07a669f>] wait_for_common+0x6f/0x110
[    0.552014]  [<b012a790>] ? default_wake_function+0x0/0x10
[    0.552014]  [<b07a677d>] wait_for_completion_interruptible_timeout+0xd/0x10
[    0.552014]  [<b02fa2df>] crypto_larval_wait+0x1f/0x60
[    0.552014]  [<b02fa667>] crypto_alg_mod_lookup+0x77/0x80
[    0.552014]  [<b02fa6b2>] crypto_alloc_base+0x22/0x80
[    0.552014]  [<b03106c8>] reset_prng_context+0xc8/0x1f0
[    0.552014]  [<b0310847>] alloc_prng_context+0x37/0x70
[    0.552014]  [<b0a6fabe>] prng_mod_init+0xe/0x60
[    0.552014]  [<b01478f9>] ? ktime_get+0x19/0x40
[    0.556035]  [<b0a5972e>] kernel_init+0x1be/0x2d0
[    0.556035]  [<b0a6fab0>] ? prng_mod_init+0x0/0x60
[    0.556035]  [<b012da99>] ? schedule_tail+0x19/0x50
[    0.556035]  [<b0103d66>] ? ret_from_fork+0x6/0x20
[    0.556035]  [<b0a59570>] ? kernel_init+0x0/0x2d0
[    0.556035]  [<b0a59570>] ? kernel_init+0x0/0x2d0
[    0.556035]  [<b0105187>] kernel_thread_helper+0x7/0x10
[    0.556035]  =======================
[    0.556035] initcall prng_mod_init+0x0/0x60 returned 0 after 2 msecs
[    0.556035] calling  noop_init+0x0/0x20
[    0.556035] io scheduler noop registered

it calls a blocking notifier from atomic context.

	Ingo

  reply	other threads:[~2008-07-15 11:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 23:25 BUG: unable to handle kernel NULL pointer dereference at 000000000000000e (reset_prng_context) Simon Arlott
2008-07-15  2:04 ` Neil Horman
2008-07-15 11:33   ` Ingo Molnar
2008-07-15 11:49     ` Ingo Molnar [this message]
2008-07-15 11:51     ` Ingo Molnar
2008-07-15 14:21       ` Neil Horman
2008-07-15 20:44     ` David Miller
2008-07-15 21:49       ` Alexey Dobriyan
2008-07-15 22:11         ` Andrew Morton
2008-07-15 22:36           ` Alexey Dobriyan
2008-07-16  0:04           ` Neil Horman
2008-07-16  2:08           ` Herbert Xu
2008-07-16  4:07           ` Herbert Xu
2008-07-16  4:25             ` Andrew Morton
2008-07-16  4:33               ` Herbert Xu
2008-07-16  4:51                 ` Andrew Morton
2008-07-16  5:34                   ` Herbert Xu
2008-07-16  6:17                     ` Andrew Morton
2008-07-16  6:35                       ` Herbert Xu
2008-07-16 16:57         ` Joe Perches
2008-07-18 22:16       ` Ingo Molnar
2008-07-15  2:16 ` Neil Horman

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=20080715114928.GA29792@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=simon@fire.lp0.eu \
    /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