Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp37300imb; Thu, 28 Feb 2019 15:13:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyxpUPjuQ7x1aTkJAfDDDyKY1JH2vqIpkoNEQCAknqWJSCA2PfGO4pdCsYJckRDuEPOCdhW X-Received: by 2002:a63:cf01:: with SMTP id j1mr1673588pgg.342.1551395614238; Thu, 28 Feb 2019 15:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551395614; cv=none; d=google.com; s=arc-20160816; b=HBc+hYsHVD/QMqtLlcz38s2NgntzkFXkRxpzjEpwMQH8p+wJT5jiuAKv20Jxt0tn90 0fZ7KrFMHn23Llc5KqPtBGEIiSzIUSu2s3DT9qs08AmGe1G6lhUNtxLdfuTb0cggVZ48 9DH3VaZSqe/YE4JRRHdCY5bvFGzCzLxfxQRiF+BLfm5WQxDGeBZTL5ZPpc1bKLNyIU17 c5W4QQciHchcPWa6j0HZMlggEs5CAWa8BAXRgM6ct5jLh44dTOs81dwyOkcMiHGKNEmW rMXBVHIga0r0srSFSFu7X5SsR5ng2JGEcrWzWb6DZEBmGvz0PkhgzNwbqlw7rxd9oI84 B3ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FTeX9wtexJUmONEYN0mhb1P2R1Q8ukcNJMPt2XCNpAw=; b=Q/vQf9h2SAWlA9Db+o0d+7HvmdAr+UMxOG3fedRJuHL3QCJv7Y+kGcSQcaXKZGtLig MJ9PP7IqVPn/m/1qXXJ8GO7FfNTsBReS8Xgy4b6i6CcV7QTnY/zy+jKMDre8hr62wmC8 Maz5J2ePStpxh/9DWgoWfE0eyxUV/qK8XBjUSmcQrm6lRJeL1GJgP2yoYUAbY6DFAix/ BmJaJcQSolOEZKre0YrmxqBksdclulZ8QENtYMAUFzTsptRUhJdrZXjz500W8QgCDOIh yN7HY4hjG+87nsOL/gj1wYVGDtgJF9WgRR4LDaxoLOk1/9zzdft00VF4KkMba+APOaZO rv9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=lPJDV17f; 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 e4si20715631plk.300.2019.02.28.15.13.18; Thu, 28 Feb 2019 15:13:34 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=lPJDV17f; 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 S1732271AbfB1TvI (ORCPT + 99 others); Thu, 28 Feb 2019 14:51:08 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:34228 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727601AbfB1TvH (ORCPT ); Thu, 28 Feb 2019 14:51:07 -0500 Received: by mail-io1-f66.google.com with SMTP id e1so17671233iok.1 for ; Thu, 28 Feb 2019 11:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FTeX9wtexJUmONEYN0mhb1P2R1Q8ukcNJMPt2XCNpAw=; b=lPJDV17fql2nEQ+oC5eqt4EvoutxiCesnKXyQ309QI7ub6Chnwv8xpqYFbnphspQ+l pj34VG58ikCTPDxeAlDDOMc4x/aDXpxa5Uc0OeVKGZ4JXNzbzqcvYiHTIHLrk8GB/u9x FUoftdUkwixa/WJPJNM/+W4UPb2l61X9AcFWFhsg4PTtGm2MpHcMGrr5t2ipiu1B+4/W 2YMLNShbImVYhKLJ1uEnLL2r6vbbeAicanbJoN9h6BJyAMrs1rKGErwfwVdWi/qQQv/j lXxtfVcIhjIod1mffgxxmfhe+i/Awtx+zw1deIUylEVnkHWnGPMp9bZNTo77zFZYCUR1 s8gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FTeX9wtexJUmONEYN0mhb1P2R1Q8ukcNJMPt2XCNpAw=; b=t1H2FIVsunuMVPPwShSVgcgwmmPdjMiqNRA6JW68tPkRFcd1rTyeSkU1eJ56rkpWuN iQlRDHlpSv+NwznEi5Buc4OHHgtKqHlRbT7vW/WCc8bP76XMEKEgwHVHaEM55QVTNJcs 0S43Ot26w1NMhn+8dnk+IO0uY25fcV8mjuynAwq06CqbHDSXhiRYlaHzzQU54VwL6ZTJ 93HoJJaqbD5gzIABA5nq9fZ3p1OF4wqw7/3XoSGtvSBL1mjMRuGn0C7JYs382cVGexKO YdC80MCxaPhgP/e4Hpcbqs3JzF7PqRq2ZAed5zx6P8JusyY0AB1UODdKIhfGDWAurWpz pcnQ== X-Gm-Message-State: APjAAAWmOcPoCPxHcQH3kSkPUBLIpJPZEnYo0K+hBVillJqLs2/c1Jyt +a4+507sP2lBVeocrtP/Tzn9Dg== X-Received: by 2002:a5e:9b0e:: with SMTP id j14mr666800iok.35.1551383466202; Thu, 28 Feb 2019 11:51:06 -0800 (PST) Received: from [192.168.1.158] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id t68sm3332555ita.4.2019.02.28.11.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 11:51:04 -0800 (PST) Subject: Re: BUG: Bad page state (6) To: Dmitry Vyukov Cc: Eric Biggers , syzbot , Andrew Morton , arunks@codeaurora.org, Dan Williams , Lance Roy , LKML , Linux-MM , Michal Hocko , nborisov@suse.com, Mike Rapoport , syzkaller-bugs , Vlastimil Babka , Matthew Wilcox , yuehaibing@huawei.com References: <00000000000024b3aa0582f1cde7@google.com> <20190228174250.GB663@sol.localdomain> <54e34bcb-7de7-4488-cead-3ea3a2b71ed7@kernel.dk> From: Jens Axboe Message-ID: <918aa0a6-09dd-7a4a-8de0-fda3d0855c38@kernel.dk> Date: Thu, 28 Feb 2019 12:51:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/28/19 10:53 AM, Dmitry Vyukov wrote: > On Thu, Feb 28, 2019 at 6:51 PM Jens Axboe wrote: >> >> On 2/28/19 10:42 AM, Eric Biggers wrote: >>> On Thu, Feb 28, 2019 at 11:36:21AM +0100, 'Dmitry Vyukov' via syzkaller-bugs wrote: >>>> On Thu, Feb 28, 2019 at 11:32 AM syzbot >>>> wrote: >>>>> >>>>> Hello, >>>>> >>>>> syzbot found the following crash on: >>>>> >>>>> HEAD commit: 42fd8df9d1d9 Add linux-next specific files for 20190228 >>>>> git tree: linux-next >>>>> console output: https://syzkaller.appspot.com/x/log.txt?x=179ba9e0c00000 >>>>> kernel config: https://syzkaller.appspot.com/x/.config?x=c0f38652d28b522f >>>>> dashboard link: https://syzkaller.appspot.com/bug?extid=6f5a9b79b75b66078bf0 >>>>> compiler: gcc (GCC) 9.0.0 20181231 (experimental) >>>>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12ed6bd0c00000 >>>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10690c8ac00000 >>>>> >>>>> IMPORTANT: if you fix the bug, please add the following tag to the commit: >>>>> Reported-by: syzbot+6f5a9b79b75b66078bf0@syzkaller.appspotmail.com >>>> >>>> +Jens, Eric, >>>> >>>> Looks similar to: >>>> https://groups.google.com/forum/#!msg/syzkaller-bugs/E3v3XQweVBw/6BPrkIYJIgAJ >>>> Perhaps the fixing commit is not in the build yet? >>>> >>>> >>>>> BUG: Bad page state in process syz-executor193 pfn:9225a >>>>> page:ffffea0002489680 count:0 mapcount:0 mapping:ffff88808652fd80 index:0x81 >>>>> shmem_aops >>>>> name:"memfd:cgroup2" >>>>> flags: 0x1fffc000008000e(referenced|uptodate|dirty|swapbacked) >>>>> raw: 01fffc000008000e ffff88809277fac0 ffff88809277fac0 ffff88808652fd80 >>>>> raw: 0000000000000081 0000000000000000 00000000ffffffff 0000000000000000 >>>>> page dumped because: non-NULL mapping >>>>> Modules linked in: >>>>> CPU: 0 PID: 7659 Comm: syz-executor193 Not tainted 5.0.0-rc8-next-20190228 >>>>> #45 >>>>> 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+0x172/0x1f0 lib/dump_stack.c:113 >>>>> bad_page.cold+0xda/0xff mm/page_alloc.c:586 >>>>> free_pages_check_bad+0x142/0x1a0 mm/page_alloc.c:1013 >>>>> free_pages_check mm/page_alloc.c:1022 [inline] >>>>> free_pages_prepare mm/page_alloc.c:1112 [inline] >>>>> free_pcp_prepare mm/page_alloc.c:1137 [inline] >>>>> free_unref_page_prepare mm/page_alloc.c:3001 [inline] >>>>> free_unref_page_list+0x31d/0xc40 mm/page_alloc.c:3070 >>>>> release_pages+0x60d/0x1940 mm/swap.c:794 >>>>> pagevec_lru_move_fn+0x218/0x2a0 mm/swap.c:213 >>>>> activate_page_drain mm/swap.c:297 [inline] >>>>> lru_add_drain_cpu+0x3b1/0x520 mm/swap.c:596 >>>>> lru_add_drain+0x20/0x60 mm/swap.c:647 >>>>> exit_mmap+0x290/0x530 mm/mmap.c:3134 >>>>> __mmput kernel/fork.c:1047 [inline] >>>>> mmput+0x15f/0x4c0 kernel/fork.c:1068 >>>>> exit_mm kernel/exit.c:546 [inline] >>>>> do_exit+0x816/0x2fa0 kernel/exit.c:863 >>>>> do_group_exit+0x135/0x370 kernel/exit.c:980 >>>>> __do_sys_exit_group kernel/exit.c:991 [inline] >>>>> __se_sys_exit_group kernel/exit.c:989 [inline] >>>>> __x64_sys_exit_group+0x44/0x50 kernel/exit.c:989 >>>>> do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 >>>>> entry_SYSCALL_64_after_hwframe+0x49/0xbe >>>>> RIP: 0033:0x442a58 >>>>> Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 >>>>> 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff >>>>> ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 >>>>> RSP: 002b:00007ffe99e2faf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 >>>>> RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442a58 >>>>> RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 >>>>> RBP: 00000000004c2468 R08: 00000000000000e7 R09: ffffffffffffffd0 >>>>> R10: 0000000002000005 R11: 0000000000000246 R12: 0000000000000001 >>>>> R13: 00000000006d4180 R14: 0000000000000000 R15: 0000000000000000 >>>>> >>>>> >>>>> --- >>>>> This bug 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 bug report. See: >>>>> https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with >>>>> syzbot. >>>>> syzbot can test patches for this bug, for details see: >>>>> https://goo.gl/tpsmEJ#testing-patches >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. >>>>> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/00000000000024b3aa0582f1cde7%40google.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. >>>> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CACT4Y%2BbyrcaasUaEJj%3DhcemEEBBkon%3DVC24gPwGXHzfeRP0E3w%40mail.gmail.com. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> It bisects down to the same patch ("block: implement bio helper to add iter bvec >>> pages to bio") so apparently it's just still broken despite Jens' fix. >>> >>> BTW, as this is trivially bisectable with the reproducer, I still don't see why >>> syzbot can't do the bisection itself and use get_maintainer.pl on the broken >>> patch to actually send the report to the right person: >>> >>> $ ./scripts/get_maintainer.pl 0001-block-implement-bio-helper-to-add-iter-bvec-pages-to.patch >>> Jens Axboe (maintainer:BLOCK LAYER) >>> linux-block@vger.kernel.org (open list:BLOCK LAYER) >>> linux-kernel@vger.kernel.org (open list) >>> >>> Spamming unrelated lists and maintainers not only prevents the bug from being >>> fixed, but it also reduces the average usefulness of syzbot reports which >>> teaches people to ignore them. >> >> Huh, weird. Where's the reproducer for this one? > > Under the "C reproducer" link. This doesn't reproduce for me, but I think that's because there was a bug in the mp_bvec_for_each_page() helper. I merged a fix for it this morning, should be fine after that. -- Jens Axboe