From: Herbert Xu <herbert@gondor.apana.org.au>
To: Denis B <begun.denis@gmail.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: SKB dst field is NULL when AEAD request complete() is called
Date: Thu, 26 May 2016 17:29:02 +0800 [thread overview]
Message-ID: <20160526092902.GA1740@gondor.apana.org.au> (raw)
In-Reply-To: <CADREXsqviDO5RvN87LmDOQU3By_y8YPaGbcRxDpNW4Eyf62_6g@mail.gmail.com>
Denis B <begun.denis@gmail.com> wrote:
> Working with kernel 3.12.14, in AEAD mode, I register my crypto driver
> and the givencrypt() method in the driver gets called when I send
> IPSec traffic. I store the request, and later call its complete()
> method from a work queue. There is no actual encryption happening at
> the moment, I'm just testing flow. As stated, the complete() call
> stumbles upon a NULL pointer exception in xfrm_output_resume() because
> skb_dst(skb) is NULL. When I receive the request in givencrypt(), dst
> is not null in the SKB.
>
> Why would the framework meddle with the SKB? Has anyone experienced
> anything similar?
This is probably the result of some kind of a bug in your driver.
If however you're sure that your driver is doing the right thing,
then the bug would be in the network stack. You should discuss
networking issues on netdev@vger.kernel.org.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2016-05-26 9:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 12:03 SKB dst field is NULL when AEAD request complete() is called Denis B
2016-05-26 9:29 ` Herbert Xu [this message]
2016-05-26 10:04 ` Denis B
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=20160526092902.GA1740@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=begun.denis@gmail.com \
--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