LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 11-06-2009, 06:26 PM   #1
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu
Posts: 119
Blog Entries: 1

Rep: Reputation: 22
KLM packet handler soft lockup on CPU: 0


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, 4 views)

Last edited by yaplej; 11-07-2009 at 01:11 AM.
 
Old 11-12-2009, 06:03 PM   #2
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu
Posts: 119
Blog Entries: 1

Original Poster
Rep: Reputation: 22
Found a loop in one of my functions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 09:38 AM
BUG: soft lockup - CPU#3 stuck for 10s! chakkerz Linux - Server 2 06-16-2008 05:34 PM
BUG: soft lockup detected on CPU#0 and BUG: spinlock recursion on CPU#0 ... BloodyCat Linux - Hardware 3 11-07-2006 01:14 PM
bug:soft lockup detected on cpu#0! paraiso Linux - General 2 01-29-2006 05:42 AM
BUG: Soft lockup detected on CPU#0! 97tbird Linux - General 0 11-03-2005 02:12 PM


All times are GMT -5. The time now is 07:48 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration