LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-06-2009, 06:26 PM   #1
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu, openSuSE
Posts: 165
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 Thumbnails
Click image for larger version

Name:	lockup.png
Views:	20
Size:	63.4 KB
ID:	1894  

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, openSuSE
Posts: 165

Original Poster
Blog Entries: 1

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


Reply



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
[SOLVED] BUG: soft lockup - CPU#1 stuck for 10s! [swapper:0] john lee Linux - Newbie 4 01-05-2015 11:30 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration