Netdev List
 help / color / mirror / Atom feed
* Kernel Panic Sending Frames Using dev_queue_xmit()
@ 2013-09-25  7:32 Merlin Davis
  2013-09-25 18:19 ` Ben Hutchings
  0 siblings, 1 reply; 5+ messages in thread
From: Merlin Davis @ 2013-09-25  7:32 UTC (permalink / raw)
  To: netdev

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?

Thank you,
Merlin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-26  2:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25  7:32 Kernel Panic Sending Frames Using dev_queue_xmit() Merlin Davis
2013-09-25 18:19 ` Ben Hutchings
2013-09-25 21:29   ` Merlin Davis
2013-09-25 22:03     ` Francois Romieu
2013-09-26  2:47       ` Merlin Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox