netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unloading the ipv6 module
@ 2009-02-26 13:22 Daniel Lezcano
  2009-02-26 13:24 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Lezcano @ 2009-02-26 13:22 UTC (permalink / raw)
  To: Linux Netdev List

Hi,

I saw in net/ipv6/Kconfig a comment saying
"IPv6 as module will cause a CRASH if you try to unload it".

If I refer to this comment, that means unloading of ipv6 is not 
supported (which makes sense),
will it be one day supported?

 -- Daniel

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

* Re: unloading the ipv6 module
  2009-02-26 13:22 unloading the ipv6 module Daniel Lezcano
@ 2009-02-26 13:24 ` David Miller
  2009-02-26 13:43   ` Daniel Lezcano
  2009-02-26 18:09   ` Matti Aarnio
  0 siblings, 2 replies; 8+ messages in thread
From: David Miller @ 2009-02-26 13:24 UTC (permalink / raw)
  To: daniel.lezcano; +Cc: netdev

From: Daniel Lezcano <daniel.lezcano@free.fr>
Date: Thu, 26 Feb 2009 14:22:12 +0100

> I saw in net/ipv6/Kconfig a comment saying
> "IPv6 as module will cause a CRASH if you try to unload it".
> 
> If I refer to this comment, that means unloading of ipv6 is not
> supported (which makes sense), will it be one day supported?

It's very unlikely to be supported any time soon.

Maybe "one day" as in 5 years from now at the earliest.

It's just such an enormous set of problems to solve to make it work,
and there are so many more urgent issues to work on.

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

* Re: unloading the ipv6 module
  2009-02-26 13:24 ` David Miller
@ 2009-02-26 13:43   ` Daniel Lezcano
  2009-02-26 13:51     ` David Miller
  2009-02-26 18:09   ` Matti Aarnio
  1 sibling, 1 reply; 8+ messages in thread
From: Daniel Lezcano @ 2009-02-26 13:43 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

David Miller wrote:
> From: Daniel Lezcano <daniel.lezcano@free.fr>
> Date: Thu, 26 Feb 2009 14:22:12 +0100
>
>   
>> I saw in net/ipv6/Kconfig a comment saying
>> "IPv6 as module will cause a CRASH if you try to unload it".
>>
>> If I refer to this comment, that means unloading of ipv6 is not
>> supported (which makes sense), will it be one day supported?
>>     
>
> It's very unlikely to be supported any time soon.
>
> Maybe "one day" as in 5 years from now at the earliest.
>
> It's just such an enormous set of problems to solve to make it work,
> and there are so many more urgent issues to work on.
>   
I was wondering if it would have make sense to remove the unloading 
module code from ipv6 which is big at all and not testable.


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

* Re: unloading the ipv6 module
  2009-02-26 13:43   ` Daniel Lezcano
@ 2009-02-26 13:51     ` David Miller
  2009-02-26 14:01       ` Daniel Lezcano
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2009-02-26 13:51 UTC (permalink / raw)
  To: daniel.lezcano; +Cc: netdev

From: Daniel Lezcano <daniel.lezcano@free.fr>
Date: Thu, 26 Feb 2009 14:43:02 +0100

> I was wondering if it would have make sense to remove the unloading
> module code from ipv6 which is big at all and not testable.

The majority of that code is needed anyways for the module load
failure paths.

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

* Re: unloading the ipv6 module
  2009-02-26 13:51     ` David Miller
@ 2009-02-26 14:01       ` Daniel Lezcano
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Lezcano @ 2009-02-26 14:01 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

David Miller wrote:
> From: Daniel Lezcano <daniel.lezcano@free.fr>
> Date: Thu, 26 Feb 2009 14:43:02 +0100
>
>   
>> I was wondering if it would have make sense to remove the unloading
>> module code from ipv6 which is big at all and not testable.
>>     
>
> The majority of that code is needed anyways for the module load
> failure paths.
Right, I missed this point. I have my answer :)
 Thanks
  -- Daniel

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

* Re: unloading the ipv6 module
  2009-02-26 13:24 ` David Miller
  2009-02-26 13:43   ` Daniel Lezcano
