* module removal race possible in nf_sockopt?
@ 2003-02-04 16:47 Bart De Schuymer
0 siblings, 0 replies; only message in thread
From: Bart De Schuymer @ 2003-02-04 16:47 UTC (permalink / raw)
To: Rusty Russel; +Cc: Linux Kernel Mailing List
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-04 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-04 16:47 module removal race possible in nf_sockopt? Bart De Schuymer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®