LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Thread Tools
Old 11-06-2009, 07:26 PM   #1
yaplej
Member
 
Registered: Apr 2009
Posts: 69
Thanked: 0
KLM packet handler soft lockup on CPU: 0


[Log in to get rid of this advertisement]
Hey all,

I am having a problem with an network accelerator LKM I am writing. It will run for a few minuets processing IP packets then it will lockup the CPU.

I stripped down the LKM packet handler to a simple function in functiontest.h that uses __set_tcp_option() from tcpoptions.h to insert custom TCP options into the skb's it processes.

It only seems to crash when using the __set_tcp_option() after running for a little while. I dont see anything wrong with the function, but I far from any skilled kernel developer.

Thanks to anyone who can help. The full packet handler in packetprocessor.h is a bit more complex than the one I wrote just to test __set_tcp_option().


Whole LKM
http://udhaya.blu.livefilestore.com/...1.zip?download

tcpoptions.h
http://udhaya.blu.livefilestore.com/...ons.h?download

functiontest.h
http://udhaya.blu.livefilestore.com/...est.h?download
Attached Images
File Type: png lockup.png (63.4 KB, 2 views)

Last edited by yaplej; 11-07-2009 at 02:11 AM..
windows_98_nt_2000 yaplej is offline     Reply With Quote
Old 11-12-2009, 07:03 PM   #2
yaplej
Member
 
Registered: Apr 2009
Posts: 69
Thanked: 0

Original Poster
Found a loop in one of my functions.
windows_98_nt_2000 yaplej is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG: soft lockup - CPU#1 stuck for 10s! [swapper:0] john lee Linux - Newbie 1 08-15-2009 10:38 AM
BUG: soft lockup - CPU#3 stuck for 10s! chakkerz Linux - Server 2 06-16-2008 06:34 PM
BUG: soft lockup detected on CPU#0 and BUG: spinlock recursion on CPU#0 ... BloodyCat Linux - Hardware 3 11-07-2006 02:14 PM
bug:soft lockup detected on cpu#0! paraiso Linux - General 2 01-29-2006 06:42 AM
BUG: Soft lockup detected on CPU#0! 97tbird Linux - General 0 11-03-2005 03:12 PM


All times are GMT -5. The time now is 04:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration