linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Vasily Averin <vasily.averin@linux.dev>
Cc: Florian Westphal <fw@strlen.de>,
	Jozsef Kadlecsik <kadlec@netfilter.org>,
	linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org,
	kernel@openvz.org
Subject: Re: [PATCH v2 RESEND] memcg: enable accounting for nft objects
Date: Mon, 28 Mar 2022 10:15:40 +0200	[thread overview]
Message-ID: <YkFurEyv2RNwWROw@salvia> (raw)
In-Reply-To: <47f5c00f-86e8-98b5-0cff-3b9fcadb590c@linux.dev>

On Thu, Mar 24, 2022 at 09:05:50PM +0300, Vasily Averin wrote:
> nftables replaces iptables, but it lacks memcg accounting.
> 
> This patch account most of the memory allocation associated with nft
> and should protect the host from misusing nft inside a memcg restricted
> container.

Applied to nf, thanks

I think nft_*.c files whose NFT_EXPR_STATEFUL flag is set on need to
use this _ACCOUNT flag variant for objects that are dinamically
allocated from the packet path.

  reply	other threads:[~2022-03-28  8:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220228122429.GC26547@breakpoint.cc>
2022-03-21  5:02 ` [PATCH v2] memcg: enable accounting for nft objects Vasily Averin
2022-03-22 10:25   ` Florian Westphal
2022-03-24 14:19   ` Pablo Neira Ayuso
2022-03-24 17:23     ` Vasily Averin
2022-03-24 18:05 ` [PATCH v2 RESEND] " Vasily Averin
2022-03-28  8:15   ` Pablo Neira Ayuso [this message]
2022-03-28  9:23     ` Vasily Averin
2022-03-31  8:40       ` [PATCH nft] nft: memcg accounting for dynamically allocated objects Vasily Averin
2022-03-31 18:45         ` Roman Gushchin
2022-04-01 12:03         ` Florian Westphal
2022-04-01 18:56           ` Vasily Averin
2022-04-01 19:31             ` Florian Westphal
2022-04-01 21:14               ` Roman Gushchin
2022-04-01 23:01                 ` Florian Westphal
2022-04-02  8:55               ` Vasily Averin
2022-04-02  9:50                 ` [PATCH v2] " Vasily Averin
2022-04-05  9:58                   ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YkFurEyv2RNwWROw@salvia \
    --to=pablo@netfilter.org \
    --cc=fw@strlen.de \
    --cc=kadlec@netfilter.org \
    --cc=kernel@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=vasily.averin@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).