delleceste at gmail.com
Mon Nov 28 15:41:22 CET 2005
I wrote a simple packet filter in kernel space.
I register with netfilter hooks and then i process
packets in input, output, forward, pre, post.
For rules and internal structures i use linked lists with read_lock_bh /
write_lock_bh to protect concurrency, since there are timers which, at
timeout, delete entries in lists.
All works fine, but sometimes when i unplug video cable from graphic
card system hangs.
Sometimes this happens after unloading my modules, but this happens more
frequently when my filter is running.
Can it be an issue related to my work?
Perhaps could it be an interrupt raised by
network card which i should protect code from?
Should i disable hw interrupts?
What can be wrong, any idea?
Thanks a lot!
More information about the netfilter-devel