INFO: task syz.8.134:7127 blocked for more than 143 seconds. Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.134 state:D stack:26544 pid:7127 tgid:7104 ppid:6505 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5367 [inline] __schedule+0x1ac3/0x5090 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x163/0x360 kernel/sched/core.c:6840 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6897 rwsem_down_write_slowpath+0xeeb/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+0x1da/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 ima_file_check+0xdb/0x130 security/integrity/ima/ima_main.c:603 security_file_post_open+0xb9/0x280 security/security.c:3130 do_open fs/namei.c:3847 [inline] path_openat+0x2cf7/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 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/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb246f8d169 RSP: 002b:00007fb247e6f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb2471a6080 RCX: 00007fb246f8d169 RDX: 0000000000105042 RSI: 0000200000000540 RDI: ffffffffffffff9c RBP: 00007fb24700e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001db R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb2471a6080 R15: 00007ffc512caca8 INFO: task syz.8.134:7128 blocked for more than 144 seconds. Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.134 state:D stack:22416 pid:7128 tgid:7104 ppid:6505 task_flags:0x400140 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5367 [inline] __schedule+0x1ac3/0x5090 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x163/0x360 kernel/sched/core.c:6840 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6897 rwsem_down_write_slowpath+0xeeb/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+0x1da/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 ima_file_check+0xdb/0x130 security/integrity/ima/ima_main.c:603 security_file_post_open+0xb9/0x280 security/security.c:3130 do_open fs/namei.c:3847 [inline] path_openat+0x2cf7/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 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/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb246f8d169 RSP: 002b:00007fb247e4e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb2471a6160 RCX: 00007fb246f8d169 RDX: 0000000000143042 RSI: 0000200000000040 RDI: ffffffffffffff9c RBP: 00007fb24700e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb2471a6160 R15: 00007ffc512caca8 INFO: task syz.8.134:7133 blocked for more than 145 seconds. Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.134 state:D stack:26240 pid:7133 tgid:7104 ppid:6505 task_flags:0x400040 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5367 [inline] __schedule+0x1ac3/0x5090 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x163/0x360 kernel/sched/core.c:6840 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6897 rwsem_down_write_slowpath+0xeeb/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+0x1da/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:867 [inline] process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 ima_file_check+0xdb/0x130 security/integrity/ima/ima_main.c:603 security_file_post_open+0xb9/0x280 security/security.c:3130 do_open fs/namei.c:3847 [inline] path_openat+0x2cf7/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 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/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb246f8d169 RSP: 002b:00007fb247e0c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb2471a6320 RCX: 00007fb246f8d169 RDX: 0000000000143042 RSI: 0000200000000040 RDI: ffffffffffffff9c RBP: 00007fb24700e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb2471a6320 R15: 00007ffc512caca8 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: #0: ffffffff8eb3fc78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8eb3fc78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 1 lock held by khungtaskd/31: #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6761 3 locks held by kworker/u8:2/36: 3 locks held by kworker/0:1H/43: #0: ffff8880b8639958 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:595 #1: ffff8880b8623b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987 #2: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #2: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #2: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: xa_find_after+0x1b3/0x700 lib/xarray.c:2109 1 lock held by udevd/5197: 2 locks held by getty/5588: #0: ffff8880312170a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fd62f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x53d/0x16b0 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:7/5923: #0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90004e57c60 (free_ipc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90004e57c60 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff8eb3fc78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #2: ffffffff8eb3fc78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998 5 locks held by syz.8.134/7105: #0: ffff888075420420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556 #1: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63 #2: ffff888067980a50 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x1ae/0x340 fs/bcachefs/io_misc.c:294 #3: ffff888067984378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888067984378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888067984378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3408 #4: ffff8880679a66d0 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x1680 fs/bcachefs/btree_update_interior.c:1182 1 lock held by syz.8.134/7127: #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 1 lock held by syz.8.134/7128: #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 1 lock held by syz.8.134/7130: #0: ffff888075420420 (sb_writers#12){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x220 fs/splice.c:1157 1 lock held by syz.8.134/7133: #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #0: ffff888059aa6b98 (&sb->s_type->i_mutex_key#20){++++}-{4:4}, at: process_measurement+0x43b/0x1fb0 security/integrity/ima/ima_main.c:250 1 lock held by syz-executor/8708: #0: ffff8880344b00e0 (&type->s_umount_key#68){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880344b00e0 (&type->s_umount_key#68){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880344b00e0 (&type->s_umount_key#68){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #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:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 kthread+0x7a9/0x920 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 8710 Comm: syz-executor Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:ttwu_do_activate+0x1/0x8e0 kernel/sched/core.c:3703 Code: 10 80 e1 07 80 c1 03 38 c1 7c bc 48 8b 7c 24 10 e8 d4 a8 97 00 eb b0 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 30 49 89 cf 89 54 24 08 48 89 RSP: 0018:ffffc90000007bd0 EFLAGS: 00000082 RAX: 1ffff110170c7491 RBX: ffff8880b863a4d8 RCX: ffffc90000007c60 RDX: 0000000000000088 RSI: ffff88807a6fda00 RDI: ffff8880b8639940 RBP: ffffc90000007d08 R08: ffffffff8161e3a1 R09: fffff52000000f64 R10: dffffc0000000000 R11: fffff52000000f64 R12: ffff8880b8639940 R13: 1ffff92000000f8d R14: ffffc90000007c60 R15: dffffc0000000000 FS: 000055556b70e500(0000) GS:ffff88812525a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe74909e5e8 CR3: 000000004c978000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ttwu_queue kernel/sched/core.c:3991 [inline] try_to_wake_up+0x93a/0x15d0 kernel/sched/core.c:4319 hrtimer_wakeup+0x62/0x80 kernel/time/hrtimer.c:2037 __run_hrtimer kernel/time/hrtimer.c:1801 [inline] __hrtimer_run_queues+0x5a6/0xd40 kernel/time/hrtimer.c:1865 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1927 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:console_trylock_spinning kernel/printk/printk.c:2061 [inline] RIP: 0010:vprintk_emit+0x702/0xa10 kernel/printk/printk.c:2431 Code: 00 e8 22 5d 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 10 5d 21 00 eb 06 e8 09 5d 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 00 63 a1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc90004db7b20 EFLAGS: 00000293 RAX: ffffffff81a1f527 RBX: 0000000000000000 RCX: ffff88807e860000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90004db7c30 R08: ffffffff81a1f500 R09: 1ffffffff2077a6e R10: dffffc0000000000 R11: fffffbfff2077a6f R12: dffffc0000000000 R13: 1ffff920009b6f68 R14: ffffffff81a1f362 R15: ffffc90004db7bc0 bch2_print_maybe_redirect fs/bcachefs/super.c:117 [inline] __bch2_print+0x17c/0x220 fs/bcachefs/super.c:136 bch2_fs_free+0x33b/0x3c0 fs/bcachefs/super.c:684 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/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd3bdd8e497 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:00007ffffae04ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fd3bde0e08c RCX: 00007fd3bdd8e497 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffffae04fa0 RBP: 00007ffffae04fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffffae06030 R13: 00007fd3bde0e08c R14: 00000000000472d2 R15: 00007ffffae06070