syzbot


INFO: task hung in ext4_fallocate (2)

Status: auto-obsoleted due to no activity on 2023/02/10 19:26
Subsystems: ext4
[Documentation on labels]
First crash: 542d, last: 542d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in ext4_fallocate ext4 C 1 2042d 2041d 11/26 fixed on 2018/11/12 21:25
android-49 INFO: task hung in ext4_fallocate 1 1947d 1846d 0/3 auto-closed as invalid on 2019/07/02 10:28
upstream INFO: task hung in ext4_fallocate (3) ext4 1 387d 387d 0/26 auto-obsoleted due to no activity on 2023/07/11 11:25

Sample crash report:
INFO: task syz-executor.5:7802 blocked for more than 143 seconds.
      Not tainted 6.1.0-rc4-syzkaller-31859-g56751c56c2a2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:0     pid:7802  ppid:3056   flags:0x00000001
Call trace:
 __switch_to+0x180/0x298 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x408/0x594 kernel/sched/core.c:6503
 schedule+0x64/0xa4 kernel/sched/core.c:6579
 rwsem_down_write_slowpath+0x258/0x468 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x84/0x88 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 ext4_fallocate+0xa0/0xc28 fs/ext4/extents.c:4701
 vfs_fallocate+0x328/0x38c fs/open.c:323
 ioctl_preallocate+0x16c/0x1bc fs/ioctl.c:290
 do_vfs_ioctl+0x123c/0x16a4 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x98/0x140 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
INFO: task syz-executor.5:7803 blocked for more than 143 seconds.
      Not tainted 6.1.0-rc4-syzkaller-31859-g56751c56c2a2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:0     pid:7803  ppid:3056   flags:0x00000001
Call trace:
 __switch_to+0x180/0x298 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x408/0x594 kernel/sched/core.c:6503
 schedule+0x64/0xa4 kernel/sched/core.c:6579
 rwsem_down_write_slowpath+0x258/0x468 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x84/0x88 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 ext4_buffered_write_iter+0x50/0x294 fs/ext4/file.c:279
 ext4_file_write_iter+0x84/0x408 fs/ext4/file.c:700
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x2dc/0x46c fs/read_write.c:584
 ksys_write+0xb4/0x160 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x24/0x34 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
INFO: task syz-executor.5:7812 blocked for more than 143 seconds.
      Not tainted 6.1.0-rc4-syzkaller-31859-g56751c56c2a2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:0     pid:7812  ppid:3056   flags:0x00000009
Call trace:
 __switch_to+0x180/0x298 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x408/0x594 kernel/sched/core.c:6503
 schedule+0x64/0xa4 kernel/sched/core.c:6579
 io_schedule+0x38/0xbc kernel/sched/core.c:8723
 bit_wait_io+0x18/0x60 kernel/sched/wait_bit.c:209
 __wait_on_bit_lock+0x6c/0x114 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0x84/0xac 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+0xe8/0x328 fs/buffer.c:2732
 sync_dirty_buffer+0x24/0x34 fs/buffer.c:2758
 __ext4_handle_dirty_metadata+0x118/0x3e0 fs/ext4/ext4_jbd2.c:381
 ext4_convert_inline_data_nolock+0x3d8/0x450 fs/ext4/inline.c:1256
 ext4_convert_inline_data+0x228/0x30c fs/ext4/inline.c:2067
 ext4_fallocate+0xa8/0xc28 fs/ext4/extents.c:4702
 vfs_fallocate+0x328/0x38c fs/open.c:323
 ioctl_preallocate+0x16c/0x1bc fs/ioctl.c:290
 do_vfs_ioctl+0x123c/0x16a4 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x98/0x140 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/11:
 #0: ffff80000d3f3868 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/12:
 #0: ffff80000d3f3eb8 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
 #0: ffff80000d3f3740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:303
3 locks held by kworker/u4:2/49:
 #0: ffff0000c0df8538 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x270/0x504 kernel/workqueue.c:2262
 #1: ffff80000f64bd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x29c/0x504 kernel/workqueue.c:2264
 #2: ffff0000c013b0e0 (&type->s_umount_key#39){.+.+}-{3:3}, at: trylock_super+0x28/0xa8 fs/super.c:415
2 locks held by getty/2707:
 #0: ffff0000c795c898 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x58 drivers/tty/tty_ldisc.c:244
 #1: ffff80000f5f62f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x19c/0x89c drivers/tty/n_tty.c:2177
2 locks held by kworker/u4:9/3250:
2 locks held by syz-executor.5/7802:
 #0: ffff0001133e4460 (sb_writers#3){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2936 [inline]
 #0: ffff0001133e4460 (sb_writers#3){.+.+}-{0:0}, at: vfs_fallocate+0x2e4/0x38c fs/open.c:322
 #1: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0xa0/0xc28 fs/ext4/extents.c:4701
3 locks held by syz-executor.5/7803:
 #0: ffff000112bfc4e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x12c/0x154 fs/file.c:1037
 #1: ffff0001133e4460 (sb_writers#3){.+.+}-{0:0}, at: vfs_write+0x180/0x46c fs/read_write.c:580
 #2: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #2: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_buffered_write_iter+0x50/0x294 fs/ext4/file.c:279
3 locks held by syz-executor.5/7812:
 #0: ffff0001133e4460 (sb_writers#3){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2936 [inline]
 #0: ffff0001133e4460 (sb_writers#3){.+.+}-{0:0}, at: vfs_fallocate+0x2e4/0x38c fs/open.c:322
 #1: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff0000ca8f63a0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0xa0/0xc28 fs/ext4/extents.c:4701
 #2: ffff0000ca8f6068 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
 #2: ffff0000ca8f6068 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x1ac/0x30c fs/ext4/inline.c:2065
1 lock held by syz-executor.5/7921:
 #0: ffff0000c5bb84c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfc/0x2fc block/bdev.c:813
1 lock held by syz-executor.0/8476:
 #0: ffff0000c5bb84c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0xd8/0x198 block/bdev.c:1052
2 locks held by syz-executor.3/8538:
 #0: ffff0001133e40e0 (&type->s_umount_key#29){++++}-{3:3}, at: iterate_supers+0x7c/0x150 fs/super.c:722
 #1: ffff0000c41437d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
 #1: ffff0000c41437d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0xac/0x4d4 fs/fs-writeback.c:2704
2 locks held by syz-executor.0/8572:
 #0: ffff0001133e40e0 (&type->s_umount_key#29){++++}-{3:3}, at: iterate_supers+0x7c/0x150 fs/super.c:722
 #1: ffff0000c41437d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
 #1: ffff0000c41437d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0xac/0x4d4 fs/fs-writeback.c:2704

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/08 23:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 060f945e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in ext4_fallocate
* Struck through repros no longer work on HEAD.