INFO: task syz.4.49:6198 blocked for more than 143 seconds.
Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.49 state:D stack:20144 pid:6198 tgid:6196 ppid:5832 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_write_slowpath+0xedd/0x1420 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+0x4ad/0x1fe0 security/integrity/ima/ima_main.c:258
ima_file_check+0xdb/0x130 security/integrity/ima/ima_main.c:611
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_creat fs/open.c:1522 [inline]
__se_sys_creat fs/open.c:1516 [inline]
__x64_sys_creat+0x124/0x170 fs/open.c:1516
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:0x7f268498d169
RSP: 002b:00007f26827f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f2684ba6080 RCX: 00007f268498d169
RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000200000000180
RBP: 00007f2684a0e990 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f2684ba6080 R15: 00007ffc2db12098
INFO: task syz.4.49:6233 blocked for more than 143 seconds.
Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.49 state:D stack:17864 pid:6233 tgid:6196 ppid:5832 task_flags:0x400040 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_write_slowpath+0xedd/0x1420 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]
vfs_unlink+0xe4/0x650 fs/namei.c:4533
do_unlinkat+0x442/0x7b0 fs/namei.c:4608
__do_sys_unlink fs/namei.c:4654 [inline]
__se_sys_unlink fs/namei.c:4652 [inline]
__x64_sys_unlink+0x47/0x50 fs/namei.c:4652
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:0x7f268498d169
RSP: 002b:00007f26827d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007f2684ba6160 RCX: 00007f268498d169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000001c0
RBP: 00007f2684a0e990 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f2684ba6160 R15: 00007ffc2db12098
Showing all locks held in the system:
3 locks held by kworker/u8:1/13:
#0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88801bef3948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000127c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000127c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900de7d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608
1 lock held by khungtaskd/31:
#0: ffffffff8ed3dfa0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8ed3dfa0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8ed3dfa0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764
2 locks held by getty/5585:
#0: ffff8880348300a0 (&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
5 locks held by syz.4.49/6197:
#0: ffff888032c6c420 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63
#2: ffff888056700a58 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x1ae/0x340 fs/bcachefs/io_misc.c:295
#3: ffff888056704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff888056704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff888056704210 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3199
#4: ffff888056726550 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
2 locks held by syz.4.49/6198:
#0: ffff888032c6c420 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: process_measurement+0x4ad/0x1fe0 security/integrity/ima/ima_main.c:258
3 locks held by syz.4.49/6233:
#0: ffff888032c6c420 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88805aa59078 (&sb->s_type->i_mutex_key#23/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:902 [inline]
#1: ffff88805aa59078 (&sb->s_type->i_mutex_key#23/1){+.+.}-{4:4}, at: do_unlinkat+0x26c/0x7b0 fs/namei.c:4595
#2: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#2: ffff88805aa59810 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: vfs_unlink+0xe4/0x650 fs/namei.c:4533
4 locks held by bch-copygc/loop/6227:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 6227 Comm: bch-copygc/loop Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:-1 [inline]
RIP: 0010:raw_atomic_try_cmpxchg_acquire include/linux/atomic/atomic-arch-fallback.h:2170 [inline]
RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1302 [inline]
RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:111 [inline]
RIP: 0010:do_raw_spin_lock+0x166/0x370 kernel/locking/spinlock_debug.c:116
Code: 00 00 00 e8 cc 5c 8b 00 4c 89 f7 be 04 00 00 00 e8 bf 5c 8b 00 41 0f b6 44 1d 00 84 c0 48 89 da 0f 85 8f 01 00 00 8b 44 24 60 01 00 00 00 f0 41 0f b1 0c 24 0f 85 e1 00 00 00 65 8b 1d 26 dd
RSP: 0018:ffffc9000b137000 EFLAGS: 00000097
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffc9000b137003
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffffc9000b137060
RBP: ffffc9000b1370d0 R08: 0000000000000003 R09: fffff52001626e0c
R10: dffffc0000000000 R11: fffff52001626e0c R12: ffffffff9a9baf18
R13: 1ffff92001626e0c R14: ffffc9000b137060 R15: 1ffffffff35375e4
FS: 0000000000000000(0000) GS:ffff888124fc9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005616fe844c98 CR3: 000000000eb38000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xe4/0x130 kernel/locking/spinlock.c:162
__debug_check_no_obj_freed lib/debugobjects.c:1088 [inline]
debug_check_no_obj_freed+0x245/0x590 lib/debugobjects.c:1129
slab_free_hook mm/slub.c:2320 [inline]
slab_free mm/slub.c:4646 [inline]
kfree+0x11b/0x430 mm/slub.c:4845
move_buckets_wait+0x1087/0x1350 fs/bcachefs/movinggc.c:134
bch2_copygc_get_buckets fs/bcachefs/movinggc.c:158 [inline]
bch2_copygc+0x2ae/0x4db0 fs/bcachefs/movinggc.c:221
bch2_copygc_thread+0x705/0xc00 fs/bcachefs/movinggc.c:398
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