Received: by 10.223.176.5 with SMTP id f5csp4089674wra; Tue, 30 Jan 2018 01:52:16 -0800 (PST) X-Google-Smtp-Source: AH8x224gCM/KQIaD4fLYLDoK8mKi4feGV3ZNu1sFWtP7qGDo/d7htcoBVLrjOnXKwcea++mY6h7A X-Received: by 10.98.7.207 with SMTP id 76mr29169775pfh.130.1517305936744; Tue, 30 Jan 2018 01:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517305936; cv=none; d=google.com; s=arc-20160816; b=FdYxFm1p5ZLuDhvLpbU0E1lIJ41GyJCPswshL1xePV0YZRrLyXDx+977QZn6skbstO DJXaCKgdF5zu7Eq4l6DSDqytdsRHbaVvnZUBL1UoJlgDJ7lGZf44X+irzwJWequbIdCT kIEqOxAz2ieaPw6OJFppShC42QitIttzJJLXNVd4juOvHCbZ2vz79Su/YDFAAdRLFARP 14ZnpP/uu4RX5c6YSCxkg6dUaZIzrsA7jwBCWAxLgHbcwfY+L7qA/n0FWC0a24ZeDnhN IpDSETs/ITEHPA/DDS00PAz+ljhQBDoALxXkAxGjiYGNyvEi+zhKM9A3JLU8Sk5EJD3E fgQg== 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:arc-authentication-results; bh=eFzwtpgBhRXNUSo/iCX6dMtHPf6dhPPuZlIE5Epo7xM=; b=MIIM79tlpd146GHmmUvlgFx0GBO3/273JxWbE4dF67VPZMac8ROkj2hU0PANsa7z5k Knt7Rw6cvy0bSSNwxgV5IMTS+aigWw1zsQ4B7Uaqrqrdbltnp0Ian9UQC21BSIzZcavl 2rjtAkMAcn8e2TIDWulxrPj5ijkA/bvjSEnUNScc8VpocqXFSZIhqbJEgjAP9KmSBnrL 6/D9dbCYL8dXrGI1U8nxbuSpoY/7r51nIfngsGlKKPwMtYrcZpEGn9i0BJEJOIXTZZdE FXbJG+dikFPv1RUbgZA3+1lf2ei5tjArVv1+NllFBOAmDrcltmSvYTi2XqPnEaPF+n5+ nj8Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c41-v6si11250074plj.258.2018.01.30.01.52.01; Tue, 30 Jan 2018 01:52:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbeA3Jvj (ORCPT + 99 others); Tue, 30 Jan 2018 04:51:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:38045 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbeA3Jvh (ORCPT ); Tue, 30 Jan 2018 04:51:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 79CAEAE10; Tue, 30 Jan 2018 09:51:35 +0000 (UTC) Date: Tue, 30 Jan 2018 10:51:34 +0100 From: Michal Hocko To: Florian Westphal Cc: "Kirill A. Shutemov" , Tetsuo Handa , davem@davemloft.net, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, aarcange@redhat.com, yang.s@alibaba-inc.com, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org, mingo@kernel.org, linux-mm@kvack.org, rientjes@google.com, akpm@linux-foundation.org, guro@fb.com, kirill.shutemov@linux.intel.com Subject: Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2) Message-ID: <20180130095134.GU21609@dhcp22.suse.cz> References: <001a1144b0caee2e8c0563d9de0a@google.com> <201801290020.w0T0KK8V015938@www262.sakura.ne.jp> <20180129072357.GD5906@breakpoint.cc> <20180129082649.sysf57wlp7i7ltb2@node.shutemov.name> <20180129165722.GF5906@breakpoint.cc> <20180129182811.fze4vrb5zd5cojmr@node.shutemov.name> <20180129223522.GG5906@breakpoint.cc> <20180130075226.GL21609@dhcp22.suse.cz> <20180130081127.GH5906@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180130081127.GH5906@breakpoint.cc> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 30-01-18 09:11:27, Florian Westphal wrote: > Michal Hocko wrote: > > On Mon 29-01-18 23:35:22, Florian Westphal wrote: > > > Kirill A. Shutemov wrote: > > [...] > > > > I hate what I'm saying, but I guess we need some tunable here. > > > > Not sure what exactly. > > > > > > Would memcg help? > > > > That really depends. I would have to check whether vmalloc path obeys > > __GFP_ACCOUNT (I suspect it does except for page tables allocations but > > that shouldn't be a big deal). But then the other potential problem is > > the life time of the xt_table_info (or other potentially large) data > > structures. Are they bound to any process life time. > > No. > > > Because if they are > > not then the OOM killer will not help. The OOM panic earlier in this > > thread suggests it doesn't because the test case managed to eat all the > > available memory and killed all the eligible tasks which didn't help. > > Yes, which is why we do not want any OOM killer invocation in first > place... The problem is that as soon as you eat that memory and ask for more until you fail with ENOMEM then the OOM is simply unavoidable. -- Michal Hocko SUSE Labs