Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1724979imu; Thu, 10 Jan 2019 01:49:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5HOgTNVDeSr0WiPJ6BdWppjezJCkoFwkJ3TnxXAIy5zvBnxpkFNpRnYxSlO/xNLgbxv/Q5 X-Received: by 2002:a63:d34a:: with SMTP id u10mr8860203pgi.301.1547113793239; Thu, 10 Jan 2019 01:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547113793; cv=none; d=google.com; s=arc-20160816; b=wqcDNt5BAH77hs1tLr5HmqEi31PHeF3QIdnYFJm5JmAvgRtgb19+n09x4ZLyN5rkxS JiojtkdkI7q7xSAwAgPkbl0hg+3CBNuFv20S8+JLyxAY3BrreBYn60HFvDiz1jNi+cKn Ea9w/VcE1qJIxcXEdvCfJpvz1hF0wVcZaaBEbLQRdPlRXLNwdnwuHP/HfCqOWUzSMlPY oNY/Zkg41BnpG1nA8jwXjTCgAlhMpthKICY73msi0MbMt/tp0FCjaMTkxArJLUoXaS2Z SR0kmUDKsmxqsPbUI2PTR84nT97NypukScEF4xJeeJ4Llpn9GLk0rVKey/bL2eClNcXZ QpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=q6Y9z+Xnjah+WQEcJDLogufozrBuDWjQcfPzSFcE/5I=; b=jjZjklGmw3assOqM5FDZbpT6HpelOB/wo9HEQrPKlPoz1YH10f+JTvhLe9u1iQyGHJ 8DLmM4jGIsgljySubO8NVMTt/0NF7Mx2kUBdkvodTVaLIYx94x3NyDlt6I/KyEKSAsZd h8Gv5usfIFzDj17TzXV0yAHVY6CeGEZSD3Y1bMsmJA2IMeqBl3uZ5d1YuwevhnWe0t+R CmiunUknE7kaNr2Z/26k1Grtpj7d31I/siC+JvaM785dlmysboA3Dr4eFcJl79CiAZym /Uka0iCf7OLZxN8GXhjLGGn/+zvujuqKfexopoxJt799YOs0zi+46Px5thEae15qZwe1 76IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si34273417pgj.171.2019.01.10.01.49.37; Thu, 10 Jan 2019 01:49:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbfAJJsW (ORCPT + 99 others); Thu, 10 Jan 2019 04:48:22 -0500 Received: from relay.sw.ru ([185.231.240.75]:55706 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbfAJJsW (ORCPT ); Thu, 10 Jan 2019 04:48:22 -0500 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1ghWwk-0003FI-9b; Thu, 10 Jan 2019 12:48:18 +0300 Subject: Re: [PATCH v2] netfilter: account ebt_table_info to kmemcg To: Michal Hocko Cc: Shakeel Butt , Andrew Morton , Florian Westphal , linux-mm@kvack.org, linux-kernel@vger.kernel.org, syzbot+7713f3aa67be76b1552c@syzkaller.appspotmail.com, Pablo Neira Ayuso , Jozsef Kadlecsik , Roopa Prabhu , Nikolay Aleksandrov , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org References: <20190103031431.247970-1-shakeelb@google.com> <5cc8efad-9d3d-3136-3ddc-1f8a640cb1f8@virtuozzo.com> <2d8f28cb-8620-be05-21bc-dcf3009b2774@virtuozzo.com> <20190110094142.GI31793@dhcp22.suse.cz> From: Kirill Tkhai Message-ID: <4c8051dd-2214-49eb-a342-5ee2171665d1@virtuozzo.com> Date: Thu, 10 Jan 2019 12:48:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190110094142.GI31793@dhcp22.suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.01.2019 12:41, Michal Hocko wrote: > On Thu 10-01-19 12:22:09, Kirill Tkhai wrote: > [...] >>>> diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c >>>> index 491828713e0b..5e55cef0cec3 100644 >>>> --- a/net/bridge/netfilter/ebtables.c >>>> +++ b/net/bridge/netfilter/ebtables.c >>>> @@ -1137,14 +1137,16 @@ static int do_replace(struct net *net, const void __user *user, >>>> tmp.name[sizeof(tmp.name) - 1] = 0; >>>> >>>> countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; >>>> - newinfo = vmalloc(sizeof(*newinfo) + countersize); >>>> + newinfo = __vmalloc(sizeof(*newinfo) + countersize, GFP_KERNEL_ACCOUNT, >>>> + PAGE_KERNEL); >> >> Do we need GFP_HIGHMEM here? > > No. vmalloc adds __GPF_HIGHMEM implicitly (see __vmalloc_area_node). Then OK, thanks for the explanation. Kirill