INFO: task syz.4.138:6930 blocked for more than 144 seconds.
Not tainted 6.14.0-rc3-next-20250218-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.138 state:D stack:25296 pid:6930 tgid:6894 ppid:6233 task_flags:0x400040 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5373 [inline]
__schedule+0x190e/0x4c90 kernel/sched/core.c:6760
__schedule_loop kernel/sched/core.c:6837 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6852
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6909
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
inode_lock include/linux/fs.h:867 [inline]
process_measurement+0x439/0x1fb0 security/integrity/ima/ima_main.c:250
ima_file_check+0xd9/0x120 security/integrity/ima/ima_main.c:603
security_file_post_open+0xb9/0x280 security/security.c:3130
do_open fs/namei.c:3840 [inline]
path_openat+0x2ce8/0x35b0 fs/namei.c:3997
do_filp_open+0x282/0x4e0 fs/namei.c:4024
do_sys_openat2+0x13f/0x1c0 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_open fs/open.c:1451 [inline]
__se_sys_open fs/open.c:1447 [inline]
__x64_sys_open+0x225/0x280 fs/open.c:1447
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:0x7fbd9398d169
RSP: 002b:00007fbd94802038 EFLAGS: 00000246
ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fbd93ba6080 RCX: 00007fbd9398d169
RDX: 0000000000000006 RSI: 000000000014927e RDI: 00004000000000c0
RBP: 00007fbd93a0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbd93ba6080 R15: 00007ffc5def3998
Showing all locks held in the system:
4 locks held by kworker/u8:2/29:
#0: ffff88814129d148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88814129d148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000a5fc60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000a5fc60 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3319
#2: ffff88805a3940e0 (&type->s_umount_key#86){++++}-{4:4}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562
#3: ffff8880554eafe0 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x24a/0x590 fs/jfs/inode.c:102
1 lock held by khungtaskd/31:
#0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6746
5 locks held by kworker/u8:4/62:
#0: ffff8880b873e958 (&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: ffff8880b872a398 (&base->lock){-.-.}-{2:2}, at: lock_timer_base kernel/time/timer.c:1046 [inline]
#2: ffff8880b872a398 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x24a/0x10e0 kernel/time/timer.c:1127
#3: ffffffff9a92a810 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x17f/0x580 lib/debugobjects.c:818
#4: ffff8880b863e958 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598
6 locks held by kworker/1:2/1206:
2 locks held by getty/5584:
#0: ffff8880362b20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000331b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x616/0x1770 drivers/tty/n_tty.c:2211
3 locks held by kworker/0:3/5889:
3 locks held by kworker/0:5/5893:
#0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3319
#1: ffffc90004d87c60 ((work_completion)(&fw_work->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90004d87c60 ((work_completion)(&fw_work->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3319
#2: ffffffff8e9e2a10 (umhelper_sem){++++}-{4:4}, at: usermodehelper_read_lock_wait+0x14e/0x260 kernel/umh.c:246
5 locks held by syz.4.138/6895:
2 locks held by syz.4.138/6930:
#0: ffff88805a394420 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88805af98578 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff88805af98578 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: process_measurement+0x439/0x1fb0 security/integrity/ima/ima_main.c:250
5 locks held by syz.5.302/7815:
#0: ffff88804c180278 (&c->state_lock){+.+.}-{4:4}, at: bch2_fs_start+0x45/0x610 fs/bcachefs/super.c:1010
#1: ffff88804c184380 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#1: ffff88804c184380 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#1: ffff88804c184380 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e4/0xd30 fs/bcachefs/btree_iter.c:3408
#2: ffff88806d278140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff88806d278140 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff88806d278140 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7e4/0xd30 fs/bcachefs/btree_iter.c:3408
#3: ffff88804c1849b8 (&c->mark_lock){++++}-{0:0}, at: bch2_accounting_read+0x16c/0x65a0 fs/bcachefs/disk_accounting.c:702
#4: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#4: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x820 kernel/rcu/tree_exp.h:998
2 locks held by syz.0.204/7829:
1 lock held by syz.3.301/7817:
#0: ffff88805c352370 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#0: ffff88805c352370 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: do_lock_mount+0x112/0x3a0 fs/namespace.c:2773
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-rc3-next-20250218-syzkaller #0
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+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: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:148
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: 7464 Comm: syz-executor Not tainted 6.14.0-rc3-next-20250218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:kernel_text_address+0x3a/0xe0 kernel/extable.c:133
Code: 00 81 bd 01 00 00 00 48 39 c7 72 0c 48 c7 c0 cd 56 11 8c 48 39 c3 72 0c 48 89 df e8 f0 55 9e ff 85 c0 74 0b 89 e8 5b 41 5e 5d cc cc cc cc 48 c7 c0 80 62 3d 90 48 c1 e8 03 48 b9 00 00 00 00
RSP: 0018:ffffc900000078a8 EFLAGS: 00000293
RAX: 0000000000000001 RBX: ffffffff810014ca RCX: ffffc90000007703
RDX: 0000000000000002 RSI: ffffffff8c2aaf60 RDI: ffffffff810014ca
RBP: ffffc90000007970 R08: ffffffff903da477 R09: 1ffffffff207b48e
R10: dffffc0000000000 R11: fffffbfff207b48f R12: ffff888035940000
R13: ffffffff81ada960 R14: dffffc0000000000 R15: 1ffff92000000f25
FS: 000055558768a500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe93a90f68 CR3: 000000006bda2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__kernel_text_address+0xd/0x40 kernel/extable.c:79
unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:369
arch_stack_walk+0xfd/0x150 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
ref_tracker_free+0x105/0x7e0 lib/ref_tracker.c:239
netdev_tracker_free include/linux/netdevice.h:4302 [inline]
netdev_put include/linux/netdevice.h:4319 [inline]
dst_destroy+0x105/0x360 net/core/dst.c:114
rcu_do_batch kernel/rcu/tree.c:2566 [inline]
rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2822
handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561
__do_softirq kernel/softirq.c:595 [inline]
invoke_softirq kernel/softirq.c:435 [inline]
__irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662
irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa6/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+0x700/0xa10 kernel/printk/printk.c:2431
Code: 00 e8 c4 15 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 b2 15 21 00 eb 06 e8 ab 15 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 60 6f a1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc900031b7a00 EFLAGS: 00000293
RAX: ffffffff81a0e935 RBX: 0000000000000000 RCX: ffff888035940000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900031b7b10 R08: ffffffff81a0e90e R09: 1ffffffff28ad636
R10: dffffc0000000000 R11: fffffbfff28ad637 R12: dffffc0000000000
R13: 1ffff92000636f44 R14: ffffffff81a0e770 R15: ffffc900031b7aa0
bch2_print_maybe_redirect fs/bcachefs/super.c:117 [inline]
__bch2_print+0x17a/0x220 fs/bcachefs/super.c:136
__bch2_fs_stop+0xcd/0x5c0 fs/bcachefs/super.c:629
generic_shutdown_super+0x139/0x2d0 fs/super.c:642
bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2312
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1424
task_work_run+0x24f/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/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3e4e98e497
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:00007ffe93a91718 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f3e4ea0e08c RCX: 00007f3e4e98e497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe93a917d0
RBP: 00007ffe93a917d0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe93a92860
R13: 00007f3e4ea0e08c R14: 0000000000050f11 R15: 00007ffe93a928a0