syzbot


WARNING in folio_account_dirtied

Status: upstream: reported on 2022/05/22 20:13
Reported-by: syzbot+8d1d62bfb63d6a480be1@syzkaller.appspotmail.com
First crash: 129d, last: 5h47m

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3641 at include/linux/backing-dev.h:246 folio_account_dirtied+0x61a/0x720 mm/page-writeback.c:2564
Modules linked in:
CPU: 1 PID: 3641 Comm: syz-executor.0 Not tainted 6.0.0-rc6-syzkaller-00210-gbf682942cd26 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:inode_to_wb include/linux/backing-dev.h:243 [inline]
RIP: 0010:folio_account_dirtied+0x61a/0x720 mm/page-writeback.c:2564
Code: ff ff e9 6e fd ff ff e8 a4 48 d1 ff 4c 89 f7 4c 89 e6 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 fb e7 2a 00 e8 86 48 d1 ff <0f> 0b 43 80 3c 3c 00 0f 85 36 fd ff ff e9 39 fd ff ff 48 c7 c1 54
RSP: 0018:ffffc90003d4f7f8 EFLAGS: 00010093
RAX: ffffffff81b641ca RBX: 0000000000000000 RCX: ffff88807bd65880
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88801bb6c978 R08: ffffffff81b6418e R09: fffff940000ed121
R10: fffff940000ed121 R11: 1ffffd40000ed120 R12: 1ffff1100376d92f
R13: 0000000000000001 R14: ffffea0000768900 R15: dffffc0000000000
FS:  0000555555e9c400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7fed77f998 CR3: 000000005346d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __folio_mark_dirty+0x125/0x260 mm/page-writeback.c:2615
 __set_page_dirty include/linux/pagemap.h:1057 [inline]
 mark_buffer_dirty+0x253/0x550 fs/buffer.c:1105
 gfs2_unpin+0x10b/0xa20 fs/gfs2/lops.c:111
 buf_lo_after_commit+0x172/0x1d0 fs/gfs2/lops.c:747
 lops_after_commit fs/gfs2/lops.h:49 [inline]
 gfs2_log_flush+0x1179/0x26a0 fs/gfs2/log.c:1107
 do_sync+0xa3c/0xc80 fs/gfs2/quota.c:979
 gfs2_quota_sync+0x3da/0x8b0 fs/gfs2/quota.c:1322
 gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:642
 sync_filesystem+0xe8/0x220 fs/sync.c:56
 generic_shutdown_super+0x6b/0x300 fs/super.c:474
 kill_block_super+0x79/0xd0 fs/super.c:1427
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x4ce/0x560 fs/namespace.c:1186
 task_work_run+0x146/0x1c0 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:169
 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:294
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f763a68bad7
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffaf50ba58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f763a68bad7
RDX: 00007fffaf50bb2b RSI: 000000000000000a RDI: 00007fffaf50bb20
RBP: 00007fffaf50bb20 R08: 00000000ffffffff R09: 00007fffaf50b8f0
R10: 0000555555e9d8b3 R11: 0000000000000246 R12: 00007f763a6e45d6
R13: 00007fffaf50cbe0 R14: 0000555555e9d810 R15: 00007fffaf50cc20
 </TASK>

Crashes (15):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/09/24 14:20 upstream bf682942cd26 0042f2b4 .config log report info WARNING in folio_account_dirtied
ci2-upstream-fs 2022/09/21 13:56 upstream 60891ec99e14 380f82fb .config log report info WARNING in folio_account_dirtied
ci2-upstream-fs 2022/09/21 09:20 upstream 60891ec99e14 c4b8ccfd .config log report info WARNING in folio_account_dirtied
ci2-upstream-fs 2022/09/21 02:10 upstream 60891ec99e14 c4b8ccfd .config log report info WARNING in folio_account_dirtied
ci-upstream-kasan-gce-smack-root 2022/07/16 08:24 upstream 9b59ec8d50a1 95cb00d1 .config log report info WARNING in folio_account_dirtied
ci-upstream-kasan-gce-smack-root 2022/05/18 20:03 upstream ef1302160bfb 50c53f39 .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/19 22:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/18 01:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/15 16:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/10 18:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/07 09:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 5fc30c37 .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/06 15:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 65aea2b9 .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/09/05 03:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 28811d0a .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/08/30 14:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 5b44472d .config log report info WARNING in folio_account_dirtied
ci-upstream-gce-arm64 2022/08/22 13:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config log report info WARNING in folio_account_dirtied
* Struck through repros no longer work on HEAD.