syzbot


INFO: task hung in sys_fsconfig (2)

Status: auto-obsoleted due to no activity on 2025/03/31 08:26
Subsystems: bcachefs
[Documentation on labels]
First crash: 302d, last: 288d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in sys_fsconfig fs 1 1 819d 819d 0/29 auto-obsoleted due to no activity on 2023/10/17 18:38

Sample crash report:
INFO: task syz.9.237:8227 blocked for more than 143 seconds.
      Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.237       state:D stack:20504 pid:8227  tgid:8161  ppid:6724   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6848
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905
 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176
 __down_write_common kernel/locking/rwsem.c:1304 [inline]
 __down_write kernel/locking/rwsem.c:1313 [inline]
 down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578
 vfs_cmd_reconfigure fs/fsopen.c:261 [inline]
 vfs_fsconfig_locked fs/fsopen.c:291 [inline]
 __do_sys_fsconfig fs/fsopen.c:467 [inline]
 __se_sys_fsconfig+0xb6a/0xf60 fs/fsopen.c:344
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1ac3985d29
RSP: 002b:00007f1ac47ab038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f1ac3b76080 RCX: 00007f1ac3985d29
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005
RBP: 00007f1ac3a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1ac3b76080 R15: 00007ffd35b7f1e8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by getty/5572:
 #0: ffff88814d7e20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000330b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by syz.9.237/8162:
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
 #1: ffff88806c884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
 #1: ffff88806c884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
 #1: ffff88806c884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
 #2: ffff88806c8a66d0 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
2 locks held by syz.9.237/8227:
 #0: ffff88802432b870 (&fc->uapi_mutex){+.+.}-{4:4}, at: __do_sys_fsconfig fs/fsopen.c:465 [inline]
 #0: ffff88802432b870 (&fc->uapi_mutex){+.+.}-{4:4}, at: __se_sys_fsconfig+0x9b2/0xf60 fs/fsopen.c:344
 #1: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: vfs_cmd_reconfigure fs/fsopen.c:261 [inline]
 #1: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: vfs_fsconfig_locked fs/fsopen.c:291 [inline]
 #1: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: __do_sys_fsconfig fs/fsopen.c:467 [inline]
 #1: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: __se_sys_fsconfig+0xb6a/0xf60 fs/fsopen.c:344
1 lock held by syz.9.345/9581:
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
1 lock held by syz.1.443/10819:
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
 #0: ffff8880514c60e0 (&type->s_umount_key#60){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
2 locks held by syz.3.398/10950:
4 locks held by rm/10972:
 #0: ffff8880b873e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598
 #1: ffff8880b8728948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41d/0x7a0 kernel/sched/psi.c:987
 #2: ffff888031878db8 (&sig->wait_chldexit){....}-{3:3}, at: __wake_up_common_lock+0x25/0x1e0 kernel/sched/wait.c:105
 #3: ffff888030358a18 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:551 [inline]
 #3: ffff888030358a18 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xc2/0x1470 kernel/sched/core.c:4205

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline]
 watchdog+0xff6/0x1040 kernel/hung_task.c:397
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 10977 Comm: sed Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:fpregs_assert_state_consistent+0x0/0xe0 arch/x86/kernel/fpu/core.c:816
Code: 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 e6 85 c2 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 55 41 57 41 56 53 49 be 00 00 00 00 00 fc ff df e8 27
RSP: 0000:ffffc90003c27ec8 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81a72e8c
RDX: 0000000000000000 RSI: ffffffff8c5edd40 RDI: ffffffff8c5edd00
RBP: ffff888041dcd6c8 R08: ffffffff901853f7 R09: 1ffffffff2030a7e
R10: dffffc0000000000 R11: fffffbfff2030a7f R12: ffff888026701e00
R13: 0000000000000354 R14: ffffc90003c27f58 R15: ffff888026701e00
FS:  00007f08d1d82380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f08d1e419d3 CR3: 0000000063aee000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 arch_exit_work arch/x86/include/asm/entry-common.h:56 [inline]
 arch_exit_to_user_mode_prepare arch/x86/include/asm/entry-common.h:65 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:331 [inline]
 irqentry_exit_to_user_mode+0x11d/0x250 kernel/entry/common.c:231
 exc_page_fault+0x590/0x8b0 arch/x86/mm/fault.c:1542
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7f08d1e419d3
Code: 03 04 25 00 00 00 00 c3 48 8b 05 38 f6 16 00 64 48 03 04 25 00 00 00 00 c3 48 8b 05 17 f4 16 00 64 48 03 04 25 00 00 00 00 c3 <48> 8b 05 8e f5 16 00 48 8b 0d 0f f4 16 00 64 48 8b 00 48 8b 00 48
RSP: 002b:00007ffe789541b8 EFLAGS: 00010206
RAX: 000000be00000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 00007f08d1f16d22 RSI: 00007f08d20ad6ed RDI: 0000000000000001
RBP: 00007ffe78954480 R08: 000000000000ffff R09: 000000000000000d
R10: 00007f08d1e10b74 R11: 0000000000000206 R12: 0000000000000000
R13: 000000be23e41a7a R14: 0000000000000000 R15: 00007f08d20bb2a0
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/31 08:19 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in sys_fsconfig
2024/12/18 01:28 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in sys_fsconfig
* Struck through repros no longer work on HEAD.