syzbot


INFO: task hung in get_super (2)

Status: auto-obsoleted due to no activity on 2023/12/05 22:55
Subsystems: reiserfs
[Documentation on labels]
First crash: 375d, last: 375d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in get_super 1 321d 321d 0/3 auto-obsoleted due to no activity on 2024/02/08 07:44
android-49 INFO: task hung in get_super 4 2282d 2310d 0/3 auto-closed as invalid on 2019/02/22 14:56
upstream INFO: task hung in get_super fs arm 6 575d 758d 0/28 auto-obsoleted due to no activity on 2023/05/20 18:34

Sample crash report:
INFO: task syz-executor.0:21806 blocked for more than 143 seconds.
      Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:0     pid:21806 ppid:7508   flags:0x00000005
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1364/0x23b4 kernel/sched/core.c:6710
 schedule+0xc4/0x170 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6845
 rwsem_down_read_slowpath+0x57c/0xe58 kernel/locking/rwsem.c:1086
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read+0xa0/0x2fc kernel/locking/rwsem.c:1522
 get_super+0x100/0x1f0 fs/super.c:815
 fsync_bdev+0x20/0xb8 block/bdev.c:216
 blkdev_flushbuf block/ioctl.c:367 [inline]
 blkdev_common_ioctl+0x7f8/0x2814 block/ioctl.c:493
 blkdev_ioctl+0x35c/0xae4 block/ioctl.c:615
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591

Showing all locks held in the system:
4 locks held by kworker/u4:0/10:
 #0: ffff0001b41ea998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline]
 #0: ffff0001b41ea998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1366 [inline]
 #0: ffff0001b41ea998 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1675 [inline]
 #0: ffff0001b41ea998 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2d8/0x23b4 kernel/sched/core.c:6627
 #1: ffff0001b41d6e08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3c0/0x618 kernel/sched/psi.c:999
 #2: ffff0000ccf998d8 (&lo->lo_work_lock){..-.}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:376 [inline]
 #2: ffff0000ccf998d8 (&lo->lo_work_lock){..-.}-{2:2}, at: loop_process_work+0xa48/0x2534 drivers/block/loop.c:1953
 #3: ffff000127f2c7a0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #3: ffff000127f2c7a0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: generic_file_write_iter+0x88/0x2b4 mm/filemap.c:4041
1 lock held by rcu_tasks_kthre/13:
 #0: ffff80008e2718d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
 #0: ffff80008e271c90 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:522
4 locks held by kworker/1:0/22:
1 lock held by khungtaskd/28:
 #0: ffff80008e271700 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:302
2 locks held by getty/5746:
 #0: ffff0000d441c098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff800095d922f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2187
5 locks held by syz-executor.0/7422:
 #0: ffff000125d980e0 (&type->s_umount_key#52){++++}-{3:3}, at: do_remount fs/namespace.c:2879 [inline]
 #0: ffff000125d980e0 (&type->s_umount_key#52){++++}-{3:3}, at: path_mount+0xbdc/0xe04 fs/namespace.c:3654
 #1: ffff00012ab0d900 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #1: ffff00012ab0d900 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: reiserfs_xattr_init+0x17c/0x638 fs/reiserfs/xattr.c:1005
 #2: ffff8000a48c80f0 (&journal->j_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:813 [inline]
 #2: ffff8000a48c80f0 (&journal->j_mutex){+.+.}-{3:3}, at: lock_journal fs/reiserfs/journal.c:534 [inline]
 #2: ffff8000a48c80f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_end+0x318/0x3d0c fs/reiserfs/journal.c:4030
 #3: ffff0000dce99090 (&jl->j_commit_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:813 [inline]
 #3: ffff0000dce99090 (&jl->j_commit_mutex){+.+.}-{3:3}, at: flush_commit_list+0x568/0x18d4 fs/reiserfs/journal.c:1007
 #4: ffff80008e271700 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:302
6 locks held by syz-executor.2/7582:
 #0: ffff0000d80700e0 (&type->s_umount_key#52){++++}-{3:3}, at: do_remount fs/namespace.c:2879 [inline]
 #0: ffff0000d80700e0 (&type->s_umount_key#52){++++}-{3:3}, at: path_mount+0xbdc/0xe04 fs/namespace.c:3654
 #1: ffff0001274a9020 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #1: ffff0001274a9020 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: reiserfs_xattr_init+0x17c/0x638 fs/reiserfs/xattr.c:1005
 #2: ffff8000a6d1c0f0 (&journal->j_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:813 [inline]
 #2: ffff8000a6d1c0f0 (&journal->j_mutex){+.+.}-{3:3}, at: lock_journal fs/reiserfs/journal.c:534 [inline]
 #2: ffff8000a6d1c0f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_end+0x318/0x3d0c fs/reiserfs/journal.c:4030
 #3: ffff0000d3917c90 (&jl->j_commit_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:813 [inline]
 #3: ffff0000d3917c90 (&jl->j_commit_mutex){+.+.}-{3:3}, at: flush_commit_list+0x568/0x18d4 fs/reiserfs/journal.c:1007
 #4: ffff0000cf0fa090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x68/0xd8 fs/reiserfs/lock.c:78
 #5: ffff80008e271700 (rcu_read_lock){....}-{1:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
 #5: ffff80008e271700 (rcu_read_lock){....}-{1:2}, at: __find_get_block_slow fs/buffer.c:206 [inline]
 #5: ffff80008e271700 (rcu_read_lock){....}-{1:2}, at: __find_get_block+0x258/0xd18 fs/buffer.c:1419
1 lock held by syz-executor.0/21806:
 #0: ffff000125d980e0 (&type->s_umount_key#52){++++}-{3:3}, at: get_super+0x100/0x1f0 fs/super.c:815
1 lock held by syz-executor.3/1668:
 #0: ffff000125d980e0 (&type->s_umount_key#52){++++}-{3:3}, at: get_super+0x100/0x1f0 fs/super.c:815

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/06 22:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in get_super
* Struck through repros no longer work on HEAD.