syzbot


WARNING in __folio_mark_dirty

Status: upstream: reported C repro on 2021/10/28 16:40
Reported-by: syzbot+34ef28bb2aeb28724aa0@syzkaller.appspotmail.com
Fix commit: e897be17a441 nilfs2: fix lockdep warnings in page operations for btree nodes
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 253d, last: 11d

Cause bisection: failed (bisect log)

Sample crash report:
NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3592 at include/linux/backing-dev.h:269 inode_to_wb include/linux/backing-dev.h:269 [inline]
WARNING: CPU: 0 PID: 3592 at include/linux/backing-dev.h:269 folio_account_dirtied mm/page-writeback.c:2460 [inline]
WARNING: CPU: 0 PID: 3592 at include/linux/backing-dev.h:269 __folio_mark_dirty+0xa7c/0xe30 mm/page-writeback.c:2513
Modules linked in:
CPU: 0 PID: 3592 Comm: segctord Not tainted 5.17.0-rc6-syzkaller-00066-g5859a2b19911 #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:269 [inline]
RIP: 0010:folio_account_dirtied mm/page-writeback.c:2460 [inline]
RIP: 0010:__folio_mark_dirty+0xa7c/0xe30 mm/page-writeback.c:2513
Code: ff ff ff 48 8d 78 70 e8 22 38 aa 07 31 ff 89 c6 89 44 24 10 e8 b5 f9 d6 ff 8b 44 24 10 85 c0 0f 85 49 fa ff ff e8 24 f6 d6 ff <0f> 0b e9 3d fa ff ff e8 18 f6 d6 ff e8 33 39 aa 07 31 ff 41 89 c7
RSP: 0018:ffffc90002d8f8c0 EFLAGS: 00010093
RAX: 0000000000000000 RBX: ffff8880735a0378 RCX: 0000000000000000
RDX: ffff88807a6e9d00 RSI: ffffffff81a1b77c RDI: 0000000000000003
RBP: ffffea0001d8d640 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81a1b76b R11: 0000000000000000 R12: 0000000000000293
R13: ffff8880735a0138 R14: 0000000000000001 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8bfc6c51d0 CR3: 000000007d721000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __set_page_dirty include/linux/pagemap.h:879 [inline]
 mark_buffer_dirty+0x4e6/0x650 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+0x14f7/0x6cb0 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+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (95):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/03/03 16:42 upstream 5859a2b19911 45a13a73 .config log report syz C WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/03/27 03:34 linux-next fd4fbb998102 89bc8608 .config log report syz C WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2021/10/24 19:13 linux-next cf6c9d12750c 282f03fb .config log report syz C WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-smack-root 2022/03/06 20:31 upstream dcde98da9970 7bdd8b2c .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-root 2022/02/12 18:08 upstream 83e396641110 8b9ca619 .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-root 2022/02/05 04:49 upstream dcb85f85fa6f e13a05ed .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-root 2022/01/15 00:10 upstream fb3b0673b7d5 53e00b45 .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-smack-root 2021/12/06 02:24 upstream 944207047ca4 a617004c .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-root 2021/12/05 05:08 upstream bbef3c7a63d2 a617004c .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-root 2021/12/05 02:28 upstream bbef3c7a63d2 a617004c .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream 2021/12/01 05:57 upstream 58e1100fdc59 80270552 .config log report info WARNING in __folio_mark_dirty
ci-upstream-kasan-gce-selinux-root 2021/11/26 01:13 upstream b501b85957de 63eeac02 .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream 2021/11/02 06:54 upstream e66435936756 098b5d53 .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream-386 2022/01/15 10:28 upstream 112450df61b7 723cfaf0 .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream-386 2022/01/14 23:19 upstream 871bfa02d08d 53e00b45 .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream-386 2022/01/12 16:58 upstream 6f38be8f2ccd 44d1319a .config log report info WARNING in __folio_mark_dirty
ci-qemu-upstream-386 2021/12/03 08:26 upstream a51e3ac43ddb 61f86278 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/22 22:58 linux-next ac0ba5454ca8 912f5df7 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/22 16:55 linux-next ac0ba5454ca8 0fc5c330 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/22 15:38 linux-next ac0ba5454ca8 0fc5c330 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/22 13:35 linux-next ac0ba5454ca8 0fc5c330 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/21 13:04 linux-next 34d1d36073ea 0fc5c330 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/21 11:42 linux-next 34d1d36073ea 0fc5c330 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/20 09:26 linux-next 1e502319853c 8f633d84 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/20 05:51 linux-next 07dc787be231 8f633d84 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/19 23:55 linux-next 07dc787be231 8f633d84 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/17 02:06 linux-next c6d7e3b385f1 1719ee24 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/15 17:42 linux-next 6012273897fe 1719ee24 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/15 14:17 linux-next 6012273897fe 1719ee24 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/15 08:19 linux-next 6012273897fe 127d1faf .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/15 07:13 linux-next 6012273897fe 127d1faf .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/15 03:02 linux-next 35d872b9ea5b 127d1faf .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/14 16:05 linux-next 35d872b9ea5b 127d1faf .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/14 10:09 linux-next 35d872b9ea5b 0f087040 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/14 08:44 linux-next 35d872b9ea5b 0f087040 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/14 04:10 linux-next 6d0c80680317 0f087040 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/14 02:18 linux-next 6d0c80680317 0f087040 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/13 15:23 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/13 12:49 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/12 20:06 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/12 18:53 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/12 17:39 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/11 16:03 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/11 14:39 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/10 14:38 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/10 12:58 linux-next 6d0c80680317 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/09 15:59 linux-next ff539ac73ea5 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/09 07:10 linux-next ff539ac73ea5 0d5abf15 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/08 16:03 linux-next 03c312cc5f47 b2706118 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/08 08:27 linux-next 03c312cc5f47 b2706118 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/08 01:45 linux-next 73d0e32571a0 b2706118 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/06/07 12:27 linux-next 73d0e32571a0 c8857892 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/02/20 12:36 linux-next ef6b35306dd8 3cd800e4 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/02/11 03:52 linux-next ef6b35306dd8 0b33604d .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/02/06 23:14 linux-next ef6b35306dd8 a7dab638 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2022/01/31 03:58 linux-next b605fdc54c2b 495e00c5 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2021/12/06 07:34 linux-next f81e94e91878 a617004c .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2021/11/29 07:30 linux-next f81e94e91878 63eeac02 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2021/11/28 13:38 linux-next f81e94e91878 63eeac02 .config log report info WARNING in __folio_mark_dirty
ci-upstream-linux-next-kasan-gce-root 2021/10/24 16:36 linux-next cf6c9d12750c 282f03fb .config log report info WARNING in __folio_mark_dirty