From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by kanga.kvack.org (Postfix) with ESMTP id 5802C6B000C for ; Tue, 7 Aug 2018 15:30:27 -0400 (EDT) Received: by mail-ed1-f72.google.com with SMTP id y8-v6so65405edr.12 for ; Tue, 07 Aug 2018 12:30:27 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id h9-v6si673962edl.176.2018.08.07.12.30.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 12:30:26 -0700 (PDT) Date: Tue, 7 Aug 2018 21:30:24 +0200 From: Michal Hocko Subject: Re: [Bug 200651] New: cgroups iptables-restor: vmalloc: allocation failure Message-ID: <20180807193024.GJ10003@dhcp22.suse.cz> References: <20180730183820.GA24267@dhcp22.suse.cz> <56597af4-73c6-b549-c5d5-b3a2e6441b8e@icdsoft.com> <6838c342-2d07-3047-e723-2b641bc6bf79@suse.cz> <8105b7b3-20d3-5931-9f3c-2858021a4e12@icdsoft.com> <20180731140520.kpotpihqsmiwhh7l@breakpoint.cc> <20180801083349.GF16767@dhcp22.suse.cz> <20180802085043.GC10808@dhcp22.suse.cz> <20180807182355.yjbq3vixnvmajavr@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807182355.yjbq3vixnvmajavr@breakpoint.cc> Sender: owner-linux-mm@kvack.org List-ID: To: Florian Westphal Cc: Georgi Nikolov , Vlastimil Babka , Andrew Morton , bugzilla-daemon@bugzilla.kernel.org, linux-mm@kvack.org, netfilter-devel@vger.kernel.org On Tue 07-08-18 20:23:55, Florian Westphal wrote: > Michal Hocko wrote: > > Subject: [PATCH] netfilter/x_tables: do not fail xt_alloc_table_info too > > easilly > > [..] > > > - /* __GFP_NORETRY is not fully supported by kvmalloc but it should > > - * work reasonably well if sz is too large and bail out rather > > - * than shoot all processes down before realizing there is nothing > > - * more to reclaim. > > - */ > > - info = kvmalloc(sz, GFP_KERNEL | __GFP_NORETRY); > > + info = kvmalloc(sz, GFP_KERNEL | __GFP_ACCOUNT); > > if (!info) > > return NULL; > > Acked-by: Florian Westphal > > You can keep this acked-by in case you mangle this patch in a minor > way such as using GFP_KERNEL_ACCOUNT. Thanks! -- Michal Hocko SUSE Labs