lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 25 Sep 2013 19:19:34 +0100 From: Ben Hutchings <bhutchings@...arflare.com> To: Merlin Davis <me.the.wizard@...il.com> CC: <netdev@...r.kernel.org> Subject: Re: Kernel Panic Sending Frames Using dev_queue_xmit() 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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists