syzbot


INFO: task hung in ext4_file_write_iter (3)

Status: auto-obsoleted due to no activity on 2023/03/28 01:11
Subsystems: ext4
[Documentation on labels]
First crash: 500d, last: 500d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in ext4_file_write_iter 1 1718d 1718d 0/2 auto-closed as invalid on 2019/12/17 11:11
android-414 INFO: task hung in ext4_file_write_iter 6 1854d 1847d 0/1 auto-closed as invalid on 2019/10/03 05:16
upstream INFO: task hung in ext4_file_write_iter ext4 4 1916d 2187d 0/26 auto-closed as invalid on 2019/08/02 09:02
upstream INFO: task hung in ext4_file_write_iter (4) ext4 2 388d 401d 0/26 auto-obsoleted due to no activity on 2023/07/09 14:32
upstream INFO: task hung in ext4_file_write_iter (2) ext4 1 1233d 1233d 0/26 auto-closed as invalid on 2021/03/16 20:08

Sample crash report:
INFO: task syz-executor.2:17442 blocked for more than 143 seconds.
      Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:22024 pid:17442 ppid:5110   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x231/0x270 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 ext4_dio_write_iter fs/ext4/file.c:525 [inline]
 ext4_file_write_iter+0x5d0/0x18f0 fs/ext4/file.c:698
 call_write_iter include/linux/fs.h:2186 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7dc/0xc50 fs/read_write.c:584
 ksys_write+0x177/0x2a0 fs/read_write.c:637
 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+0x63/0xcd
RIP: 0033:0x7fa64288c0d9
RSP: 002b:00007fa643537168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fa6429ac050 RCX: 00007fa64288c0d9
RDX: 0000000000000128 RSI: 0000000020004400 RDI: 0000000000000008
RBP: 00007fa6428e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc31c257f R14: 00007fa643537300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.2:17445 blocked for more than 144 seconds.
      Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:22696 pid:17445 ppid:5110   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 io_schedule+0x83/0x100 kernel/sched/core.c:8811
 bit_wait_io+0xe/0xc0 kernel/sched/wait_bit.c:209
 __wait_on_bit_lock+0xbb/0x1a0 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0x1c3/0x240 kernel/sched/wait_bit.c:117
 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline]
 __lock_buffer fs/buffer.c:69 [inline]
 lock_buffer include/linux/buffer_head.h:397 [inline]
 __sync_dirty_buffer+0x107/0x330 fs/buffer.c:2732
 __ext4_handle_dirty_metadata+0x29a/0x810 fs/ext4/ext4_jbd2.c:387
 ext4_convert_inline_data_nolock+0x6e5/0x820 fs/ext4/inline.c:1255
 ext4_convert_inline_data+0x4c8/0x610 fs/ext4/inline.c:2066
 ext4_fallocate+0x149/0x1ca0 fs/ext4/extents.c:4701
 vfs_fallocate+0x515/0x670 fs/open.c:323
 ksys_fallocate fs/open.c:346 [inline]
 __do_sys_fallocate fs/open.c:354 [inline]
 __se_sys_fallocate fs/open.c:352 [inline]
 __x64_sys_fallocate+0xb9/0x100 fs/open.c:352
 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+0x63/0xcd
RIP: 0033:0x7fa64288c0d9
RSP: 002b:00007fa643516168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fa6429ac120 RCX: 00007fa64288c0d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 00007fa6428e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc31c257f R14: 00007fa643516300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d326e50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d327650 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
3 locks held by kworker/1:0/22:
 #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
 #1: ffffc900001c7d00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
 #2: ffffffff8d32c2f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #2: ffffffff8d32c2f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946
1 lock held by khungtaskd/28:
 #0: ffffffff8d326c80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by kworker/u4:2/41:
 #0: 
ffff88814a555938 ((wq_completion)bat_events){+.+.}-{0:0}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537
 #1: ffff8880b9827748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x611/0x9a0 kernel/sched/psi.c:976
 #2: ffffffff922fe858 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:984 [inline]
 #2: ffffffff922fe858 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xc5/0x680 lib/debugobjects.c:1027
2 locks held by getty/4747:
 #0: ffff888027b5c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
1 lock held by syz-executor.0/5102:
 #0: ffff8880766840e0 (&type->s_umount_key#84){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
1 lock held by syz-executor.1/5104:
 #0: ffff88807d6b20e0 (&type->s_umount_key#84){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
1 lock held by syz-executor.5/5113:
 #0: ffffffff8d32c2f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #0: ffffffff8d32c2f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946
2 locks held by kworker/1:3/5165:
 #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
 #1: ffffc9000476fd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
2 locks held by kworker/1:11/5698:
 #0: ffff888012866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
 #1: ffffc90006607d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
2 locks held by kworker/1:15/5925:
 #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
 #1: ffffc9000bedfd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
3 locks held by syz-executor.2/17442:
 #0: ffff88807a8239e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x242/0x2e0 fs/file.c:1046
 #1: ffff888022cda460 (sb_writers#4){.+.+}-{0:0}, at: vfs_write+0x287/0xc50 fs/read_write.c:580
 #2: ffff888075d6e850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #2: ffff888075d6e850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:525 [inline]
 #2: ffff888075d6e850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_write_iter+0x5d0/0x18f0 fs/ext4/file.c:698
3 locks held by syz-executor.2/17445:
 #0: ffff888022cda460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2935 [inline]
 #0: ffff888022cda460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x489/0x670 fs/open.c:322
 #1: ffff888075d6e850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff888075d6e850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0x141/0x1ca0 fs/ext4/extents.c:4700
 #2: ffff888075d6e518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
 #2: ffff888075d6e518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x3a4/0x610 fs/ext4/inline.c:2064

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xcd5/0xd20 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5060 Comm: syz-fuzzer Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__lock_acquire+0x421/0x1f60 kernel/locking/lockdep.c:4997
Code: 44 09 fb 8b 44 24 44 c1 e0 0f 0f b7 c0 09 d8 8b 74 24 28 83 e6 03 c1 e6 10 09 c6 41 83 e4 01 41 c1 e4 12 31 c9 83 7c 24 60 00 <0f> 95 c1 c1 e1 13 41 c1 e6 14 41 09 ce 45 09 e6 41 09 f6 48 8b 44
RSP: 0018:ffffc90003d0fae8 EFLAGS: 00000046
RAX: 0000000000000021 RBX: 0000000000000021 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000020021 RDI: ffffffff8d326c80
RBP: ffff88807531e1dc R08: 0000000000000000 R09: 0000000000000000
R10: fffffbfff1d2c9ce R11: 1ffffffff1d2c9cd R12: 0000000000000000
R13: ffff88807531d7c0 R14: 0000000000000000 R15: 0000000000000021
FS:  000000c000052090(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000431d80 CR3: 0000000078937000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:325
 rcu_read_lock include/linux/rcupdate.h:764 [inline]
 __lock_task_sighand+0x27/0x250 kernel/signal.c:1389
 lock_task_sighand include/linux/sched/signal.h:745 [inline]
 do_send_sig_info kernel/signal.c:1295 [inline]
 do_send_specific+0x1f2/0x310 kernel/signal.c:3914
 do_tkill kernel/signal.c:3940 [inline]
 __do_sys_tgkill kernel/signal.c:3959 [inline]
 __se_sys_tgkill kernel/signal.c:3953 [inline]
 __x64_sys_tgkill+0x24c/0x360 kernel/signal.c:3953
 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+0x63/0xcd
RIP: 0033:0x467116
Code: c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 8b 7c 24 08 48 8b 74 24 10 48 8b 54 24 18 b8 ea 00 00 00 0f 05 <c3> cc cc cc cc cc cc cc cc cc 8b 7c 24 08 48 8b 74 24 10 48 8b 54
RSP: 002b:000000c000061e98 EFLAGS: 00000206 ORIG_RAX: 00000000000000ea
RAX: ffffffffffffffda RBX: 0000000000000017 RCX: 0000000000467116
RDX: 0000000000000017 RSI: 0000000000001bdb RDI: 00000000000013c3
RBP: 000000c000061ec0 R08: 0000000000161623 R09: 0000000000000010
R10: 00007fff4f9b30b8 R11: 0000000000000206 R12: 000000c000061f10
R13: 000000c0213b0800 R14: 000000c0000004e0 R15: 00007f35174db1d0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/19 17:18 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ext4_file_write_iter
* Struck through repros no longer work on HEAD.