@ 2009-02-26 18:09   ` Matti Aarnio
  2009-02-26 20:22     ` Stephen Hemminger
  2009-02-27  1:06     ` David Miller
  1 sibling, 2 replies; 8+ messages in thread
From: Matti Aarnio @ 2009-02-26 18:09 UTC (permalink / raw)
  To: David Miller; +Cc: daniel.lezcano, netdev

On Thu, Feb 26, 2009 at 05:24:11AM -0800, David Miller wrote:
> From: Daniel Lezcano <daniel.lezcano@free.fr>
> Date: Thu, 26 Feb 2009 14:22:12 +0100
> 
> > I saw in net/ipv6/Kconfig a comment saying
> > "IPv6 as module will cause a CRASH if you try to unload it".
> > 
> > If I refer to this comment, that means unloading of ipv6 is not
> > supported (which makes sense), will it be one day supported?
> 
> It's very unlikely to be supported any time soon.
> 
> Maybe "one day" as in 5 years from now at the earliest.

My guess is that somebody reasonably proficient coder with
a week of free time can get it to unload properly.

I did it once in 2.4 days, I recall..  Not completely, but mostly.

> It's just such an enormous set of problems to solve to make it work,
> and there are so many more urgent issues to work on.

Like refactoring the system to have IPv4 specific codes,
IPv6 specific codes, and common codes...   But DaveM has
probably other items in mind.

  /Matti Aarnio

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

* Re: unloading the ipv6 module
  2009-02-26 18:09   ` Matti Aarnio
@ 2009-02-26 20:22     ` Stephen Hemminger
  2009-02-27  1:06     ` David Miller
  1 sibling, 0 replies; 8+ messages in thread
From: Stephen Hemminger @ 2009-02-26 20:22 UTC (permalink / raw)
  To: Matti Aarnio; +Cc: David Miller, daniel.lezcano, netdev

On Thu, 26 Feb 2009 20:09:20 +0200
Matti Aarnio <matti.aarnio@zmailer.org> wrote:

> On Thu, Feb 26, 2009 at 05:24:11AM -0800, David Miller wrote:
> > From: Daniel Lezcano <daniel.lezcano@free.fr>
> > Date: Thu, 26 Feb 2009 14:22:12 +0100
> > 
> > > I saw in net/ipv6/Kconfig a comment saying
> > > "IPv6 as module will cause a CRASH if you try to unload it".
> > > 
> > > If I refer to this comment, that means unloading of ipv6 is not
> > > supported (which makes sense), will it be one day supported?
> > 
> > It's very unlikely to be supported any time soon.
> > 
> > Maybe "one day" as in 5 years from now at the earliest.
> 
> My guess is that somebody reasonably proficient coder with
> a week of free time can get it to unload properly.
> 
> I did it once in 2.4 days, I recall..  Not completely, but mostly.
> 
> > It's just such an enormous set of problems to solve to make it work,
> > and there are so many more urgent issues to work on.
> 
> Like refactoring the system to have IPv4 specific codes,
> IPv6 specific codes, and common codes...   But DaveM has
> probably other items in mind.
> 

The issue is the reference counting. IPV6 has some internal sockets
that stay open and hold therefore hold references to itself.
These reference counts must be accounted for and managed properly.

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

* Re: unloading the ipv6 module
  2009-02-26 18:09   ` Matti Aarnio
  2009-02-26 20:22     ` Stephen Hemminger
@ 2009-02-27  1:06     ` David Miller
  1 sibling, 0 replies; 8+ messages in thread
From: David Miller @ 2009-02-27  1:06 UTC (permalink / raw)
  To: matti.aarnio; +Cc: daniel.lezcano, netdev

From: Matti Aarnio <matti.aarnio@zmailer.org>
Date: Thu, 26 Feb 2009 20:09:20 +0200

> On Thu, Feb 26, 2009 at 05:24:11AM -0800, David Miller wrote:
> > It's just such an enormous set of problems to solve to make it work,
> > and there are so many more urgent issues to work on.
> 
> Like refactoring the system to have IPv4 specific codes,
> IPv6 specific codes, and common codes...   But DaveM has
> probably other items in mind.

The biggest problem is the reference counting of objects.

And if you make ipv6 sockets grab references to the ipv6 module,
the ipv6 module itself creates a few for ICMP6 processing, so
you somehow have to get rid of those in order for the module
unload to be invokable at all.

There are hundreds of cases like that you have to find solutions for
before you can cleanly unload ipv6.

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

end of thread, other threads:[~2009-02-27  1:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 13:22 unloading the ipv6 module Daniel Lezcano
2009-02-26 13:24 ` David Miller
2009-02-26 13:43   ` Daniel Lezcano
2009-02-26 13:51     ` David Miller
2009-02-26 14:01       ` Daniel Lezcano
2009-02-26 18:09   ` Matti Aarnio
2009-02-26 20:22     ` Stephen Hemminger
2009-02-27  1:06     ` David Miller

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).