Re: nf_unregister_hook problem

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

 



Hi Jan, thanks for your attention..
yes, i've already tried this way you said but the problem remains the same.
declaring nf_unregister_hook(&nf_hook) in __module_exit function worked well,
but requires user intervention. The problem consists in unregister the hook by timers...misunderstandable.

here goes and print screen with the "infinite loop error"
when occurs the BUG caused by nf_unregister_hook handled by a timer.

http://inf.ufrgs.br/~gmoliveira/screen.png

if anyone had a similar problem, pleasa contact me.

Citando Jan Engelhardt <jengelh@xxxxxxxxxx>:


On Tuesday 2009-06-23 20:47, gmoliveira@xxxxxxxxxxxx wrote:

im using this:

init_timer(&foo2);
stop_trigger.function = nf_unregister_hook;
stop_trigger.data = &nf_hook;
stop_trigger.expires = jiffies + msecs_to_jiffies(HZ * 5000);
add_timer(&foo2);

it works to every function until now, unless nf_unregister_hook.

Does the problem go away if you call it indirectly? Like:


stop_trigger.function = myfunc;
...

myfunc(void)
{
	nf_unregister_hook(&nf_hook);
}





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--
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