Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp451866pxb; Thu, 12 Aug 2021 21:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXNScqM9k83z4il+xC+XaIf575NIgHxFlQLjz9MkX+27p3r4Ou1WyTeua0iiAtcSde2vaI X-Received: by 2002:a02:7f48:: with SMTP id r69mr451964jac.17.1628829859399; Thu, 12 Aug 2021 21:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628829859; cv=none; d=google.com; s=arc-20160816; b=Mcp9MHyvV69JddbAMup8sxBErez+I3gpTJ6R2uv4BZHA5BP75w5qUnDy9bPQ9m2YPW cB18wIdsDj+ei5N8TrFfDmJtPtuqNFopuRA1jhkUA4J9A4p1XSj7iTYphUODWBkF64TP HRFCHmgHjURLyNPgSJIB8AIYePgAm/2pFN4ACqItSrp6La+m5rcGtjvkULi9KsjARxO6 50s87dEoM5WdBXudR7mM+9nAqquFC/1D1tNAugyrnuOIadMe3+g7tpuvHnuKBqoqKVuY IgVKV0uJKSSmzSKyY7QBa6ZHwFr6pllar+LCmEhx3+Pr1AbelDYB2L1UbN0fvohB7S8l ZaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=7MglwI/yX/ewU3i1nPDYLSNM5Et0vKbSBNWk8oJbUeU=; b=SiL6RsH/mCgZpI9v+L1VpTRnMWuzVNVwxjx3Rm0FdkYv8RtuiFYiV4wzewRzmaOKcs eipE2Y5ytU9Qmb3SOXhW5pcNdvU0dUA6V6s84ClaJpIINDO/TkLIlHEK6DnA1PkOiOYE JGlrU/2gHawOV5yFHPZjPSLN4+UGAcM05Beph+mlEIwgCLsFDHYXxzeJEAoBD84HNRKc Y7jIBwP7UBb9EB3N+r560y/5aQlxuJ7iVr2ZzDoufWjXB77aA37LxOcxz+DXDOWIIn4u CH+qX3HDZwgLbezdW5SKmwcRzlQ9Fma4IVQaowaUW3JTuUUTyTGvr2N1+fWH6g9u7jZe TjFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si319587ilq.43.2021.08.12.21.44.08; Thu, 12 Aug 2021 21:44:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238596AbhHMDax (ORCPT + 99 others); Thu, 12 Aug 2021 23:30:53 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:47818 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237040AbhHMDav (ORCPT ); Thu, 12 Aug 2021 23:30:51 -0400 Received: by mail-io1-f69.google.com with SMTP id p7-20020a6b63070000b02904f58bb90366so4625352iog.14 for ; Thu, 12 Aug 2021 20:30:25 -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:in-reply-to:message-id:subject :from:to; bh=7MglwI/yX/ewU3i1nPDYLSNM5Et0vKbSBNWk8oJbUeU=; b=g9+FJwzMuR03CYJfITv7B/uRNMyqvj/7Lw7f2ZNVkkJxGZ1f154rn9qy4tyYmCjZB0 HorMbsnA/f9nKywf2LLNM/W2to0sXOnuBZS3DRV+nuUgiymUspJ5f/2cfvYLpmz8upeT Dv+H/spsYnXA1Das1w3Qu59l24d7cNEFpPIDmEjvjZHgWO8Phq79Lpy3MZBQi7MX4sBT vzwNHT70VO9Y48fiycOdEWnl5UeqkVo4UIIYMYSZOqedkmxC1MCOGDqmtKFN1fPPm00P z1iv89XDuZFaXqHwKXmw6idgTz/LLSxvmfCtt+3D5q9t718HCebtBo+64Qz5ssapy9Ic qGbQ== X-Gm-Message-State: AOAM530BdJUPEtlHJVTpc+FQhq2Nvu8fHRCkncDU8wSBysccpBEmusXg mMikM8M98a9yjSru4U4DCOdC9WitdVk7tHFVJcacaZ6WXXaO MIME-Version: 1.0 X-Received: by 2002:a6b:490d:: with SMTP id u13mr357643iob.176.1628825425086; Thu, 12 Aug 2021 20:30:25 -0700 (PDT) Date: Thu, 12 Aug 2021 20:30:25 -0700 In-Reply-To: <000000000000b25bb805c798a1a5@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000dd0bf405c96878b9@google.com> Subject: Re: [syzbot] WARNING in __set_page_dirty From: syzbot To: agruenba@redhat.com, akpm@linux-foundation.org, cluster-devel@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rpeterso@redhat.com, swhiteho@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: f8fbb47c6e86 Merge branch 'for-v5.14' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=125aadf6300000 kernel config: https://syzkaller.appspot.com/x/.config?x=e3a20bae04b96ccd dashboard link: https://syzkaller.appspot.com/bug?extid=0d5b462a6f07447991b3 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=122742ee300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17925381300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0d5b462a6f07447991b3@syzkaller.appspotmail.com NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8496 at include/linux/backing-dev.h:283 inode_to_wb include/linux/backing-dev.h:283 [inline] WARNING: CPU: 0 PID: 8496 at include/linux/backing-dev.h:283 account_page_dirtied mm/page-writeback.c:2435 [inline] WARNING: CPU: 0 PID: 8496 at include/linux/backing-dev.h:283 __set_page_dirty+0xace/0x1070 mm/page-writeback.c:2483 Modules linked in: CPU: 0 PID: 8496 Comm: segctord Not tainted 5.14.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:inode_to_wb include/linux/backing-dev.h:283 [inline] RIP: 0010:account_page_dirtied mm/page-writeback.c:2435 [inline] RIP: 0010:__set_page_dirty+0xace/0x1070 mm/page-writeback.c:2483 Code: a8 01 00 00 be ff ff ff ff 48 8d 78 70 e8 ea 60 8d 07 31 ff 89 c3 89 c6 e8 cf a6 d8 ff 85 db 0f 85 ac f7 ff ff e8 82 9f d8 ff <0f> 0b e9 a0 f7 ff ff e8 76 9f d8 ff 4c 8d 75 08 48 b8 00 00 00 00 RSP: 0018:ffffc9000175f8c8 EFLAGS: 00010093 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880263b9c40 RSI: ffffffff819d083e RDI: 0000000000000003 RBP: ffffea000082dac0 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff819d0831 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888037e60138 R14: ffff888037e60488 R15: ffff888037e602e0 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005593610abbe0 CR3: 0000000016882000 CR4: 0000000000350ef0 Call Trace: mark_buffer_dirty+0x49a/0x5e0 fs/buffer.c:1108 nilfs_btree_propagate_p fs/nilfs2/btree.c:1889 [inline] nilfs_btree_propagate+0x4ae/0xea0 fs/nilfs2/btree.c:2085 nilfs_bmap_propagate+0x73/0x170 fs/nilfs2/bmap.c:337 nilfs_collect_dat_data+0x45/0xd0 fs/nilfs2/segment.c:625 nilfs_segctor_apply_buffers+0x14a/0x470 fs/nilfs2/segment.c:1009 nilfs_segctor_scan_file+0x3e4/0x700 fs/nilfs2/segment.c:1058 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1224 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1494 [inline] nilfs_segctor_do_construct+0x16ee/0x6b20 fs/nilfs2/segment.c:2036 nilfs_segctor_construct+0x7a7/0xb30 fs/nilfs2/segment.c:2372 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] nilfs_segctor_thread+0x3c3/0xf90 fs/nilfs2/segment.c:2563 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: a8 01 test $0x1,%al 2: 00 00 add %al,(%rax) 4: be ff ff ff ff mov $0xffffffff,%esi 9: 48 8d 78 70 lea 0x70(%rax),%rdi d: e8 ea 60 8d 07 callq 0x78d60fc 12: 31 ff xor %edi,%edi 14: 89 c3 mov %eax,%ebx 16: 89 c6 mov %eax,%esi 18: e8 cf a6 d8 ff callq 0xffd8a6ec 1d: 85 db test %ebx,%ebx 1f: 0f 85 ac f7 ff ff jne 0xfffff7d1 25: e8 82 9f d8 ff callq 0xffd89fac 2a: 0f 0b ud2 <-- trapping instruction 2c: e9 a0 f7 ff ff jmpq 0xfffff7d1 31: e8 76 9f d8 ff callq 0xffd89fac 36: 4c 8d 75 08 lea 0x8(%rbp),%r14 3a: 48 rex.W 3b: b8 00 00 00 00 mov $0x0,%eax