Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp826821qtg; Thu, 6 Apr 2023 02:31:53 -0700 (PDT) X-Google-Smtp-Source: AKy350aZnYCY9uSiPE6depwXuQGym9yB/uOPDQFIyMyJPhvVGTfwc6Z75L1RUC4vuClKFxa+Pvd7 X-Received: by 2002:aa7:da0d:0:b0:4fc:c6fe:1d3a with SMTP id r13-20020aa7da0d000000b004fcc6fe1d3amr4186131eds.22.1680773513627; Thu, 06 Apr 2023 02:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680773513; cv=none; d=google.com; s=arc-20160816; b=ZOoH4OucwL3+HTMoRR6/sA2pHnQGwFMQm80rwgpzYpX6cTf2DDTJFy6iRUytPNbabB gLj5NyZj3GgnBe/UsEdtrHBceGKnItmdbwkGLQxm3s34icHZPjTyp2qW1p8UVPvw9ZpR I5QPFMyQxrq87kAw4ob1xi52+3iMGErFjJ7feprEnqX0pdu9M0a6frImPAh94KjKKete IW/SwfrP+T4vcgJpurTToaKcooSf3Iwo7E7cGK7VV9tUyQMq3OvUFzS6ScP9HmVhfH/T EcGEgiWeeEezcKqb5zdU7dtsZGdYuDIskCZoSh8td+qdN4ia6ys6cw9HNS+zoiGTdAdd 5Q9Q== 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=+QSKJZIvSBI9FJrDDFAup9kSmTcHTJbpGcD4bh1jGT4=; b=w7ve0C4UbuKT4DpCaCCUXBJW8BABSREsHIro5iZEmCfZFHMIhOX6U3KreZCOj8f+KL QuPkCsNJ631tpEnhTyuez/nNANugKxk6oAw9FLfPjRYNYoqM07ARlqps9ZQRDfQ/jvON poPeETBZF8mtVZQXCsK7swoUU0X791/qymfrkJJmOtIhwRpNGaU5znhhcXLV2n7rIy3N YC/dUVATRHdUh1hbCTvNpbMw0FIUKS1Z1w7YFk+/w9M0qO44sd1/KIKJ88uKW2MLSISc EadJ+XQNWS5CqTq8kAU5s0YwUo8IyxOQ7DWrlgqi0t8YrmaHwkcI7il+UGDUrwbf3ruA HaTw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020aa7c544000000b005002c6f2f0asi897575edr.124.2023.04.06.02.31.29; Thu, 06 Apr 2023 02:31:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236182AbjDFJXP (ORCPT + 99 others); Thu, 6 Apr 2023 05:23:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233391AbjDFJXN (ORCPT ); Thu, 6 Apr 2023 05:23:13 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D5B01BC5; Thu, 6 Apr 2023 02:23:13 -0700 (PDT) Date: Thu, 6 Apr 2023 11:23:09 +0200 From: Pablo Neira Ayuso To: Chen Aotian Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kadlec@netfilter.org, edumazet@google.com, coreteam@netfilter.org, netfilter-devel@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net Subject: Re: [netfilter-core] [PATCH] netfilter: nf_tables: Modify nla_memdup's flag to GFP_KERNEL_ACCOUNT Message-ID: References: <20230406040151.1676-1-chenaotian2@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Thu, Apr 06, 2023 at 11:21:50AM +0200, Pablo Neira Ayuso wrote: > On Thu, Apr 06, 2023 at 12:01:51PM +0800, Chen Aotian wrote: > > For memory alloc that store user data from nla[NFTA_OBJ_USERDATA], > > use GFP_KERNEL_ACCOUNT is more suitable. > > > > Fixes: 33758c891479 ("memcg: enable accounting for nft objects") > > > Signed-off-by: Chen Aotian BTW, this patch is intended for nf.git, I'll apply it now.