syzbot


INFO: task hung in __filemap_get_folio

Status: upstream: reported C repro on 2022/08/08 08:05
Reported-by: syzbot+0e9dc403e57033a74b1d@syzkaller.appspotmail.com
First crash: 52d, last: 11h01m

Sample crash report:
INFO: task syz-executor370:3972 blocked for more than 143 seconds.
      Not tainted 6.0.0-rc6-syzkaller-00321-g105a36f3694e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor370 state:D stack:26216 pid: 3972 ppid:  3642 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5182 [inline]
 __schedule+0xadf/0x52b0 kernel/sched/core.c:6494
 schedule+0xda/0x1b0 kernel/sched/core.c:6570
 io_schedule+0xba/0x130 kernel/sched/core.c:8714
 folio_wait_bit_common+0x3dd/0xa90 mm/filemap.c:1298
 __folio_lock mm/filemap.c:1664 [inline]
 folio_lock include/linux/pagemap.h:939 [inline]
 folio_lock include/linux/pagemap.h:935 [inline]
 __filemap_get_folio+0xc6d/0xed0 mm/filemap.c:1936
 truncate_inode_pages_range+0x37c/0x1510 mm/truncate.c:378
 ntfs_evict_inode+0x16/0xa0 fs/ntfs3/inode.c:1741
 evict+0x2ed/0x6b0 fs/inode.c:665
 iput_final fs/inode.c:1748 [inline]
 iput.part.0+0x55d/0x810 fs/inode.c:1774
 iput+0x58/0x70 fs/inode.c:1764
 ntfs_fill_super+0x2e89/0x37f0 fs/ntfs3/super.c:1190
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f979cf29aca
RSP: 002b:00007fffb7eb3f88 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffb7eb3fe0 RCX: 00007f979cf29aca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffb7eb3fa0
RBP: 00007fffb7eb3fa0 R08: 00007fffb7eb3fe0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020001b80
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000110
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8bf888b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8bf885b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/29:
 #0: ffffffff8bf89400 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492
2 locks held by getty/3282:
 #0: ffff888026101098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177
1 lock held by syz-executor370/3644:
 #0: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #0: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x562/0x670 kernel/rcu/tree_exp.h:940
1 lock held by syz-executor370/3646:
 #0: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #0: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x24a/0x670 kernel/rcu/tree_exp.h:940
3 locks held by kworker/u4:0/3654:
3 locks held by kworker/0:2/3658:
 #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544
 #1: ffff8880b9a277c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3e7/0x4e0 kernel/sched/psi.c:885
 #2: ffff8880b9a43458 (&ACCESS_PRIVATE(sdp, lock)){....}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:374 [inline]
 #2: ffff8880b9a43458 (&ACCESS_PRIVATE(sdp, lock)){....}-{2:2}, at: srcu_invoke_callbacks+0x246/0x3c0 kernel/rcu/srcutree.c:1576
2 locks held by kworker/1:0/3692:
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260
 #1: ffffc90003cffda8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264
1 lock held by syz-executor370/3972:
 #0: ffff88807de940e0 (&type->s_umount_key#41/1){+.+.}-{3:3}, at: alloc_super+0x22e/0xb60 fs/super.c:228
2 locks held by kworker/u4:5/5645:
 #0: ffff8880b9a39f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544
 #1: ffff8880b9b277c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3e7/0x4e0 kernel/sched/psi.c:885

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.0.0-rc6-syzkaller-00321-g105a36f3694e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x46/0x14f lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc18/0xf50 kernel/hung_task.c:369
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3641 Comm: syz-executor370 Not tainted 6.0.0-rc6-syzkaller-00321-g105a36f3694e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:229
Code: 84 00 00 00 00 00 0f 1f 00 65 8b 05 a9 6a 86 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 80 6f 02 00 <a9> 00 01 ff 00 74 0e 85 f6 74 59 8b 82 bc 15 00 00 85 c0 74 4f 8b
RSP: 0018:ffffc90003c5fee0 EFLAGS: 00000046
RAX: 0000000080000000 RBX: ffff888020a75880 RCX: ffffffff812d2828
RDX: ffff888020a75880 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888020a77140 R14: 0000000000000000 R15: 0000000000000000
FS:  0000555557245300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002003f000 CR3: 0000000079ce7000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 trace_x86_fpu_regs_activated arch/x86/include/asm/trace/fpu.h:57 [inline]
 fpregs_activate arch/x86/kernel/fpu/context.h:51 [inline]
 fpregs_restore_userregs+0x128/0x3d0 arch/x86/kernel/fpu/context.h:77
 arch_exit_to_user_mode_prepare arch/x86/include/asm/entry-common.h:58 [inline]
 exit_to_user_mode_prepare+0x1d7/0x250 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f979cf4cd8a
Code: 83 ff 03 74 3b 48 83 ec 28 b8 fa ff ff ff 83 ff 02 49 89 ca 0f 44 f8 64 8b 04 25 18 00 00 00 85 c0 75 2d b8 e6 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 83 c4 28 c3
RSP: 002b:00007fffb7eb40b0 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 00000000000d23ca RCX: 00007f979cf4cd8a
RDX: 00007fffb7eb40f0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000000000199b R08: 000000000000035d R09: 00007fffb7f84080
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffb7eb413c
R13: 00007fffb7eb4170 R14: 00007fffb7eb4150 R15: 0000000000000236
 </TASK>

Crashes (39):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/09/25 22:36 upstream 105a36f3694e 0042f2b4 .config log report syz C INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/25 04:01 upstream 1a61b828566f 0042f2b4 .config log report syz C INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/23 18:45 upstream bf682942cd26 0042f2b4 .config log report syz C INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/10 07:05 linux-next e47eb90a0a9a 356d8217 .config log report syz INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/29 01:18 upstream 49c13ed0316d e2556bc3 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/28 21:01 upstream 49c13ed0316d e2556bc3 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/27 08:59 upstream 3800a713b607 10323ddf .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/26 04:29 upstream f76349cf4145 0042f2b4 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/26 03:16 upstream f76349cf4145 0042f2b4 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/25 11:34 upstream 105a36f3694e 0042f2b4 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/24 21:35 upstream 1a61b828566f 0042f2b4 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/19 14:36 upstream 521a547ced64 dd9a85ff .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/19 10:55 upstream 521a547ced64 dd9a85ff .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/19 10:20 upstream 521a547ced64 dd9a85ff .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/19 05:40 upstream 38eddeedbbea dd9a85ff .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/15 14:19 upstream 3245cb65fd91 dd9a85ff .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/15 06:06 upstream 3245cb65fd91 b884348d .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/12 14:53 upstream 80e78fcce86d 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/12 13:23 upstream 80e78fcce86d 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/11 19:26 upstream b96fbd602d35 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/10 03:14 upstream 9b4509495418 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/10 02:50 upstream 9b4509495418 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/10 02:40 upstream 9b4509495418 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/09/09 01:03 upstream 26b1224903b3 f3027468 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/07 14:33 upstream 0066f1b0e275 c5b7bc57 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/09/06 08:08 upstream 53e99dcff61e 9dcd38fc .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/08/31 20:22 upstream c5e4d5e99162 51e54e30 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/08/27 03:03 upstream 3e5c673f0d75 07177916 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/08/23 16:27 upstream 072e51356cd5 cea8b0f7 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-selinux-root 2022/08/21 19:42 upstream 15b3f48a4339 26a13b38 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/08/20 20:22 upstream 50cd95ac4654 26a13b38 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/08/17 23:41 upstream 274a2eebf80c 4e72d229 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-kasan-gce-root 2022/08/16 18:09 upstream 7ebfc85e2cd7 7a7cb304 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/15 05:57 linux-next e47eb90a0a9a b884348d .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/14 12:01 linux-next e47eb90a0a9a b884348d .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/10 02:39 linux-next e47eb90a0a9a 356d8217 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/08 02:45 linux-next e47eb90a0a9a 435aeef7 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/09/08 01:36 linux-next e47eb90a0a9a 435aeef7 .config log report info INFO: task hung in __filemap_get_folio
ci-upstream-linux-next-kasan-gce-root 2022/08/08 04:48 linux-next ca688bff68bc 88e3a122 .config log report info INFO: task hung in __filemap_get_folio
* Struck through repros no longer work on HEAD.