Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1131640pxx; Fri, 30 Oct 2020 02:56:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxnt1aqpLihqMX5rHbS3fyQw2tfPpqwpvaTioldV3MNA4PrGqF2J4NIKD1fcLcvD83Lu7c X-Received: by 2002:a17:906:1614:: with SMTP id m20mr1562251ejd.258.1604051798374; Fri, 30 Oct 2020 02:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604051798; cv=none; d=google.com; s=arc-20160816; b=SMkUxp+5rZ6Jl/pEHrFZScp+ujZ5hKdTS/YHMs1xde583AbtmM5ClUHyZ7eyrxC6uH d7veD/4wuNBd6YiIMlraO7hEvBJBLV6WanmTM+LeiO3IGsp3cHYS/Y3YwulvxmgvWB7E 04ShQFCDBM6nVPpcyoPrC/VGOdriNixQWayHM5tq6fQfem3sIQETGxTgmBdfKlaucycZ REnMFbKcS6BMI/ezrHFjHXeD06SejVzrVCX6Z+b1etd1fguD8uiZK/mHdChsZlm4bTxd P144BEnFd6Q6tBxhRkmgHN2B/nGIe6nM7dyIkF10DzEn9LrxUSrs8SQDiiSNaVeIsxDw 9BaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=108EzPxn7j0K7nYYfC+roPMchwb0k82vUvNfcXPzB90=; b=hnkMPZojboWvRacHhHiR02rg5hDm135b1283NbJuhJZVLR9ayzS9tg33QR2hg+EAml gnQWIWx01fO+MXFcn6Vi4jJlrJaP2mTvpaqhvE17lqPKLWbi/95Q2l0ECiSh4+WvwbsZ gTR46f8vFlP3Z3WzPFXnQ0Yi6ihpMTo62FbRcSGgnrEjvBSkL/o1E8wjyUsInR0oUVw+ jxNeW9ZgIWWyakRqeeBiHbjqa7RV4koQkX9RESUq7oxjoNSDO0mwI0IiskE8EdBeF2NO hjDfJdFrczLC9bY/XTUVJPqfJRuxGRMSgzpuCs3lJmkr8y6ipthVc0QqtW/w5ydt2mKq nquA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ib+h24B9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc4si3535326ejb.200.2020.10.30.02.56.14; Fri, 30 Oct 2020 02:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ib+h24B9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726014AbgJ3Jx5 (ORCPT + 99 others); Fri, 30 Oct 2020 05:53:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgJ3Jx4 (ORCPT ); Fri, 30 Oct 2020 05:53:56 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E6BC0613CF for ; Fri, 30 Oct 2020 02:53:56 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id i21so3542128qka.12 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=erxLJeTDyBO6kt/sZlrkkJFxpqZsz1amcbqWLS7z8RDoKp82xcesGKGvtvU+AoIdov 7J2l7dO49gwmPnyBh4zVTeFmOtfeJwssA2ixbzlKIF5pU5n06Dpsq1Ec1EdpihSI1hZ7 rOMTEhntu3xutbazjMSeRWHgavwP8I3G6EOHv7dZ5CCOIPMOqpBgKK+/QpCzt3MjkqwD +fE/IAU2T7V2jYcF1w66tpcnDedynvR7WCx18gRj700MG8/YjnPRLTZQbSF7x012f7/s v6iGUBZ9zmyir9jO7YuiHMy+RviTVKBQi75RDLLGYAyBQxdnTEjNVtew/mUryJc9YHX4 JP7w== X-Gm-Message-State: AOAM5304RLrzggxgBXo8nMzhB5ruqxXdv5Kh0SV16qRZCSjZ2PvcYU+u VDbue/nVx9LKz1JxwlosqFj1RD7ZRDhz35T3POiqMg== 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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