Re: Understanding execution context of netfilter hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>So, the question, as mentioned in the beginning. What context is the
>>>hook executing in which causes the code to behave differently from
>>>when it executed in the module init method for instance?
>>
>> module_init either runs as user or kthread context. Your reading
>> of files would most likely also fail in the latter.
>
>I see, then this problem is not really netfilter specific I guess.

Nope. You could move your reading to netif_receive_skb and still get the 
same crash.

>If anyone knows of any good online documentation or book regarding
>these different contexts I would be grateful for the info. Otherwise I
>thank you for the feedback.

Chapters 5-8,10,12 of LDD3 (and perhaps more, I did not bother besides a 
quick grep) talk about it now and again.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux