Thread (6 messages) 6 messages, 5 authors, 2021-09-30

Re: [PATCH] ipv6: enable net.ipv6.route sysctls in network namespace

flat view

From: David Ahern <hidden>
Date: 2021-09-25 15:26:57

On 9/21/21 9:32 AM, Florian Westphal wrote:
Jakub Kicinski [off-list ref] wrote:
quoted
On Tue, 21 Sep 2021 09:22:04 +0300 Alexander Kuznetsov wrote:
quoted
We want to increase route cache size in network namespace
created with user namespace. Currently ipv6 route settings
are disabled for non-initial network namespaces.
Since routes are per network namespace it is safe
to enable these sysctls.
Are routes accounted towards memcg or something like that?

Otherwise userns could start eating up memory by cranking the limit
up to 11 and just adds a gazillion routes?
Adding FIB entries I believe is now handled after commit:

commit 6126891c6d4f6f4ef50323d2020635ee255a796e
Author: Vasily Averin [off-list ref]
Date:   Mon Jul 19 13:44:31 2021 +0300

    memcg: enable accounting for IP address and routing-related objects


The ip6_rt_max_size sysctl manages the number of dst entries (cached
dst's and exceptions) that can be created, and there should be some
limit that network namespace users can not exceed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help