lkml.org 
[lkml]   [2003]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectmodule removal race possible in nf_sockopt?
Date
Hello Rusty,

Isn't there a module race possible with the netfilter function nf_sockopt
(net/core/netfilter.c)? This function calls the sockopt function of a
registered netfilter module, like iptables. F.e. the function do_ipt_set_ctl
in ip_tables.c could be called.
What if the iptables module is being unloaded on one cpu, while another cpu
just called do_ipt_set_ctl?
I think there needs to be a try_module_get and module_put in the nf_sockopt
function to handle this. What do you think?

--
cheers,
Bart

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.029 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site