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=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 D34A1C4338F for ; Mon, 9 Aug 2021 21:02:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 541536101E for ; Mon, 9 Aug 2021 21:02:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 541536101E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 5C6D68D0001; Mon, 9 Aug 2021 17:02:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 576E76B0072; Mon, 9 Aug 2021 17:02:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48C938D0001; Mon, 9 Aug 2021 17:02:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0179.hostedemail.com [216.40.44.179]) by kanga.kvack.org (Postfix) with ESMTP id 2E1DE6B0071 for ; Mon, 9 Aug 2021 17:02:24 -0400 (EDT) Received: from smtpin34.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C58BE1809CDE8 for ; Mon, 9 Aug 2021 21:02:23 +0000 (UTC) X-FDA: 78456765366.34.51721F3 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by imf23.hostedemail.com (Postfix) with ESMTP id 81F6890000A6 for ; Mon, 9 Aug 2021 21:02:23 +0000 (UTC) Received: by mail-il1-f198.google.com with SMTP id i4-20020a056e0212c4b029022291c9f509so6364947ilm.6 for ; Mon, 09 Aug 2021 14:02:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=VGe3Z5M4JpJQGp07PVsxWzU3in6lwjZc9g6V+3kwV5s=; b=WwkR/qlWyHGKPdpyXIumYEoTVdHSZxTe886mYlIvkzP3ozPW2UrkPSEWQ0m6772cvn smUGua0YNysLIPACjfI/0r3YkYadiQj0VIp0ZEDtvj+4jCIurJm2Sw531lkJ26ehrZFK /nrW8e+JQml/ywxasNMFfNrX/YbsvedXQuUrrctDt2W3oxRZC9Xn7X3GSCCUmtWWWHEK CxxnYa0PwLxFldCORrS9J0BUPREmsy9ySPaeAv+tQClHXe3Eq8Nv/mhLyVPPJANMFeFO mL1wT3EHC01b7rcPXz9g3otk2+DxcI2/kxx1ZwiBFuEpUQ5Va8sWFGpSJolbcHpLevBu RoSQ== X-Gm-Message-State: AOAM532X5y4fDFWQL57RmI74E8EA8p3l8ZVn8TB31nQdtrKwqOAWGo0t EIRJ4V5qwv1IWolbVJ9EHE6z0OcM3d2FwIjdLcOmxz/V9/Iy X-Google-Smtp-Source: ABdhPJy2mpVy0vGDnE8XXuXP8CkA/Nh9fDV41Lbp9RhnbI9FunWT9fAkZM+tztzsVgB88xupeuMvpUr2T99kJLajF8mM70p0G3cm MIME-Version: 1.0 X-Received: by 2002:a92:d3c7:: with SMTP id c7mr614438ilh.59.1628542942901; Mon, 09 Aug 2021 14:02:22 -0700 (PDT) Date: Mon, 09 Aug 2021 14:02:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009cfcda05c926b34b@google.com> Subject: [syzbot] kernel BUG in find_lock_entries From: syzbot To: akpm@linux-foundation.org, bp@alien8.de, frederic@kernel.org, hpa@zytor.com, jmattson@google.com, joro@8bytes.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mark.rutland@arm.com, masahiroy@kernel.org, mingo@redhat.com, npiggin@gmail.com, pbonzini@redhat.com, peterz@infradead.org, rafael.j.wysocki@intel.com, rostedt@goodmis.org, seanjc@google.com, sedat.dilek@gmail.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, vitor@massaru.org, vkuznets@redhat.com, wanpengli@tencent.com, will@kernel.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 81F6890000A6 Authentication-Results: imf23.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf23.hostedemail.com: domain of 33pcRYQkbAGMTZaLBMMFSBQQJE.HPPHMFVTFSDPOUFOU.DPN@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.198 as permitted sender) smtp.mailfrom=33pcRYQkbAGMTZaLBMMFSBQQJE.HPPHMFVTFSDPOUFOU.DPN@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Stat-Signature: 68y9ksykxtkgaz3zb7brp91cwqn65bn9 X-HE-Tag: 1628542943-959907 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: Hello, syzbot found the following issue on: HEAD commit: 902e7f373fff Merge tag 'net-5.14-rc5' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15337cd6300000 kernel config: https://syzkaller.appspot.com/x/.config?x=702bfdfbf389c324 dashboard link: https://syzkaller.appspot.com/bug?extid=c87be4f669d920c76330 compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=157afce9300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=152fc43a300000 The issue was bisected to: commit 997acaf6b4b59c6a9c259740312a69ea549cc684 Author: Mark Rutland Date: Mon Jan 11 15:37:07 2021 +0000 lockdep: report broken irq restoration bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=137296e6300000 final oops: https://syzkaller.appspot.com/x/report.txt?x=10f296e6300000 console output: https://syzkaller.appspot.com/x/log.txt?x=177296e6300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c87be4f669d920c76330@syzkaller.appspotmail.com Fixes: 997acaf6b4b5 ("lockdep: report broken irq restoration") __pagevec_release+0x7d/0xf0 mm/swap.c:992 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x5da/0x1a60 mm/shmem.c:931 shmem_truncate_range mm/shmem.c:1030 [inline] shmem_setattr+0x4f0/0x890 mm/shmem.c:1091 notify_change+0xbb8/0x1060 fs/attr.c:398 do_truncate fs/open.c:64 [inline] vfs_truncate+0x6be/0x880 fs/open.c:112 do_sys_truncate fs/open.c:135 [inline] __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __x64_sys_truncate+0x110/0x1b0 fs/open.c:145 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at mm/filemap.c:2041! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 24786 Comm: syz-executor626 Not tainted 5.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:find_lock_entries+0x10d5/0x1110 mm/filemap.c:2041 Code: e8 00 3d d8 ff 4c 89 e7 48 c7 c6 20 70 39 8a e8 71 bf 0d 00 0f 0b e8 ea 3c d8 ff 4c 89 e7 48 c7 c6 40 62 39 8a e8 5b bf 0d 00 <0f> 0b e8 d4 3c d8 ff 4c 89 e7 48 c7 c6 80 6a 39 8a e8 45 bf 0d 00 RSP: 0018:ffffc9000a52f7e0 EFLAGS: 00010246 RAX: c75c992acedb0700 RBX: 0000000000000001 RCX: ffff8880161ab880 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: ffffc9000a52f930 R08: ffffffff81d080d4 R09: ffffed1017383f24 R10: ffffed1017383f24 R11: 0000000000000000 R12: ffffea0000f40000 R13: 0000000000001000 R14: fffffffffffffffe R15: 0000000000001140 FS: 00007f1334d1f700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faaa593a000 CR3: 00000000165b1000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shmem_undo_range+0x1ea/0x1a60 mm/shmem.c:910 shmem_truncate_range mm/shmem.c:1030 [inline] shmem_setattr+0x4f0/0x890 mm/shmem.c:1091 notify_change+0xbb8/0x1060 fs/attr.c:398 do_truncate fs/open.c:64 [inline] vfs_truncate+0x6be/0x880 fs/open.c:112 do_sys_truncate fs/open.c:135 [inline] __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __x64_sys_truncate+0x110/0x1b0 fs/open.c:145 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x44a9a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1334d1f208 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00000000004cb4f8 RCX: 000000000044a9a9 RDX: 00007f1334d1f700 RSI: 0000000000000001 RDI: 0000000020000340 RBP: 00000000004cb4f0 R08: 00007f1334d1f700 R09: 0000000000000000 R10: 00007f1334d1f700 R11: 0000000000000246 R12: 00000000004cb4fc R13: 00007ffdec06b36f R14: 00007f1334d1f300 R15: 0000000000022000 Modules linked in: ---[ end trace 4dcd0c81778c7d51 ]--- RIP: 0010:find_lock_entries+0x10d5/0x1110 mm/filemap.c:2041 Code: e8 00 3d d8 ff 4c 89 e7 48 c7 c6 20 70 39 8a e8 71 bf 0d 00 0f 0b e8 ea 3c d8 ff 4c 89 e7 48 c7 c6 40 62 39 8a e8 5b bf 0d 00 <0f> 0b e8 d4 3c d8 ff 4c 89 e7 48 c7 c6 80 6a 39 8a e8 45 bf 0d 00 RSP: 0018:ffffc9000a52f7e0 EFLAGS: 00010246 RAX: c75c992acedb0700 RBX: 0000000000000001 RCX: ffff8880161ab880 RDX: 0000000000000000 RSI: 000000000000ffff RDI: 000000000000ffff RBP: ffffc9000a52f930 R08: ffffffff81d080d4 R09: ffffed1017383f24 R10: ffffed1017383f24 R11: 0000000000000000 R12: ffffea0000f40000 R13: 0000000000001000 R14: fffffffffffffffe R15: 0000000000001140 FS: 00007f1334d1f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557a29364160 CR3: 00000000165b1000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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