INFO: task syz-executor:5830 blocked for more than 143 seconds.
Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor state:D stack:19472 pid:5830 tgid:5830 ppid:1 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5328 [inline]
__schedule+0x17fa/0x4bd0 kernel/sched/core.c:6693
__schedule_loop kernel/sched/core.c:6770 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6785
schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
__closure_sync_timeout+0x2d8/0x450 lib/closure.c:217
closure_sync_timeout include/linux/closure.h:206 [inline]
__bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1812
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline]
bch2_btree_update_start+0x11a2/0x14e0 fs/bcachefs/btree_update_interior.c:1269
bch2_btree_split_leaf+0x123/0x840 fs/bcachefs/btree_update_interior.c:1856
bch2_trans_commit_error+0x212/0x1390 fs/bcachefs/btree_trans_commit.c:942
__bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140
bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline]
bch2_inode_delete_keys+0xae6/0x1440 fs/bcachefs/inode.c:986
bch2_inode_rm+0x17d/0xf60 fs/bcachefs/inode.c:1015
bch2_evict_inode+0x20a/0x3f0 fs/bcachefs/fs.c:1836
evict+0x4e8/0x9b0 fs/inode.c:725
do_unlinkat+0x512/0x830 fs/namei.c:4540
__do_sys_unlink fs/namei.c:4581 [inline]
__se_sys_unlink fs/namei.c:4579 [inline]
__x64_sys_unlink+0x47/0x50 fs/namei.c:4579
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:0x7f174537dcc7
RSP: 002b:00007ffd4199fe98 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f174537dcc7
RDX: 00007ffd4199fec0 RSI: 00007ffd4199ff50 RDI: 00007ffd4199ff50
RBP: 00007ffd4199ff50 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd419a1040
R13: 00007f17453f14b4 R14: 0000000000018444 R15: 00007ffd419a2100
INFO: task bch-reclaim/loo:6500 blocked for more than 145 seconds.
Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:22768 pid:6500 tgid:6500 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5328 [inline]
__schedule+0x17fa/0x4bd0 kernel/sched/core.c:6693
__schedule_loop kernel/sched/core.c:6770 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6785
schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
__closure_sync_timeout+0x2d8/0x450 lib/closure.c:217
closure_sync_timeout include/linux/closure.h:206 [inline]
__bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1812
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline]
bch2_btree_update_start+0x11a2/0x14e0 fs/bcachefs/btree_update_interior.c:1269
bch2_btree_split_leaf+0x123/0x840 fs/bcachefs/btree_update_interior.c:1856
bch2_trans_commit_error+0x212/0x1390 fs/bcachefs/btree_trans_commit.c:942
__bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140
bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline]
bch2_btree_write_buffer_flush_locked+0x4f03/0x59f0 fs/bcachefs/btree_write_buffer.c:429
btree_write_buffer_flush_seq+0x1a43/0x1bc0 fs/bcachefs/btree_write_buffer.c:510
bch2_btree_write_buffer_journal_flush+0x4e/0x80 fs/bcachefs/btree_write_buffer.c:525
journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565
__bch2_journal_reclaim+0x789/0xdc0 fs/bcachefs/journal_reclaim.c:698
bch2_journal_reclaim_thread+0x174/0x560 fs/bcachefs/journal_reclaim.c:740
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
INFO: task bch-copygc/loop:6511 blocked for more than 148 seconds.
Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-copygc/loop state:D stack:17104 pid:6511 tgid:6511 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5328 [inline]
__schedule+0x17fa/0x4bd0 kernel/sched/core.c:6693
__schedule_loop kernel/sched/core.c:6770 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6785
schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
__closure_sync_timeout+0x2d8/0x450 lib/closure.c:217
closure_sync_timeout include/linux/closure.h:206 [inline]
__bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1812
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline]
__bch2_write+0x562a/0x5dd0 fs/bcachefs/io_write.c:1501
bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1631
closure_queue include/linux/closure.h:270 [inline]
closure_call include/linux/closure.h:432 [inline]
bch2_data_update_read_done+0x22e/0x330 fs/bcachefs/data_update.c:426
move_write fs/bcachefs/move.c:133 [inline]
bch2_moving_ctxt_do_pending_writes+0x44c/0x8d0 fs/bcachefs/move.c:164
move_buckets_wait+0x2ba/0x1290 fs/bcachefs/movinggc.c:120
bch2_copygc_thread+0x83f/0xc20 fs/bcachefs/movinggc.c:392
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
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720
2 locks held by getty/5587:
#0: ffff88814d6790a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by syz-executor/5830:
#0: ffff88802865c420 (sb_writers#28){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline]
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline]
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x97/0x1a0 fs/bcachefs/btree_iter.c:3053
#2: ffff88806d8266d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
4 locks held by bch-reclaim/loo/6500:
#0: ffff88806d84b0a8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline]
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline]
#1: ffff88806d804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7de/0xd20 fs/bcachefs/btree_iter.c:3228
#2: ffff88806d804740 (&wb->flushing.lock){+.+.}-{3:3}, at: btree_write_buffer_flush_seq+0x1a39/0x1bc0 fs/bcachefs/btree_write_buffer.c:509
#3: ffff88806d8266d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
2 locks held by syz-executor/7056:
#0: ffff888063b680e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff888063b680e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff888063b680e0 (&type->s_umount_key#62){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffffffff8e9f91e8 (lock#3){+.+.}-{3:3}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:843
2 locks held by syz-executor/7110:
#0: ffff88802d7760e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88802d7760e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88802d7760e0 (&type->s_umount_key#62){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffffffff8e9f91e8 (lock#3){+.+.}-{3:3}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:843
2 locks held by syz.5.133/7207:
2 locks held by syz.5.133/7208:
#0: ffff888065a50420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
#1: ffff888078e3c180 (&type->i_mutex_dir_key#20/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:850 [inline]
#1: ffff888078e3c180 (&type->i_mutex_dir_key#20/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 fs/namei.c:4026
1 lock held by syz.8.296/8736:
#0: ffff88814e8220e0 (&type->s_umount_key#32){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88814e8220e0 (&type->s_umount_key#32){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
2 locks held by sed/8918:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
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:223 [inline]
watchdog+0xff4/0x1040 kernel/hung_task.c:379
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
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 7207 Comm: syz.5.133 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:xas_descend lib/xarray.c:217 [inline]
RIP: 0010:xas_load+0x443/0x5c0 lib/xarray.c:245
Code: f9 e9 32 fe ff ff e8 0c f6 da f5 eb 05 e8 05 f6 da f5 48 8b 5c 24 28 48 89 d8 48 c1 e8 03 0f b6 04 28 84 c0 0f 85 f5 00 00 00 <44> 88 2b 48 8b 44 24 20 0f b6 04 28 84 c0 48 8b 1c 24 0f 85 f7 00
RSP: 0018:ffffc9000b43ee00 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc9000b43eed2 RCX: 0000000000040000
RDX: ffffc90018601000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: dffffc0000000000 R08: ffffffff8bb9e17e R09: 1ffffffff2853100
R10: dffffc0000000000 R11: fffffbfff2853101 R12: ffffc9000b43eec0
R13: 0000000000000007 R14: ffff88801c707880 R15: ffff888065a507d0
FS: 00007fc58f1d56c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe4a2902c8 CR3: 0000000055d5e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
xa_load+0x1fc/0x350 lib/xarray.c:1477
list_lru_from_memcg_idx mm/list_lru.c:56 [inline]
list_lru_count_one+0x148/0x2e0 mm/list_lru.c:188
list_lru_shrink_count include/linux/list_lru.h:156 [inline]
super_cache_count+0x14f/0x2a0 fs/super.c:263
do_shrink_slab+0x86/0x1160 mm/shrinker.c:384
shrink_slab_memcg mm/shrinker.c:550 [inline]
shrink_slab+0x878/0x14d0 mm/shrinker.c:628
shrink_node_memcgs mm/vmscan.c:5919 [inline]
shrink_node+0x130f/0x2df0 mm/vmscan.c:5957
shrink_zones mm/vmscan.c:6201 [inline]
do_try_to_free_pages+0x69d/0x1b20 mm/vmscan.c:6263
try_to_free_mem_cgroup_pages+0x4b8/0xb10 mm/vmscan.c:6595
try_charge_memcg+0x8c2/0x1170 mm/memcontrol.c:2207
try_charge mm/memcontrol-v1.h:19 [inline]
charge_memcg+0xa6/0x1e0 mm/memcontrol.c:4468
__mem_cgroup_charge+0x27/0x80 mm/memcontrol.c:4483
mem_cgroup_charge include/linux/memcontrol.h:694 [inline]
filemap_add_folio+0xb3/0x650 mm/filemap.c:967
do_read_cache_folio+0x341/0x850 mm/filemap.c:3792
read_mapping_folio include/linux/pagemap.h:1011 [inline]
dir_get_folio fs/sysv/dir.c:64 [inline]
sysv_find_entry+0x16a/0x4b0 fs/sysv/dir.c:154
sysv_inode_by_name+0x98/0x2a0 fs/sysv/dir.c:370
sysv_lookup+0x6b/0xe0 fs/sysv/namei.c:38
lookup_one_qstr_excl+0x11f/0x260 fs/namei.c:1633
filename_create+0x297/0x540 fs/namei.c:4027
do_mkdirat+0xbd/0x3a0 fs/namei.c:4272
__do_sys_mkdirat fs/namei.c:4295 [inline]
__se_sys_mkdirat fs/namei.c:4293 [inline]
__x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4293
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:0x7fc590d7e719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc58f1d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fc590f36058 RCX: 00007fc590d7e719
RDX: 0000000000000000 RSI: 0000000020002040 RDI: ffffffffffffff9c
RBP: 00007fc590df1616 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc590f36058 R15: 00007ffc4794a278