2003-05-20 22:11:25

by Frank Victor Fischer

[permalink] [raw]
Subject: Problem with routing in the IPv6 stack

Hello out there,

I have encountered the following error message when trying to set up a
new entry in the IPv6 routing table with the command "ip -6 route add":

RTNETLINK answers: Cannot allocate memory

This has happened after I have had a working IPv6 configuration for
several days, and the error message is independent from the interface on
which I am trying to establish the route on.

No information at all has been recorded in the system logs by the
kernel, however I have straced the command which did not reveal any
useful information either. I backed up the results of the strace as well
as the /proc/net/ and /proc/sys/net/ trees, along with the ifconfig.

This occured the following platform:
AMD Duron 800 with 256 MB 133 MHz SDR-SDRAM
vanilla linux kernel 2.4.20 patches with XFS 1.2 and IPsec 1.98b.

I am not subscribed to the list so it would be most helpful if you
included me in the CC: list.

Thanks in advance,
Victor ([email protected])


2003-05-21 09:56:33

by FORT David

[permalink] [raw]
Subject: Re: Problem with routing in the IPv6 stack

Frank Victor Fischer wrote:

>Hello out there,
>
>I have encountered the following error message when trying to set up a
>new entry in the IPv6 routing table with the command "ip -6 route add":
>
>RTNETLINK answers: Cannot allocate memory
>
>This has happened after I have had a working IPv6 configuration for
>several days, and the error message is independent from the interface on
>which I am trying to establish the route on.
>
>No information at all has been recorded in the system logs by the
>kernel, however I have straced the command which did not reveal any
>useful information either. I backed up the results of the strace as well
>as the /proc/net/ and /proc/sys/net/ trees, along with the ifconfig.
>
>This occured the following platform:
>AMD Duron 800 with 256 MB 133 MHz SDR-SDRAM
>vanilla linux kernel 2.4.20 patches with XFS 1.2 and IPsec 1.98b.
>
>I am not subscribed to the list so it would be most helpful if you
>included me in the CC: list.
>
>Thanks in advance,
>Victor ([email protected])
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
I have the same message on my firewall with USAGI when the route to add
already exists. This
is when changing routes associated with an ipv6 tunnel, but the error
looks very related. This
may be system call that doesn't set properly errno, or ip which could be
buggy.

My 2 euro cents.

--
%------ -- This was sent by Djinn running Linux 2.4.21-rc1 -- ------------%


2003-05-23 08:57:39

by Robert Olsson

[permalink] [raw]
Subject: Problem with routing in the IPv6 stack


Frank Victor Fischer writes:

> I have encountered the following error message when trying to set up a
> new entry in the IPv6 routing table with the command "ip -6 route add":
>
> RTNETLINK answers: Cannot allocate memory
>
> This has happened after I have had a working IPv6 configuration for
> several days, and the error message is independent from the interface on
> which I am trying to establish the route on.
>
> vanilla linux kernel 2.4.20 patches with XFS 1.2 and IPsec 1.98b.


I've heard about this on 2.5.66 as well. /proc/slabinfo can give some clues.

Cheers.

--ro