This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: IPv6 & DHCP stack corruption
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: jkc at redhat dot com, eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: 02 Apr 2003 08:01:24 -0700
- Subject: Re: [ECOS] IPv6 & DHCP stack corruption
- References: <20030402084709.GJ19607@biferten.ma.tech.ascom.ch>
On Wed, 2003-04-02 at 01:47, Andrew Lunn wrote:
> Hi Ken, Gary, et al
>
> I found a problem with the dhcp client when IPv6 is enabled. In
> do_dhcp_down_net, if IPv6 is enabled two extra ioctl calls are
> made. This is being passed a struct ifreq. The comments in if.h
> suggests this should actually take struct if_laddrreq, which is
> bigger. During the ioctl, some addresses are copied into the
> structure, which is too small and so the stack is corrupted. This
> causes a crash on the synth target and will also affect any targets
> where the stack grows down in memory.
>
This looks correct to me. Please go ahead and apply this change.
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss