From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71A98C5517A for ; Fri, 30 Oct 2020 09:53:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B37F52076D for ; Fri, 30 Oct 2020 09:53:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ib+h24B9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B37F52076D Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BB3726B005D; Fri, 30 Oct 2020 05:53:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B3D806B006C; Fri, 30 Oct 2020 05:53:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A07896B006E; Fri, 30 Oct 2020 05:53:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0047.hostedemail.com [216.40.44.47]) by kanga.kvack.org (Postfix) with ESMTP id 70A7B6B005D for ; Fri, 30 Oct 2020 05:53:57 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0E15110FD6 for ; Fri, 30 Oct 2020 09:53:57 +0000 (UTC) X-FDA: 77428130514.18.party85_460bcbe27295 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id E4264100EC662 for ; Fri, 30 Oct 2020 09:53:56 +0000 (UTC) X-HE-Tag: party85_460bcbe27295 X-Filterd-Recvd-Size: 7050 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Fri, 30 Oct 2020 09:53:56 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id x20so4304714qkn.1 for ; Fri, 30 Oct 2020 02:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=108EzPxn7j0K7nYYfC+roPMchwb0k82vUvNfcXPzB90=; b=ib+h24B9b9KdUN10KNR756AdJuKUUNBQqX7bUs3iY8fdy3FGBR1InXFLMYVtDBqpji C4nSoKWogiJYYvT9it6wOpqmyLz2OMFAavojaAExNShK0TBjjJrgzBucddUC/TQ5haQn n1ozS0HloIiIPGB3OCy3hTh1VDsSAgsqZkdoE7RZeXciHJflc3ViQPmTMxiU2CT4Ybrm pzxIbHLD59oqqpFVa++LeztU10iRLow0STS52dciWMmHAuQjXBPMKCqtP+Y8DLwC/Z/I 8U6UZT7I2iTlV9uzyd9y1lK/saCqhhfh4jgjgmBDTU45Ld+KHqi+hqHzPl9k9s8IxTfM 4Yuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=108EzPxn7j0K7nYYfC+roPMchwb0k82vUvNfcXPzB90=; b=d5wmiRAzltUy6bhstXqW3C+y8LhJ1jc6/8W30dtv5C4TlftuUKmNis5VUA5YkMjy/4 pWOAsaVK588uF3Bft1IiEkwu0792hvSMwWiuzjqI/6dL8mtAI6JQBML/L5h889VNOk+4 IgfqS8HV0Je7X5K9lTxxqc1EUs5powMY+0TFkL+/n/cUhuXTOXrn4diBWoN0ZTIDgl4X +mg0J5VE7YzQlBaTd5VEF1Z1IvScQcsoGbL6dZ9w3w9Ret4z7dzgMdbeZnWLxa8wSKRQ NqeWly4SzBQBwtRu3Ec9Rklvhwzks1HtHEuQ8/smv+FOyrw9lJUz7vr/zO5lY/hfdcIP 5xiA== X-Gm-Message-State: AOAM531zUtwB0OMwdjSBh1qHKovvB83cwjNlyehj2Q4MLLEQXokMdOT9 GUbnwepAMMlblBkHPGWCJoamUJa4SAH4poD8styFPw== X-Google-Smtp-Source: ABdhPJxU+2ifbnq5tke4J0BG+Kx/CQVb1U9gaCgRZtmWGPbvZRUWISaC0glyUL87CS3NdsbrhLp2qT29KS2VfAlBPfY= X-Received: by 2002:a37:9747:: with SMTP id z68mr1203000qkd.424.1604051635590; Fri, 30 Oct 2020 02:53:55 -0700 (PDT) MIME-Version: 1.0 References: <000000000000c62c0205aa73a505@google.com> <20200715160426.225feefb@canb.auug.org.au> In-Reply-To: <20200715160426.225feefb@canb.auug.org.au> From: Dmitry Vyukov Date: Fri, 30 Oct 2020 10:53:44 +0100 Message-ID: Subject: Re: kernel panic: System is deadlocked on memory To: Stephen Rothwell Cc: Yafang Shao , syzbot , Andrew Morton , LKML , Linux MM , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jul 15, 2020 at 8:04 AM Stephen Rothwell wrote: > > Hi all, > > On Wed, 15 Jul 2020 13:54:04 +0800 Yafang Shao wrote: > > > > On Wed, Jul 15, 2020 at 12:49 PM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue on: > > > > > > HEAD commit: d31958b3 Add linux-next specific files for 20200710 > > > git tree: linux-next > > > console output: https://syzkaller.appspot.com/x/log.txt?x=11a2fe13100000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=3fe4fccb94cbc1a6 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=98be80110b9043885626 > > > compiler: gcc (GCC) 10.1.0-syz 20200507 > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=101ec967100000 > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14a77000900000 > > > > > > The issue was bisected to: > > > > > > commit e642d9be463d02c735cd99a9a904063324ee03d6 > > > Author: Yafang Shao > > > Date: Fri Jul 10 04:58:08 2020 +0000 > > > > > > mm, oom: make the calculation of oom badness more accurate > > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1432bd77100000 > > > final oops: https://syzkaller.appspot.com/x/report.txt?x=1632bd77100000 > > > console output: https://syzkaller.appspot.com/x/log.txt?x=1232bd77100000 > > > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > > Reported-by: syzbot+98be80110b9043885626@syzkaller.appspotmail.com > > > Fixes: e642d9be463d ("mm, oom: make the calculation of oom badness more accurate") > > > > > > Out of memory and no killable processes... > > > Kernel panic - not syncing: System is deadlocked on memory > > > CPU: 0 PID: 6810 Comm: syz-executor919 Not tainted 5.8.0-rc4-next-20200710-syzkaller #0 > > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > > > Call Trace: > > > __dump_stack lib/dump_stack.c:77 [inline] > > > dump_stack+0x18f/0x20d lib/dump_stack.c:118 > > > panic+0x2e3/0x75c kernel/panic.c:231 > > > out_of_memory mm/oom_kill.c:1106 [inline] > > > out_of_memory.cold+0xa6/0x182 mm/oom_kill.c:1041 > > > pagefault_out_of_memory+0x109/0x11c mm/oom_kill.c:1135 > > > mm_fault_error+0x123/0x380 arch/x86/mm/fault.c:930 > > > do_user_addr_fault+0x5f8/0xbf0 arch/x86/mm/fault.c:1317 > > > handle_page_fault arch/x86/mm/fault.c:1351 [inline] > > > exc_page_fault+0xab/0x170 arch/x86/mm/fault.c:1404 > > > asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:544 > > > RIP: 0033:0x40154d > > > Code: Bad RIP value. > > > RSP: 002b:00007ffddf4649b0 EFLAGS: 00010202 > > > RAX: 0000000000000001 RBX: 0000000000000000 RCX: fffffffffffffffd > > > RDX: 0000000000000001 RSI: 00007ffddf4665e0 RDI: ffffffffffffffff > > > RBP: 00007ffddf4665e0 R08: 0000000000000000 R09: 0000000000000001 > > > R10: 0000000000000064 R11: 0000000000000246 R12: ffffffffffffffff > > > R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 > > > Kernel Offset: disabled > > > Rebooting in 86400 seconds.. > > > > > > > > > --- > > > This report is generated by a bot. It may contain errors. > > > See https://goo.gl/tpsmEJ for more information about syzbot. > > > syzbot engineers can be reached at syzkaller@googlegroups.com. > > > > > > syzbot will keep track of this issue. See: > > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > syzbot can test patches for this issue, for details see: > > > https://goo.gl/tpsmEJ#testing-patches > > > > Thanks for the report. > > This issue has been already fixed by > > "mm-oom-make-the-calculation-of-oom-badness-more-accurate-v3", which > > is already in the -next tree. > > #syz fix: mm-oom-make-the-calculation-of-oom-badness-more-accurate-v3 The final patch title is: #syz fix: mm, oom: make the calculation of oom badness more accurate > -- > Cheers, > Stephen Rothwell