[ECOS] IPv6 & DHCP stack corruption

Gary Thomas gary@mlbassoc.com
Wed Apr 2 15:01:00 GMT 2003


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@mlbassoc.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



More information about the Ecos-discuss mailing list