syzbot


INFO: task hung in path_mount

Status: auto-obsoleted due to no activity on 2023/07/13 21:53
Subsystems: arm reiserfs
[Documentation on labels]
First crash: 482d, last: 390d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in path_mount (2) jfs C error done 8 135d 264d 26/26 fixed on 2024/01/30 23:26

Sample crash report:
INFO: task syz-executor.0:21971 blocked for more than 143 seconds.
      Not tainted 6.3.0-rc6-syzkaller-00168-g95abc817ab3a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:24616 pid:21971 ppid:5095   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5307 [inline]
 __schedule+0x173b/0x4630 kernel/sched/core.c:6625
 schedule+0xc3/0x180 kernel/sched/core.c:6701
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 do_remount fs/namespace.c:2701 [inline]
 path_mount+0xbd2/0xf80 fs/namespace.c:3364
 do_mount fs/namespace.c:3385 [inline]
 __do_sys_mount fs/namespace.c:3594 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3571
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3b708d69a
RSP: 002b:00007fd3b7e3ff88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd3b708d69a
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00007fd3b7e40020 R08: 00007fd3b7e40020 R09: 0000000001a484bc
R10: 0000000001a484bc R11: 0000000000000202 R12: 00000000200000c0
R13: 0000000020000100 R14: 00007fd3b7e3ffe0 R15: 0000000020000740
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u4:0/9:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/28:
 #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4746:
 #0: ffff88814a3c1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177
5 locks held by syz-executor.3/21954:
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743
 #1: ffffc900167580f0 (&journal->j_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:814 [inline]
 #1: ffffc900167580f0 (&journal->j_mutex){+.+.}-{3:3}, at: lock_journal fs/reiserfs/journal.c:534 [inline]
 #1: ffffc900167580f0 (&journal->j_mutex){+.+.}-{3:3}, at: do_journal_end+0x390/0x4770 fs/reiserfs/journal.c:4027
 #2: ffffc90016758180 (&journal->j_flush_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:814 [inline]
 #2: ffffc90016758180 (&journal->j_flush_mutex){+.+.}-{3:3}, at: flush_journal_list+0x18d/0x1c70 fs/reiserfs/journal.c:1369
 #3: ffff888081576090 (&jl->j_commit_mutex){+.+.}-{3:3}, at: reiserfs_mutex_lock_safe fs/reiserfs/reiserfs.h:814 [inline]
 #3: ffff888081576090 (&jl->j_commit_mutex){+.+.}-{3:3}, at: flush_commit_list+0x66a/0x1bf0 fs/reiserfs/journal.c:1007
 #4: ffff888017c71090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock_nested+0x5f/0xd0 fs/reiserfs/lock.c:78
1 lock held by syz-executor.0/21971:
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: do_remount fs/namespace.c:2701 [inline]
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: path_mount+0xbd2/0xf80 fs/namespace.c:3364
1 lock held by syz-executor.1/22008:
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743
1 lock held by syz-executor.3/22075:
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743
1 lock held by syz-executor.3/22165:
 #0: ffff8880223a80e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc6-syzkaller-00168-g95abc817ab3a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 52 Comm: kworker/1:1H Not tainted 6.3.0-rc6-syzkaller-00168-g95abc817ab3a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: kblockd blk_mq_requeue_work
RIP: 0010:match_held_lock+0x0/0xb0 kernel/locking/lockdep.c:5114
Code: 8d 0d b5 03 00 75 cf 48 c7 c7 40 7c ea 8a 48 c7 c6 80 7c ea 8a e8 10 0c b4 f6 0f 0b eb b6 e8 b7 f9 ff ff 0f 1f 80 00 00 00 00 <55> 53 bd 01 00 00 00 48 39 77 10 74 67 48 89 fb 81 7f 20 00 00 10
RSP: 0018:ffffc90000bd7250 EFLAGS: 00000083
RAX: 0000000000000008 RBX: 0000000000000007 RCX: 0000000080000005
RDX: 0000000000000001 RSI: ffffffff8cf25320 RDI: ffff888017ff8b50
RBP: ffff888017ff8b50 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000046
R13: ffff888017ff8000 R14: 00000000ffffffff R15: ffffffff8cf25320
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557386e783d0 CR3: 00000000224de000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __lock_is_held kernel/locking/lockdep.c:5410 [inline]
 lock_is_held_type+0xa8/0x190 kernel/locking/lockdep.c:5712
 lock_is_held include/linux/lockdep.h:283 [inline]
 rcu_read_lock_sched_held+0x8d/0x130 kernel/rcu/update.c:125
 task_css_set include/linux/cgroup.h:424 [inline]
 task_dfl_cgroup include/linux/cgroup.h:493 [inline]
 task_psi_group+0x50/0x1a0 kernel/sched/psi.c:865
 psi_account_irqtime+0x81/0x5e0 kernel/sched/psi.c:994
 update_rq_clock_task kernel/sched/core.c:706 [inline]
 update_rq_clock+0x22c/0x870 kernel/sched/core.c:749
 ttwu_queue kernel/sched/core.c:3955 [inline]
 try_to_wake_up+0x71b/0x1230 kernel/sched/core.c:4278
 __queue_work+0xb37/0xf10 kernel/workqueue.c:1524
 queue_work_on+0x14f/0x250 kernel/workqueue.c:1552
 queue_work include/linux/workqueue.h:504 [inline]
 loop_queue_work drivers/block/loop.c:897 [inline]
 loop_queue_rq+0x9b8/0xab0 drivers/block/loop.c:1855
 blk_mq_dispatch_rq_list+0xe45/0x1f90 block/blk-mq.c:2057
 __blk_mq_sched_dispatch_requests+0x386/0x4a0 block/blk-mq-sched.c:305
 blk_mq_sched_dispatch_requests+0xf3/0x160 block/blk-mq-sched.c:338
 __blk_mq_run_hw_queue+0x209/0x2d0 block/blk-mq.c:2175
 blk_mq_run_hw_queues+0x2b9/0x360 block/blk-mq.c:2347
 blk_mq_requeue_work+0x741/0x780 block/blk-mq.c:1480
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/14 21:44 upstream 95abc817ab3a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in path_mount
2023/01/13 04:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9598c377d828 96166539 .config console log report info ci-upstream-gce-arm64 INFO: task hung in path_mount
* Struck through repros no longer work on HEAD.