Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
Have you made sure that your interface is down and stays down while you are initializing your module (doing memory allocation, initializing structures etc...)? If you are creating a service ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Jul 2009
    Posts
    49

    kernel crash...


    Have you made sure that your interface is down and stays down while you are initializing your module (doing memory allocation, initializing structures etc...)?

    If you are creating a service that is somehow telling the kernel that it's available before it's actually ready then perhaps some network activity is making calls into your module before you have finished your start up. That's all I got without all of your code.

    Cheers!!

  2. #12
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4
    Thanks again...One thing I learned this weekend was that netfilter runs in softirq context so it should not be blocking. So the atomic flag on any allocations is essential. As is using a spinlock instead of a semaphore.

    I'm rewriting the code focusing on synchronization. Hopefully that will fix my issues. I'm about 1/2 way through and I've been testing thoroughly. So far, no bugs.

    Thanks for all the help!

  3. #13
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,525
    Sometimes, just talking out a problem is all the help one needs! Glad we could listen...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •