Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1720130imu; Thu, 10 Jan 2019 01:43:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN4DJe6rBDRtaTL7PqN5nSHqGeKmIqZ0T419Kr8LV3iEy+Lv/wIM3E2q4Or4vBPHI8TnSE4L X-Received: by 2002:a63:4b25:: with SMTP id y37mr6724572pga.181.1547113387955; Thu, 10 Jan 2019 01:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547113387; cv=none; d=google.com; s=arc-20160816; b=xlaLbHqmHceL4QAkV6fm8Y9N8hhKCD4O4y4QI5D8TZEvuoRO6CHlTV+DDni2Vst9hZ Hv9ge45UzCyY+NqJDJBcoF81Pna6dGm2gcF1LumLvaT0EfOyzmKrR4Rb3MlL7dqgxEGH mR5vTksGOHtpxaGTW/7Av1prD6DNAuO79VPrQeEt9cu1WrQo+NYc0R6wOEjciCYnzSov Zg++s1qJUiimr1Qh0dRazzcyvkje+Tn57G1fu+Z/yFyvCm0fEXGTYaTAZ0KybvF6dYlN xHBzxzl8Ed4S1jNtaRG7iBRdiSaMq55R7kK8xekgq9gL667MtaNjWQv/7rAqtSF7RjMD mTDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tojwo8PAoyyp8SWvRp5ZsEIq4k7zugJTprVk4na4rFY=; b=AspE5K6qmTnkdfvTn/OXjr411TJXhKhEkPl3iK7RO6er8K9+S5duy9zTOdrL+FtONG vIUIUsCaPk1dZwJ6tfT2S5h/8okoy+Sm0rVBJFkJQHIozBR2Zc8CS7nFchgc2fIOu+Sp lsBL3pNJsS7AScRvM7K3UgTcgYL56tN/AQopDzjl7leQUGGrZpfBoh4XGWGWgXhN5gfV uY4u8heTprtu6BE1tajgldWja8HUD/cQwwBNOaqbNkB1ePHaoIKSvvCQJv1awZ6lrb0D 2wE1f3HLrW6KWRIn2ljO4wFmTavB0XFcQ548Gz6lZRMkuB23TQM050lXNIiDNE0nyOQ+ mXQA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si7868656plb.3.2019.01.10.01.42.52; Thu, 10 Jan 2019 01:43:07 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbfAJJlp (ORCPT + 99 others); Thu, 10 Jan 2019 04:41:45 -0500 Received: from mx2.suse.de ([195.135.220.15]:59840 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727889AbfAJJlp (ORCPT ); Thu, 10 Jan 2019 04:41:45 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 95F89ADBD; Thu, 10 Jan 2019 09:41:43 +0000 (UTC) Date: Thu, 10 Jan 2019 10:41:42 +0100 From: Michal Hocko To: Kirill Tkhai 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 Subject: Re: [PATCH v2] netfilter: account ebt_table_info to kmemcg Message-ID: <20190110094142.GI31793@dhcp22.suse.cz> References: <20190103031431.247970-1-shakeelb@google.com> <5cc8efad-9d3d-3136-3ddc-1f8a640cb1f8@virtuozzo.com> <2d8f28cb-8620-be05-21bc-dcf3009b2774@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d8f28cb-8620-be05-21bc-dcf3009b2774@virtuozzo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Michal Hocko SUSE Labs