[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071026.225516.152502425.davem@davemloft.net>
Date: Fri, 26 Oct 2007 22:55:16 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ebiederm@...ssion.com
Cc: benjamin.thery@...l.net, netdev@...r.kernel.org, dlunev@...il.com,
containers@...ts.osdl.org, clg@...ibm.com, xemul@...nvz.org
Subject: Re: [PATCH] net: Marking struct pernet_operations __net_initdata
was inappropriate
From: ebiederm@...ssion.com (Eric W. Biederman)
Date: Fri, 26 Oct 2007 17:45:33 -0600
>
> It is not safe to to place struct pernet_operations in a special section.
> We need struct pernet_operations to last until we call unregister_pernet_subsys.
> Which doesn't happen until module unload.
>
> So marking struct pernet_operations is a disaster for modules in two ways.
> - We discard it before we call the exit method it points to.
> - Because I keep struct pernet_operations on a linked list discarding
> it for compiled in code removes elements in the middle of a linked
> list and does horrible things for linked insert.
>
> So this looks safe assuming __exit_refok is not discarded
> for modules.
>
> Signed-off-by: Eric W. Biederman <ebiederm@...ssion.com>
Applied, thanks Eric.
Although juding by his comments I though that Denis had different
plans in mind to fix this.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists