From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH v2 2/8] memcg: accounting for ip6_dst_cache Date: Mon, 15 Mar 2021 09:14:23 -0600 Message-ID: References: <8196f732-718e-0465-a39c-62668cc12c2b@virtuozzo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=N4xTXJC3aSsvD0Tu2z/4hlaOiEJQneTxtWXS9WYbxG8=; b=M1Ya5zZ20aqVyvZ85hmde/EHfI5AObsfSfDrA87a21Ht4oI1Zmm7fH6gB2LcmyOger q5nPekECsbI4RLwiNAbf7epVDO84pP9BILC1Cod74cIPrC4D11b9Z/XJpnlBQKDNkR1G H54YjO0tsu3nSrLroPjSz0POB6CSRemuxDjKupePjHPqZ+6qfBdKXJd4qcEnvrwRoZgQ FeBZ/6Fn5q+jBkVm9Ohigril5diIuurWSi0P3xRRda93d6oCv8kSdUj4bYDLNZToEC4f lT80xEJFVSZi8J1t9lsLAFOqJeEVkboy4N3FZ0ALelUqPjcL+K758wvqWHJz4SvxEqvh bK4w== In-Reply-To: <8196f732-718e-0465-a39c-62668cc12c2b-5HdwGun5lf+gSpxsJD1C4w@public.gmane.org> Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii" To: Vasily Averin , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Hocko Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Johannes Weiner , Vladimir Davydov , Shakeel Butt , "David S. Miller" , Hideaki YOSHIFUJI , Jakub Kicinski , David Ahern On 3/15/21 6:23 AM, Vasily Averin wrote: > An untrusted netadmin inside a memcg-limited container can create a > huge number of routing entries. Currently, allocated kernel objects > are not accounted to proper memcg, so this can lead to global memory > shortage on the host and cause lot of OOM kiils. > > This patches enables accounting for 'struct rt6_info' allocations. > --- > net/ipv6/route.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: David Ahern