public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* strict rejection of init -> core references causes problems
@ 2004-07-09  7:02 David Mosberger
  2004-07-09  8:01 ` [netfilter-core] " Harald Welte
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: David Mosberger @ 2004-07-09  7:02 UTC (permalink / raw)
  To: linux-ia64

Tony,

The recent patch of yours to the kernel module loader is causing some
problems with the netfilter modules.  To recap, with that patch
applied, calls from the core section of a module to an init section
are rejected because that's in general a dangerous thing to do (the
called code may be gone by the time the call gets executed).

I'm not terribly familiar with the netfilter code, but I think the
problem there comes from the fact that some code is shared between
init and exit handlers and that shared code ends up in the module
core.

For example, ip_nat_standalone.c:init_or_cleanup() may call
ip_nat_rule_init(), which is marked as an __init function.  This
happens to be safe because ip_nat_rule_init() is only called during
module-initialization.  Seems to me like a dangerous practice, but if
it's common practice, I suppose we don't have much choice but to allow
calls from core to init sections again.  Perhaps someone from the
netfilter team could comment?

	--david

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

end of thread, other threads:[~2004-07-12 14:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-09  7:02 strict rejection of init -> core references causes problems David Mosberger
2004-07-09  8:01 ` [netfilter-core] " Harald Welte
2004-07-09 15:59 ` Luck, Tony
2004-07-09 18:36 ` [netfilter-core] " David Mosberger
2004-07-09 18:46 ` Luck, Tony
2004-07-09 18:52 ` [netfilter-core] " Harald Welte
2004-07-09 19:19 ` Luck, Tony
2004-07-10  7:15 ` Harald Welte
2004-07-12 14:36 ` [netfilter-core] strict rejection of init -> core references Jean-Marc Saffroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox