INFO: task syz.1.126:6792 blocked for more than 143 seconds. Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.126 state:D stack:18288 pid:6792 tgid:6791 ppid:5826 task_flags:0x400140 flags:0x00020004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_read_slowpath kernel/locking/rwsem.c:1084 [inline] __down_read_common kernel/locking/rwsem.c:1248 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0x6ff/0xa50 kernel/locking/rwsem.c:1526 inode_lock_shared include/linux/fs.h:877 [inline] lookup_slow+0x45/0x70 fs/namei.c:1833 walk_component fs/namei.c:2138 [inline] link_path_walk+0x969/0xeb0 fs/namei.c:2503 path_openat+0x26d/0x35d0 fs/namei.c:4035 do_filp_open+0x284/0x4e0 fs/namei.c:4066 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fec7538e969 RSP: 002b:00007fec761d2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fec755b5fa0 RCX: 00007fec7538e969 RDX: 0000000000000042 RSI: 0000200000001800 RDI: ffffffffffffff9c RBP: 00007fec75410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fec755b5fa0 R15: 00007ffd45864238 INFO: task syz.1.126:6841 blocked for more than 144 seconds. Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.126 state:D stack:24616 pid:6841 tgid:6791 ppid:5826 task_flags:0x400140 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b33/0x51f0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917 rwsem_down_read_slowpath kernel/locking/rwsem.c:1084 [inline] __down_read_common kernel/locking/rwsem.c:1248 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0x6ff/0xa50 kernel/locking/rwsem.c:1526 inode_lock_shared include/linux/fs.h:877 [inline] lookup_slow+0x45/0x70 fs/namei.c:1833 walk_component+0x2f4/0x420 fs/namei.c:2138 lookup_last fs/namei.c:2636 [inline] path_lookupat+0x169/0x440 fs/namei.c:2660 do_o_path+0x97/0x230 fs/namei.c:4010 path_openat+0x2ef4/0x35d0 fs/namei.c:4032 do_filp_open+0x284/0x4e0 fs/namei.c:4066 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_open fs/open.c:1452 [inline] __se_sys_open fs/open.c:1448 [inline] __x64_sys_open+0x226/0x280 fs/open.c:1448 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fec7538e969 RSP: 002b:00007fec7616f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fec755b6240 RCX: 00007fec7538e969 RDX: 0000000000000006 RSI: 00000000003d1c7f RDI: 0000200000000240 RBP: 00007fec75410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fec755b6240 R15: 00007ffd45864238 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: #0: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 2 locks held by kworker/u8:0/12: 1 lock held by khungtaskd/31: #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 3 locks held by kworker/u8:7/2925: #0: ffff8881422e5948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8881422e5948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000adf7c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000adf7c60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff88802960a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562 2 locks held by getty/5582: #0: ffff8880314bd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036db2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 2 locks held by kworker/u8:8/6580: #0: ffff8881405eb948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8881405eb948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000b3b7c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000b3b7c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 1 lock held by syz.1.126/6792: #0: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:877 [inline] #0: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: lookup_slow+0x45/0x70 fs/namei.c:1833 5 locks held by syz.1.126/6839: #0: ffff88802960a420 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: open_last_lookups fs/namei.c:3797 [inline] #1: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: path_openat+0x8af/0x35d0 fs/namei.c:4036 #2: ffff88805977a390 (&inode->ei_update_lock){+.+.}-{4:4}, at: __bch2_create+0x359/0xf40 fs/bcachefs/fs.c:550 #3: ffff888065204228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888065204228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888065204228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3199 #4: ffff888065226590 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179 1 lock held by syz.1.126/6841: #0: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:877 [inline] #0: ffff888059779fa8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: lookup_slow+0x45/0x70 fs/namei.c:1833 2 locks held by bch-copygc/loop/6819: 2 locks held by syz-executor/7767: #0: ffff88805922a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88805922a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88805922a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff88804c480278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:637 2 locks held by syz.7.269/8308: #0: ffff88802960a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88802960a0e0 (&type->s_umount_key#85){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888075f987d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888075f987d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x270/0xb50 fs/fs-writeback.c:2831 3 locks held by dhcpcd-run-hook/8341: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 7767 Comm: syz-executor Not tainted 6.15.0-rc3-syzkaller-00032-ga79be02bba5c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:write_comp_data kernel/kcov.c:245 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x8/0x90 kernel/kcov.c:314 Code: 44 0a 20 c3 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 4c 8b 04 24 <65> 48 8b 14 25 08 10 65 93 65 8b 05 78 4f a2 11 25 00 01 ff 00 74 RSP: 0018:ffffc90000a08e50 EFLAGS: 00000046 RAX: ffffffff81aff981 RBX: ffff8880b8727704 RCX: ffff888027335a00 RDX: 0000000000010000 RSI: 0000000000000010 RDI: 0000000000000000 RBP: ffff8880b87276c0 R08: ffffffff81aff98b R09: fffff52000141184 R10: dffffc0000000000 R11: fffff52000141184 R12: 0000000000000010 R13: ffff8880b87276c0 R14: 7fffffffffffffff R15: 00000048d7a2368c FS: 000055556ea17500(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a393c20950 CR3: 0000000024dc2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __next_base kernel/time/hrtimer.c:499 [inline] __hrtimer_next_event_base+0x2b/0x280 kernel/time/hrtimer.c:519 __hrtimer_get_next_event kernel/time/hrtimer.c:587 [inline] hrtimer_update_next_event kernel/time/hrtimer.c:613 [inline] hrtimer_interrupt+0x48a/0xa40 kernel/time/hrtimer.c:1890 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x11/0x70 kernel/kcov.c:217 Code: 5b e9 03 36 5c 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 08 10 65 93 <65> 8b 15 b8 53 a2 11 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc9000433f558 EFLAGS: 00000a06 RAX: ffffffff81a1ce8c RBX: ffffc9000433f770 RCX: ffff888027335a00 RDX: ffffc9000433f760 RSI: ffffc9000433f770 RDI: 0000000000000000 RBP: ffffc9000433f710 R08: ffffffff81a18978 R09: fffffbfff1d83394 R10: dffffc0000000000 R11: fffffbfff1d83394 R12: ffffc9000433f770 R13: dffffc0000000000 R14: ffffc9000433f760 R15: ffffc9000433f6a0 console_flush_all+0xbc/0xec0 kernel/printk/printk.c:3188 __console_flush_and_unlock kernel/printk/printk.c:3285 [inline] console_unlock+0x151/0x3b0 kernel/printk/printk.c:3325 vprintk_emit+0x761/0xa40 kernel/printk/printk.c:2450 bch2_print_maybe_redirect fs/bcachefs/super.c:110 [inline] __bch2_print+0x17c/0x220 fs/bcachefs/super.c:129 bch2_fs_read_only+0x12f6/0x1400 fs/bcachefs/super.c:377 __bch2_fs_stop+0x107/0x5b0 fs/bcachefs/super.c:638 generic_shutdown_super+0x139/0x2d0 fs/super.c:642 bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2303 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435 task_work_run+0x251/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x210 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff15a98fc97 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff35847fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007ff15aa1089d RCX: 00007ff15a98fc97 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff35848060 RBP: 00007fff35848060 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff358490f0 R13: 00007ff15aa1089d R14: 000000000004b624 R15: 00007fff35849130