On Friday 2009-07-17 18:50, Stefan Hellkvist wrote: > >Could anyone help me understand the execution context under which >netfilter hooks are being executed? If I am not mistaken, SIRQ context, including the no-nos that come with it. Reading files sure is one. >Then it will fail with an "Oops: 0000 [#2]" "BUG: unable to handle >kernel NULL pointer dereference at 0000000f" when you trigger it with >some network traffic. The last call in the stack-trace of the OOPS >shows vfs_read (called by kernel_read) being the culprit (possibly >because it's being executed in the wrong context). > >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. -- 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