Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp784543pxb; Tue, 5 Apr 2022 23:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAtC+bzT7s9M/lRBf/3vRonzvXBNpeyAgM1d4SaipDo/SmMWOM4sNIHGyUKMgJW5c0f/Mh X-Received: by 2002:a17:90a:b903:b0:1ca:be37:1d41 with SMTP id p3-20020a17090ab90300b001cabe371d41mr8243156pjr.9.1649225539840; Tue, 05 Apr 2022 23:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649225539; cv=none; d=google.com; s=arc-20160816; b=LManAcPm2+ZMV9dD4dAS0nC29UbwyFhyOT2FBZXXN7qKBdGqR2Ao093O8LeokoLoPs rJjCZWs4b5d4IUuaYSL1Ut/fEzTyyx9Z36DifMjBBw4n1Q2C9qGFbtJfgJ9ejyo1UadC ckXIgbbsIeMoHG60S+JblJiw/NuZQF/8kpDOuFgOOsWL++vFqSTc8zXI42qpaoZBN7yd qV7UkcQgea7SoZrF9Nlexf0UXYOvFf8tb0h2wJfMI5s7ypXIYDMh56EOD6iW7uoxtGgi kyAVrYO+cDR9nc/d3oUlrh9dP0DdKrUxYsy11I3WeHBJqwCbCslu1FDfzmqUEWH9mOK7 2ODA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/eEcKbp1fapzIfxpdnlmf29JX1AHFs1zzNRQiE4ulRY=; b=XSHDQgJs01kNBi/n4MqDo0j/z10QP6gdA28AQPwmpE7EJDa26yyYP4MQcKtnz0kObD O2bov1aX8v6G/UBfGJbOaYL+5E4uB2v57QLAhCTLmJ5Oke8YWI0WDh09rdJXzQrmhY4+ /D82oXT22LDHYznpnUG0Ur4BzRzh6EHqphIW0rwJlJJOvztMteRjtPqazutfRFuU+pg3 nNQbq4ROl+m+i+VRDRtlV545UIWY8C86fUdS14ULfS9LKleVqwtYo54P2gF2JozJaHh7 CuWwo7DU71J6QNU/1sMoISHEtockcT527vSuPe1U9HcMfFPD/5iS1ZIK0bnYT8FX7o2T WJ/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 9-20020a631749000000b003816043f12csi15330237pgx.801.2022.04.05.23.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 23:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1373B346954; Tue, 5 Apr 2022 22:59:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1588975AbiDFAR6 (ORCPT + 99 others); Tue, 5 Apr 2022 20:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354210AbiDEKMP (ORCPT ); Tue, 5 Apr 2022 06:12:15 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7947F5548E; Tue, 5 Apr 2022 02:58:52 -0700 (PDT) Received: from netfilter.org (unknown [78.30.32.163]) by mail.netfilter.org (Postfix) with ESMTPSA id 7C5DF6303B; Tue, 5 Apr 2022 11:55:13 +0200 (CEST) Date: Tue, 5 Apr 2022 11:58:48 +0200 From: Pablo Neira Ayuso To: Vasily Averin Cc: Florian Westphal , kernel@openvz.org, Jozsef Kadlecsik , netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Roman Gushchin Subject: Re: [PATCH v2] nft: memcg accounting for dynamically allocated objects Message-ID: References: <935e4270-9e0e-4cd0-ffb4-9c1eb3d9c56e@linux.dev> <121a6930-9ebd-e488-e109-273a403a93cb@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <121a6930-9ebd-e488-e109-273a403a93cb@linux.dev> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 02, 2022 at 12:50:37PM +0300, Vasily Averin wrote: > nft_*.c files whose NFT_EXPR_STATEFUL flag is set on need to > use __GFP_ACCOUNT flag for objects that are dynamically > allocated from the packet path. > > Such objects are allocated inside nft_expr_ops->init() callbacks > executed in task context while processing netlink messages. > > In addition, this patch adds accounting to nft_set_elem_expr_clone() > used for the same purposes. Applied to nf, thanks