From: Ben Hutchings <bhutchings@solarflare.com>
To: Merlin Davis <me.the.wizard@gmail.com>
Cc: <netdev@vger.kernel.org>
Subject: Re: Kernel Panic Sending Frames Using dev_queue_xmit()
Date: Wed, 25 Sep 2013 19:19:34 +0100 [thread overview]
Message-ID: <1380133174.2222.13.camel@bwh-desktop.uk.level5networks.com> (raw)
In-Reply-To: <CAFu7c2V+gubfzG4HdWtPWJ-w2x3J-RToUT2mdahcKSgn66fDzg@mail.gmail.com>
On Wed, 2013-09-25 at 00:32 -0700, Merlin Davis wrote:
> I am getting kernel panics in the 3.5.0 kernel (and 2.6.39) when
> sending Ethernet frames using allocated SKBs passed to
> dev_queue_xmit() from a kernel module. I have trimmed the problem to
> a very small module that continually sends the same (captured and
> verified) frame from one net_device. The frames are sent without a
> socket in I believe the same way that net/ipv4/arp.c creates and sends
> them. The panic can occur after a few seconds or a few minutes, but
> always occurs. It is USUALLY a "kernel NULL pointer dereference" and
> USUALLY occurs within __kfree_skb(), but both the error and the
> location can vary. I have not been successful in capturing a complete
> oops message.
>
> There is a GitHub repository with the module, a makefile, and more
> notes about how I have tested and what I have tried at
> https://github.com/me-the-wizard/ksend
>
> I do not know if there is something I am doing wrong with the SKBs or
> if I have stumbled upon a bug in the kernel. After weeks of attempts
> I believe I have reached the limit of my ability to figure this out.
> Can anyone offer some guidance?
You are more likely to get help if you include the code in your email
rather than linking to it.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2013-09-25 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 7:32 Kernel Panic Sending Frames Using dev_queue_xmit() Merlin Davis
2013-09-25 18:19 ` Ben Hutchings [this message]
2013-09-25 21:29 ` Merlin Davis
2013-09-25 22:03 ` Francois Romieu
2013-09-26 2:47 ` Merlin Davis
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=1380133174.2222.13.camel@bwh-desktop.uk.level5networks.com \
--to=bhutchings@solarflare.com \
--cc=me.the.wizard@gmail.com \
--cc=netdev@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