INFO: task kworker/u9:0:54 blocked for more than 143 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:0 state:D stack:15376 pid:54 tgid:54 ppid:2 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
six_lock_slowpath+0x660/0x1680 fs/bcachefs/six.c:499
six_lock_ip_waiter+0x117/0x160 fs/bcachefs/six.c:556
__btree_node_lock_nopath fs/bcachefs/btree_locking.h:225 [inline]
__bch2_btree_node_lock_write+0x10a/0x390 fs/bcachefs/btree_locking.c:418
__btree_node_lock_write fs/bcachefs/btree_locking.h:319 [inline]
bch2_btree_node_lock_write fs/bcachefs/btree_locking.h:327 [inline]
bch2_trans_lock_write+0x71d/0xc60 fs/bcachefs/btree_trans_commit.c:125
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:896 [inline]
__bch2_trans_commit+0x26f2/0x93c0 fs/bcachefs/btree_trans_commit.c:1121
bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline]
bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:325
bch2_write_index_default fs/bcachefs/io_write.c:373 [inline]
__bch2_write_index+0xed2/0x2140 fs/bcachefs/io_write.c:526
bch2_write_point_do_index_updates+0x32e/0x690 fs/bcachefs/io_write.c:635
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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
</TASK>
INFO: task kworker/u8:9:6287 blocked for more than 143 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:9 state:D stack:16944 pid:6287 tgid:6287 ppid:2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-bcachefs-208)
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1308
folio_lock include/linux/pagemap.h:1151 [inline]
writeback_get_folio mm/page-writeback.c:2515 [inline]
writeback_iter+0x8ad/0x12b0 mm/page-writeback.c:2609
write_cache_pages+0xb1/0x230 mm/page-writeback.c:2658
bch2_writepages+0x156/0x390 fs/bcachefs/fs-io-buffered.c:639
do_writepages+0x35f/0x880 mm/page-writeback.c:2702
__writeback_single_inode+0x14f/0x10d0 fs/fs-writeback.c:1680
writeback_sb_inodes+0x820/0x1360 fs/fs-writeback.c:1976
__writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2047
wb_writeback+0x427/0xb80 fs/fs-writeback.c:2158
wb_check_background_flush fs/fs-writeback.c:2228 [inline]
wb_do_writeback fs/fs-writeback.c:2316 [inline]
wb_workfn+0xc4b/0x1080 fs/fs-writeback.c:2343
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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
</TASK>
INFO: task kworker/0:2H:6700 blocked for more than 144 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:2H state:D stack:24400 pid:6700 tgid:6700 ppid:2 flags:0x00004000
Workqueue: bcachefs_btree_io btree_node_write_work
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
six_lock_slowpath+0x660/0x1680 fs/bcachefs/six.c:499
six_lock_ip_waiter+0x117/0x160 fs/bcachefs/six.c:556
__btree_node_lock_nopath fs/bcachefs/btree_locking.h:225 [inline]
btree_node_lock_nopath+0xa4/0x150 fs/bcachefs/btree_locking.h:241
btree_node_lock fs/bcachefs/btree_locking.h:289 [inline]
btree_path_lock_root fs/bcachefs/btree_iter.c:748 [inline]
bch2_btree_path_traverse_one+0xc39/0x2940 fs/bcachefs/btree_iter.c:1183
bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline]
bch2_btree_iter_traverse+0x699/0xc30 fs/bcachefs/btree_iter.c:1880
bch2_btree_node_update_key_get_iter+0x1a5/0x8c0 fs/bcachefs/btree_update_interior.c:2482
btree_node_write_work+0x774/0xba0 fs/bcachefs/btree_io.c:1870
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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
</TASK>
INFO: task syz.2.1685:21840 blocked for more than 144 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.1685 state:D stack:14368 pid:21840 tgid:21838 ppid:21043 flags:0x00000004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1308
folio_wait_writeback+0xb0/0x100 mm/page-writeback.c:3194
__filemap_fdatawait_range+0x17c/0x2b0 mm/filemap.c:532
file_write_and_wait_range+0x2f1/0x3c0 mm/filemap.c:791
bch2_fsync+0x13a/0x350 fs/bcachefs/fs-io.c:199
generic_write_sync include/linux/fs.h:2904 [inline]
bch2_write_iter+0x2918/0x2c10 fs/bcachefs/fs-io-buffered.c:1061
do_iter_readv_writev+0x600/0x880
vfs_writev+0x376/0xba0 fs/read_write.c:1050
do_pwritev fs/read_write.c:1146 [inline]
__do_sys_pwritev2 fs/read_write.c:1204 [inline]
__se_sys_pwritev2+0x196/0x2b0 fs/read_write.c:1195
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:0x7f27f5785d29
RSP: 002b:00007f27f35f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f27f5975fa0 RCX: 00007f27f5785d29
RDX: 0000000000000001 RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 00007f27f5801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7b R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f27f5975fa0 R15: 00007ffc32747968
</TASK>
INFO: task syz.2.1685:21881 blocked for more than 144 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.1685 state:D stack:25144 pid:21881 tgid:21838 ppid:21043 flags:0x00000006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1308
folio_wait_writeback+0xb0/0x100 mm/page-writeback.c:3194
folio_prepare_writeback mm/page-writeback.c:2474 [inline]
writeback_get_folio mm/page-writeback.c:2516 [inline]
writeback_iter+0xa13/0x12b0 mm/page-writeback.c:2609
write_cache_pages+0xb1/0x230 mm/page-writeback.c:2658
bch2_writepages+0x156/0x390 fs/bcachefs/fs-io-buffered.c:639
do_writepages+0x35f/0x880 mm/page-writeback.c:2702
filemap_fdatawrite_wbc mm/filemap.c:397 [inline]
__filemap_fdatawrite_range mm/filemap.c:430 [inline]
file_write_and_wait_range+0x2a3/0x3c0 mm/filemap.c:787
bch2_fsync+0x13a/0x350 fs/bcachefs/fs-io.c:199
generic_write_sync include/linux/fs.h:2904 [inline]
bch2_write_iter+0x2918/0x2c10 fs/bcachefs/fs-io-buffered.c:1061
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
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:0x7f27f5785d29
RSP: 002b:00007f27f35d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f27f5976080 RCX: 00007f27f5785d29
RDX: 000000000000004d RSI: 0000000020000280 RDI: 0000000000000004
RBP: 00007f27f5801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f27f5976080 R15: 00007ffc32747968
</TASK>
INFO: task syz.2.1685:21882 blocked for more than 145 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.1685 state:D stack:25592 pid:21882 tgid:21838 ppid:21043 flags:0x00000004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1308
__folio_lock mm/filemap.c:1646 [inline]
folio_lock include/linux/pagemap.h:1151 [inline]
__filemap_get_folio+0x14c/0x940 mm/filemap.c:1899
folio_hole_offset fs/bcachefs/fs-io-pagecache.c:752 [inline]
bch2_seek_pagecache_hole+0xc1/0x7a0 fs/bcachefs/fs-io-pagecache.c:789
bch2_seek_hole fs/bcachefs/fs-io.c:960 [inline]
bch2_llseek+0xc6b/0x2a00 fs/bcachefs/fs-io.c:1004
vfs_llseek fs/read_write.c:382 [inline]
ksys_lseek fs/read_write.c:395 [inline]
__do_sys_lseek fs/read_write.c:405 [inline]
__se_sys_lseek fs/read_write.c:403 [inline]
__x64_sys_lseek+0x14c/0x1e0 fs/read_write.c:403
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:0x7f27f5785d29
RSP: 002b:00007f27f35b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000008
RAX: ffffffffffffffda RBX: 00007f27f5976160 RCX: 00007f27f5785d29
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f27f5801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f27f5976160 R15: 00007ffc32747968
</TASK>
INFO: task bch-reclaim/loo:21859 blocked for more than 145 seconds.
Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:26320 pid:21859 tgid:21859 ppid:2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
six_lock_slowpath+0x660/0x1680 fs/bcachefs/six.c:499
six_lock_ip_waiter+0x117/0x160 fs/bcachefs/six.c:556
__btree_node_lock_nopath fs/bcachefs/btree_locking.h:225 [inline]
btree_node_lock_nopath+0xa4/0x150 fs/bcachefs/btree_locking.h:241
btree_node_lock fs/bcachefs/btree_locking.h:289 [inline]
btree_path_lock_root fs/bcachefs/btree_iter.c:748 [inline]
bch2_btree_path_traverse_one+0xc39/0x2940 fs/bcachefs/btree_iter.c:1183
bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline]
bch2_btree_iter_traverse+0x699/0xc30 fs/bcachefs/btree_iter.c:1880
btree_key_cache_flush_pos fs/bcachefs/btree_key_cache.c:427 [inline]
bch2_btree_key_cache_journal_flush+0x8e1/0xe70 fs/bcachefs/btree_key_cache.c:512
journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565
__bch2_journal_reclaim+0x789/0xda0 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
</TASK>
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by kworker/u8:3/52:
4 locks held by kworker/u9:0/54:
#0: ffff88807f1be148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88807f1be148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90000be7d00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000be7d00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff888035440128 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:194 [inline]
#2: ffff888035440128 (bcachefs_btree){+.+.}-{0:0}, at: bch2_btree_path_traverse_all fs/bcachefs/btree_iter.c:1003 [inline]
#2: ffff888035440128 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0xde0/0x1bf0 fs/bcachefs/btree_iter.c:3128
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3053
2 locks held by kworker/u8:6/1157:
2 locks held by kworker/u8:7/2988:
2 locks held by getty/5571:
#0: ffff8880315220a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/u8:9/6287:
#0: ffff8881416b8948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff8881416b8948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90003137d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90003137d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff88804c2c20e0 (&type->s_umount_key#60){++++}-{4:4}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562
4 locks held by kworker/0:2H/6700:
#0: ffff88807c094148 ((wq_completion)bcachefs_btree_io){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88807c094148 ((wq_completion)bcachefs_btree_io){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc900041bfd00 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc900041bfd00 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#2: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#2: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#3: ffff88805ce48128 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#3: ffff88805ce48128 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#3: ffff88805ce48128 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
2 locks held by kworker/u8:1/17395:
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90003c8fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90003c8fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
6 locks held by syz-executor/20701:
1 lock held by syz.2.1685/21840:
#0: ffff88804c2c2420 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline]
#0: ffff88804c2c2420 (sb_writers#15){.+.+}-{0:0}, at: vfs_writev+0x2d1/0xba0 fs/read_write.c:1048
2 locks held by syz.2.1685/21881:
#0: ffff888034a75978 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1191
#1: ffff88804c2c2420 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline]
#1: ffff88804c2c2420 (sb_writers#15){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:675
3 locks held by syz.2.1685/21882:
#0: ffff888021f8a638 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1191
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#2: ffff88806a944128 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked fs/bcachefs/btree_locking.h:194 [inline]
#2: ffff88806a944128 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9b0/0x1bf0 fs/bcachefs/btree_iter.c:3125
4 locks held by bch-reclaim/loo/21859:
#0: ffff888050a4b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#1: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#2: ffff88804eb1c128 (bcachefs_btree){+.+.}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#2: ffff88804eb1c128 (bcachefs_btree){+.+.}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#2: ffff88804eb1c128 (bcachefs_btree){+.+.}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#3: ffff888050a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x128/0xe70 fs/bcachefs/btree_key_cache.c:492
1 lock held by syz-executor/23486:
1 lock held by syz.9.1947/24148:
1 lock held by rm/24167:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__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:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
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
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 2988 Comm: kworker/u8:7 Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: bat_events batadv_nc_worker
RIP: 0010:rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
RIP: 0010:rcu_read_lock include/linux/rcupdate.h:849 [inline]
RIP: 0010:batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
RIP: 0010:batadv_nc_worker+0xe6/0x610 net/batman-adv/network-coding.c:719
Code: 49 03 2e e8 7c f0 f9 f5 48 8d 05 00 00 00 00 48 c7 c7 e0 7a 93 8e 31 f6 31 d2 b9 02 00 00 00 45 31 c0 45 31 c9 48 89 44 24 10 <50> e8 e4 ae ee f5 48 83 c4 08 e8 6b d2 34 00 41 89 c6 31 ff 89 c6
RSP: 0018:ffffc9000c057b58 EFLAGS: 00000246
RAX: ffffffff8b8bfedb RBX: ffff88803399b100 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e937ae0
RBP: ffff88806ea58800 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff2030a7f R12: ffff888062f7cd80
R13: 0000000000000100 R14: ffff88803399b100 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f77d1b47ab8 CR3: 000000002f0b2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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
</TASK>