Received: by 10.223.176.5 with SMTP id f5csp4017063wra; Tue, 30 Jan 2018 00:29:01 -0800 (PST) X-Google-Smtp-Source: AH8x226Km+EQX0CXUHYCgEnnOE8h6KFuBIUaagzIdJaZiwkka14nKvFJFNEWBRRXD5PKtj1c5avT X-Received: by 2002:a17:902:3083:: with SMTP id v3-v6mr24916549plb.426.1517300941373; Tue, 30 Jan 2018 00:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517300941; cv=none; d=google.com; s=arc-20160816; b=tsxcXSdRke+gCe8lxutWWzDPX/2EOTRZn9I7nN8lSpR3fUhyMgqQxSFZ3lVHFnfa0M 8FcJkiW4koTZVAn2XCkdRtbr5d6Rec2z5x35P39dg9ehbRO/WQXtR88rzOIH2q/75UDA /xrGjlaFuy7qQvD9/dZUwBiZPlSrjS8JNuaZ1e1Nlr0nI6ux/OhrNkuJlTskfhSwv78a z4gfTvpqIQYIsKaB0AddwDNzPEdaoDuJlJCRedzZ71daRjR7h3vBY1wCZDRx/43F8Y7F AVbomRKVHYIf9OD4ymbMxazylYg54YIUOgwOBKqHblZ+BtLcf4FF7qk4wMdb+IWTF3mB ouBg== 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:dkim-signature:arc-authentication-results; bh=jjrSeYaZzbSYHJquKYiHrFOOGtRDiWbD/ZSPu+5gwk0=; b=peusw0KqvIR99CT8Mv0WVp7J+LMl8ASvoeF1nXxwkBF8GC7JRQaF//gZ273PAtIGJP j8kEGK9BodhUg0GatP0rti7e5bqUT5zXXuINdiFSC8uWVDaRfxQY6WJCSBTvi5ft289+ 1C6z0g/t6zzv9R5H3aWysmmOv/bmYOIgvrtXbB5LSKg4rQuYFf1h1O2fNo9TLisuTknd RwE2IFkHJUKdRZnZf/e6RVEVqfSzewbbXpijqZy+Wlj6jNkyVVhOtWt55V26UGtMXrLt GfM/MttHm/PI2OOmDnT2+MZ+ksBXm4OFbL1xQRxYZyREgZl/hyHEPMBFmo7YdDbHrbVw jEIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=iRzgT6pw; 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 f184si2416754pgc.696.2018.01.30.00.28.46; Tue, 30 Jan 2018 00:29:01 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=iRzgT6pw; 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 S1751858AbeA3I2Y (ORCPT + 99 others); Tue, 30 Jan 2018 03:28:24 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32896 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628AbeA3I2V (ORCPT ); Tue, 30 Jan 2018 03:28:21 -0500 Received: by mail-wm0-f68.google.com with SMTP id x4so2477472wmc.0 for ; Tue, 30 Jan 2018 00:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jjrSeYaZzbSYHJquKYiHrFOOGtRDiWbD/ZSPu+5gwk0=; b=iRzgT6pwR968ks7AGP3AML61KFptQZ1tuyTQiP1sgJ4Ce8TF6w4cLC+iNDoJecY6sm 9YxHWHDm2EUMrirO7mCjUU7AjYipA8sF5cBSPFuaecEp7tYa3r+Jp9zCDYFMV5z+4GAW Sc2wLb9+8akWdzVL4hMD0QRzemN1EnZqWPCGNASjfyLO1HV4ju6aru7Drqj/1kuGPts3 lmQz9RutRrUcfI329/U+yduVLBDzSdDoJrBs4h98m20+eBVed6DZV5Y/1vparzBvLyJE cVPgvbbV0a3giTELYWFlzEAN/sMH1YOR9hOZbdnR61oE2GoQRA6csYeAS245yevvOxW8 OIpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jjrSeYaZzbSYHJquKYiHrFOOGtRDiWbD/ZSPu+5gwk0=; b=H/Q1Eh/adjDqLfDEsg88vjG34e9qakQIOA8M4QbkClmmKCQ/qNK135mdw6le3+re6v k4V45AlIVABq4Og+XWGSFmnD7Dxsy22qUzyOsXSmNj4p6PszLF+oWkWL9qDnwl6I2tJ/ Mlyg+Obp/QpnwJh6+RmfirzFqnch4F0NCsSh2qPWB4YdfaA0ZUV1GbnZmaAxipVe+HUP HDDY0KSoV6gvBC+lQ9wDk7XiWwlBxHZwK4g58ZnjCUkRY0/ycl5EPjjm0VPny5397Eaq U6Uzli1Y1agftxdiUoZNPLm0n6xhNhqWa2CWeWIzWLpv6T6GI8+HAacR9dQNgfGDtkkY nV4A== X-Gm-Message-State: AKwxytdIw4fPir62Kvc19wKYQUOGEbDsbGiO0nWzq6kIj9F+qmOKZTsx WbJH2Xg+MkhpI3/A1JKvlcjnmw== X-Received: by 10.80.142.172 with SMTP id w41mr51130731edw.275.1517300900591; Tue, 30 Jan 2018 00:28:20 -0800 (PST) Received: from node.shutemov.name ([178.122.80.211]) by smtp.gmail.com with ESMTPSA id q11sm7306033edj.64.2018.01.30.00.28.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 00:28:19 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 7EF5A648D520; Tue, 30 Jan 2018 11:28:17 +0300 (+03) Date: Tue, 30 Jan 2018 11:28:17 +0300 From: "Kirill A. Shutemov" To: Florian Westphal Cc: Michal Hocko , 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: <20180130082817.cbax5qj4mxancx4b@node.shutemov.name> 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: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 30, 2018 at 09:11:27AM +0100, 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. Well, IIUC they bound to net namespace life time, so killing all proccesses in the namespace would help to get memory back. :) -- Kirill A. Shutemov