netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] netfilter, xt_target->target and xt_target->checkentry locks
@ 2010-06-09 12:21 Jiri Pirko
  2010-06-09 12:37 ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Jiri Pirko @ 2010-06-09 12:21 UTC (permalink / raw)
  To: kaber; +Cc: netfilter, bart.de.schuymer, davem, shemminger

Hi Patrick.

Once module registers it's struct xt_target by xt_register_target and ->target
and ->checkentry funtions are called later, is there any lock guaranteed to be
held?

From what I see for ->target it looks like rcu_read_lock is held, but I'm not
sure for all paths. There would be nice to put a comment into struct xt_target
definition regarding locks.

Asking because I found several places where dev->br_port is referenced directly
(without rcu_dereference).

Thanks a lot.

Jirka

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-09 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-09 12:21 [Question] netfilter, xt_target->target and xt_target->checkentry locks Jiri Pirko
2010-06-09 12:37 ` Jan Engelhardt
2010-06-09 13:00   ` Jiri Pirko
2010-06-09 13:03     ` Patrick McHardy
2010-06-09 13:13       ` Jiri Pirko
2010-06-09 13:26         ` Patrick McHardy
2010-06-09 14:06           ` Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).