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=-13.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,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 37FE4C433FE for ; Mon, 20 Sep 2021 07:43:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C832A60FF2 for ; Mon, 20 Sep 2021 07:43:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C832A60FF2 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 4B471940007; Mon, 20 Sep 2021 03:43:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 43CC9900002; Mon, 20 Sep 2021 03:43:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2915A940007; Mon, 20 Sep 2021 03:43:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0073.hostedemail.com [216.40.44.73]) by kanga.kvack.org (Postfix) with ESMTP id 17BE6900002 for ; Mon, 20 Sep 2021 03:43:01 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id CA6B4181AEF3C for ; Mon, 20 Sep 2021 07:43:00 +0000 (UTC) X-FDA: 78607160520.02.50A7FF8 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by imf26.hostedemail.com (Postfix) with ESMTP id 848DA20019F2 for ; Mon, 20 Sep 2021 07:43:00 +0000 (UTC) Received: by mail-oi1-f177.google.com with SMTP id o66so20942383oib.11 for ; Mon, 20 Sep 2021 00:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=49jVXnghB6poIDSvM4LgKCb9bcAvYA/ir6Ru3tRkU/8=; b=fK2ik8Zisaqc+Z856BI2UOSShF5hzyv/VJz+1sK982FVD55sBfOWRXC6n2q37lYi7B 8rPL9WQn7h2AashaaxxCK+HzikrDy/v3+XJkJTNo3mw52KeKvy0dUWUtTGIV7cihSZQe 1ulSLHdXj1a2e6eHX3o4oxA1im/5DZju7GIUUGdbcvIddRMeQUyNMtRi2YxWCl/5SVEH IdMJtuTzz1SDaEu/ZxcgR4oEHzpbKuJqH89i1yQRdWezIO95pipirW93FcYBI/m+Ie/p lAk/zyJ5n2TAZbhErlkkE+4ckQeUDOjZz/KIUuArADemcX0/KC82OEmUlEahi9+Ert74 fIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=49jVXnghB6poIDSvM4LgKCb9bcAvYA/ir6Ru3tRkU/8=; b=aXF4LHh1t0A4ocattA95N1riP2ud0+8tFeJSxA9CbWv+Mg8N0QP44gSYmGBFMRk6z8 4/r8vnUd/zDL2z6S+iIXpRCsrYI2+f5Rl/i5R52+X1K2XkxiPMOXonA8OPyFlfmfPBvG MVAaywV+bTFz7nqcfpATmhEwlZJxWQgGLrTR1Ip/2BmVZp3lHxBPFXitZi6o5ZQpXnMx NYtklKVm3E4EmKGIAXq6GHx3XQ1XlfPSnNcKK1beE8VL5M+xPcKEM1VINOv0AHY9stwD FNRVxfDD+5pYPn4nca/jIzj9PGtczJ64QabANpR0gv5GEYfGw7ILA+nHQQfKjKvtzl5V wXSw== X-Gm-Message-State: AOAM5339O2Al+lCR30eXKShpTc75XkFp9VXOB6CAf+1xAdZUhun+PWHQ DcSJBweOzKs35mpktY/uYaq5GpUHMyZOGNz9FQvR9w== X-Google-Smtp-Source: ABdhPJx/OxO/zcoKfTxTeh9Zg6lY+fddmYbXlrVzs+a0ThwElWA9OrFLs5x6CdzZqU1oCcYROchxu05dfuzCJ4mZpxI= X-Received: by 2002:aca:3083:: with SMTP id w125mr3109358oiw.109.1632123779609; Mon, 20 Sep 2021 00:42:59 -0700 (PDT) MIME-Version: 1.0 References: <00000000000020104105cc685624@google.com> In-Reply-To: <00000000000020104105cc685624@google.com> From: Dmitry Vyukov Date: Mon, 20 Sep 2021 09:42:48 +0200 Message-ID: Subject: Re: [syzbot] kernel BUG in __free_one_page To: syzbot , Jens Axboe , Pavel Begunkov , io-uring@vger.kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: obt1jiwzmjj1gd941erjc6whg1q86kjc Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=fK2ik8Zi; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of dvyukov@google.com designates 209.85.167.177 as permitted sender) smtp.mailfrom=dvyukov@google.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 848DA20019F2 X-HE-Tag: 1632123780-735530 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 Mon, 20 Sept 2021 at 09:36, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: d4d016caa4b8 alpha: move __udiv_qrnnd library function to .. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1564ae79300000 > kernel config: https://syzkaller.appspot.com/x/.config?x=6d93fe4341f98704 > dashboard link: https://syzkaller.appspot.com/bug?extid=afe1d3c5ccb5940c372a > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+afe1d3c5ccb5940c372a@syzkaller.appspotmail.com Looking at the page description printed before the BUG in the console output, I think the root cause is in +io_uring. > io_mem_free.part.0+0xf7/0x140 fs/io_uring.c:8708 > io_mem_free fs/io_uring.c:8703 [inline] > io_ring_ctx_free fs/io_uring.c:9250 [inline] > io_ring_exit_work+0xf20/0x1980 fs/io_uring.c:9408 > process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297 > worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 > kthread+0x3e5/0x4d0 kernel/kthread.c:319 > ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 > ------------[ cut here ]------------ > kernel BUG at mm/page_alloc.c:1073! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.15.0-rc1-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > Workqueue: mm_percpu_wq vmstat_update > RIP: 0010:__free_one_page+0xa10/0xe30 mm/page_alloc.c:1073 > Code: 43 34 85 c0 0f 84 79 f9 ff ff 48 c7 c6 80 1b 97 89 48 89 ef e8 61 dd f6 ff 0f 0b 48 c7 c6 60 1a 97 89 4c 89 ef e8 50 dd f6 ff <0f> 0b 0f 0b 48 c7 c6 c0 1a 97 89 4c 89 ef e8 3d dd f6 ff 0f 0b 48 > RSP: 0018:ffffc90000ca7968 EFLAGS: 00010093 > RAX: 0000000000000000 RBX: ffffc90000ca7a60 RCX: 0000000000000000 > RDX: ffff888010e40000 RSI: ffffffff81b2f6b0 RDI: 0000000000000003 > RBP: 0000000000152200 R08: 0000000000000018 R09: 00000000ffffffff > R10: ffffffff88f44b19 R11: 00000000ffffffff R12: 0000000000000009 > R13: ffffea0005488000 R14: 0000000000000000 R15: ffff88823fff8e00 > FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020000000 CR3: 0000000036db1000 CR4: 00000000001526f0 > Call Trace: > free_pcppages_bulk+0x533/0x8a0 mm/page_alloc.c:1537 > drain_zone_pages+0x173/0x440 mm/page_alloc.c:3079 > refresh_cpu_vm_stats+0x355/0x5d0 mm/vmstat.c:874 > vmstat_update+0xe/0xa0 mm/vmstat.c:1910 > process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297 > worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 > kthread+0x3e5/0x4d0 kernel/kthread.c:319 > ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 > Modules linked in: > ---[ end trace e038b7c668ec2f59 ]--- > RIP: 0010:__free_one_page+0xa10/0xe30 mm/page_alloc.c:1073 > Code: 43 34 85 c0 0f 84 79 f9 ff ff 48 c7 c6 80 1b 97 89 48 89 ef e8 61 dd f6 ff 0f 0b 48 c7 c6 60 1a 97 89 4c 89 ef e8 50 dd f6 ff <0f> 0b 0f 0b 48 c7 c6 c0 1a 97 89 4c 89 ef e8 3d dd f6 ff 0f 0b 48 > RSP: 0018:ffffc90000ca7968 EFLAGS: 00010093 > RAX: 0000000000000000 RBX: ffffc90000ca7a60 RCX: 0000000000000000 > RDX: ffff888010e40000 RSI: ffffffff81b2f6b0 RDI: 0000000000000003 > RBP: 0000000000152200 R08: 0000000000000018 R09: 00000000ffffffff > R10: ffffffff88f44b19 R11: 00000000ffffffff R12: 0000000000000009 > R13: ffffea0005488000 R14: 0000000000000000 R15: ffff88823fff8e00 > FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020000000 CR3: 0000000036db1000 CR4: 00000000001526f0 > > > --- > 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. > > -- > 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/00000000000020104105cc685624%40google.com.