Received: by 10.223.176.5 with SMTP id f5csp2545001wra; Sun, 28 Jan 2018 23:27:50 -0800 (PST) X-Google-Smtp-Source: AH8x2260hIbx6TIo97+IjxDbHUM93+98RZRWpLSi6BE9LWIaUpxMgiflLewzUOp7K643MQsOq8ua X-Received: by 2002:a17:902:64d6:: with SMTP id y22-v6mr21189352pli.444.1517210870802; Sun, 28 Jan 2018 23:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517210870; cv=none; d=google.com; s=arc-20160816; b=jt8Skh9BxZcaxj2Si3/BL1+iv4aiziWuk7k3KDsAE395+n9kzMYo/s7kf++dMmDS3M aBOPUMxPWHiIpCE5GSSmzE6l5AcBSwc6LYUcdRGhqAQ2WvQKI+JcOc90K/xVKlLAtHS3 4A4cpbcvas+PaZzbVKkBz0H6ykphUXEy/saqSHIR/XvyNNps6kMioxotYB00MjHd94vy t4TIQgDOOUjyA5j3+4pmGXXz+4TRaQWo3P9BucUlRbZBTHyz6iIvGecVljEFkk/kLFiv JOlmjG8ToctoeLAUm7ySxAmawmz39I5cmNbYdqqzBSUYRtFCTwm4/QkvqwS+WzsDYCUu 5U6A== 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=yE4hglKZmPb3Xxcl+UxmCL2mPGooqUKyE2ix6JhziQg=; b=P8N4gwpM/UU0J7AR594M4c5jURklmDUHt7JGZeMiL1U8lAuyfM+obuF1xPXunTFxqb mFtQfiXdWa+ck1Mtq1IsPED+HF8zG4jig0XartGUfEneRymTz0PDLe6mw1UvyGPVrV7I LQpm8nwHqBZc2iDpuq/Ve9MBfR5Au9qCShCL/ryUV9kTUHzxlVaEqKy3GQB+EEJacKSE mceWGeFycqJ9vFtY9vEA6Pt0n+3Tfjm4DEkDdopMwb+BLeiq+3vgO6sNg5ecri+nPwDR tn+B1ja50u4nCYEF1txJ0AaeK2qHjC++m0kHGTBBVXu3ARxTiJyg03RPLfpjg2VHv8CB QOlg== 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 f4si6946651pgn.561.2018.01.28.23.27.36; Sun, 28 Jan 2018 23:27:50 -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 S1751429AbeA2H1H (ORCPT + 99 others); Mon, 29 Jan 2018 02:27:07 -0500 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:36660 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330AbeA2H1G (ORCPT ); Mon, 29 Jan 2018 02:27:06 -0500 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.84_2) (envelope-from ) id 1eg3nJ-0006qn-5J; Mon, 29 Jan 2018 08:23:57 +0100 Date: Mon, 29 Jan 2018 08:23:57 +0100 From: Florian Westphal To: Tetsuo Handa Cc: davem@davemloft.net, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, aarcange@redhat.com, yang.s@alibaba-inc.com, mhocko@suse.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: <20180129072357.GD5906@breakpoint.cc> References: <001a1144b0caee2e8c0563d9de0a@google.com> <201801290020.w0T0KK8V015938@www262.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201801290020.w0T0KK8V015938@www262.sakura.ne.jp> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tetsuo Handa wrote: > syzbot wrote: > > syzbot hit the following crash on net-next commit > > 6bb46bc57c8e9ce947cc605e555b7204b44d2b10 (Fri Jan 26 16:00:23 2018 +0000) > > Merge branch 'cxgb4-fix-dump-collection-when-firmware-crashed' > > > > C reproducer is attached. > > syzkaller reproducer is attached. > > Raw console output is attached. > > compiler: gcc (GCC) 7.1.1 20170620 > > .config is attached. > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > Reported-by: syzbot+8630e35fc7287b392aac@syzkaller.appspotmail.com > > It will help syzbot understand when the bug is fixed. See footer for > > details. > > If you forward the report, please keep this part and the footer. > > > > [ 3685] 0 3685 17821 1 184320 0 0 sshd > > [ 3692] 0 3692 4376 0 32768 0 0 > > syzkaller025682 > > [ 3695] 0 3695 4376 0 36864 0 0 > > syzkaller025682 > > Kernel panic - not syncing: Out of memory and no killable processes... > > > > This sounds like too huge vmalloc() request where size is controlled by userspace. Right. Before eacd86ca3b036e55e172b7279f101cef4a6ff3a4 this used info = __vmalloc(sz, GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY, would it help to re-add that? > vmalloc() once became killable by commit 5d17a73a2ebeb8d1 ("vmalloc: back > off when the current task is killed") but then became unkillable by commit > b8c8a338f75e052d ("Revert "vmalloc: back off when the current task is > killed""). Therefore, we can't handle this problem from MM side. > Please consider adding some limit from networking side. I don't know what "some limit" would be. I would prefer if there was a way to supress OOM Killer in first place so we can just -ENOMEM user. AFAIU NOWARN|NORETRY does that, so I would propose to just read-add it?