LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2013, 08:44 AM   #1
taufique71
LQ Newbie
 
Registered: Sep 2012
Location: Dhaka, Bangladesh
Distribution: CentOS
Posts: 6

Rep: Reputation: Disabled
kfree_skb() crashing with 'null pointer dereferencing error'


I was writing an kernel module. What I was trying to do is grab a few rtp packets, then merge them as a new packet and drop the grabbed packets. After merging some desired number of packets I was sending the merged packets.

For this I needed to allocate a new sk_buff and copy the data from original skb. For copying I used two functions - 'skb_copy' and 'skb_copy_expand'. Problem is after some times of running, kernel is panicking. If I turn on the debug symbol it shows that it is panicking from 'kfree_skb' as a result of 'null pointer dereferencing error'. I checked, but I couldn't find any kind of error for which 'null pointer dereferencing error' could occur. What possibly can be the problem?
 
  


Reply

Tags
iptables, kernel module, kernel panic, netfilter modules


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dereferencing pointer error during compilation zak100 Programming 8 07-14-2014 02:34 AM
error: dereferencing pointer to incomplete type answerme Programming 4 09-18-2013 06:45 AM
error: dereferencing pointer to incomplete type joyce092130 Programming 11 09-29-2012 10:06 AM
[SOLVED] error: dereferencing pointer to incomplete type in C Himalay Programming 9 07-07-2012 09:35 AM
error: dereferencing pointer to incomplete type ChullDouvre Programming 2 05-02-2007 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 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