Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to insmod xt_opendpi.ko kernel module and nf_conntrack_netlink.ko together #7

Open
GoogleCodeExporter opened this issue Apr 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Insmod xt_opendip.ko and later nf_conntrack_netlink.ko or vice-versa.

What is the expected output? What do you see instead?
shows device or resource busy.

What version of the product are you using? On what operating system?
working with fedora12 kernel version 2.6.32.21 

Please provide any additional information below.
console log shows:
insmod: error inserting 'src/xt_opendpi.ko': -1 Device or resource busy
dmesg shows:
ctnetlink v0.93: registering with nfnetlink.
xt_opendpi 0.1 (OpenDPI wrapper module).
xt_opendpi: error registering notifier.

This will happen if You have CONFIG_NF_CONNTRACK_EVENTS enabled. 

#ifdef CONFIG_NF_CONNTRACK_EVENTS
       ret = nf_conntrack_register_notifier(&ctnl_notifier);
       if (ret < 0) {
               pr_err("ctnetlink_init: cannot register notifier.\n");
               goto err_unreg_exp_subsys;
       }
        ret = nf_ct_expect_register_notifier(&ctnl_notifier_exp);
        if (ret < 0) {
                pr_err("ctnetlink_init: cannot expect register notifier.\n");
               goto err_unreg_notifier;
       }
#endif

Above code is from ctnetlink_init function.
nf_conntrack_register_notifier code is exclusive and protected by rcu locking.

We may not be able to use both nf_conntrack_netlink( needed for 
conntrack-tools) and opendpi with both registering notifier for events.


Original issue reported on code.google.com by shail140284 on 22 Oct 2010 at 5:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant