From: Alexey Dobriyan <adobriyan@gmail.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org
Subject: Re: crypto_remove_spawns: BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
Date: Tue, 16 Feb 2010 21:31:39 +0200 [thread overview]
Message-ID: <20100216193139.GA5512@x200> (raw)
In-Reply-To: <20100216120203.GA32264@gondor.apana.org.au>
On Tue, Feb 16, 2010 at 08:02:03PM +0800, Herbert Xu wrote:
> On Mon, Feb 15, 2010 at 10:14:08AM +0200, Alexey Dobriyan wrote:
> >
> > Yes, ipcomp bug triggers almost immediately.
> > Anyway, this is just description of what I do.
>
> Can you see if this patch makes it go away?
>
> This can happen when you're unloading aes just as an algorithm
> that uses aes (such as cbc(aes)) is being created.
Which codepath exactly?
I'd say try_module_get() should fail somewhere.
BTW, CBC or AES aren't used, just loaded.
Here is setkey script:
#!/usr/sbin/setkey -f
flush;
spdflush;
add A B ipcomp 44 -m tunnel -C deflate;
add B A ipcomp 45 -m tunnel -C deflate;
spdadd A B any -P in ipsec
ipcomp/tunnel/192.168.1.2-192.168.1.3/use;
spdadd B A any -P out ipsec
ipcomp/tunnel/192.168.1.3-192.168.1.2/use;
> --- a/crypto/algapi.c
> +++ b/crypto/algapi.c
> @@ -165,6 +165,8 @@ static void crypto_remove_spawns(struct crypto_alg *alg,
>
> spawn->alg = NULL;
> spawns = &inst->alg.cra_users;
> + if (!spawns->next)
> + break;
> }
> } while ((spawns = crypto_more_spawns(alg, &stack, &top,
> &secondary_spawns)));
next prev parent reply other threads:[~2010-02-16 19:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-14 17:45 crypto_remove_spawns: BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 Alexey Dobriyan
2010-02-15 5:27 ` Herbert Xu
2010-02-15 7:47 ` Alexey Dobriyan
2010-02-15 8:11 ` Herbert Xu
2010-02-15 8:14 ` Alexey Dobriyan
2010-02-16 12:02 ` Herbert Xu
2010-02-16 19:31 ` Alexey Dobriyan [this message]
2010-02-17 0:37 ` Herbert Xu
2010-02-17 19:31 ` Alexey Dobriyan
2010-02-18 0:26 ` Herbert Xu
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=20100216193139.GA5512@x200 \
--to=adobriyan@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@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