BUG: MAX_LOCK_DEPTH too low!
turning off the locking correctness validator.
depth: 48 max: 48!
48 locks held by syz-executor.2/5764:
#0: ffff88807fc42420 (sb_writers#21){.+.+}-{0:0}, at: do_open fs/namei.c:3643 [inline]
#0: ffff88807fc42420 (sb_writers#21){.+.+}-{0:0}, at: path_openat+0x1ff9/0x29f0 fs/namei.c:3807
#1: ffff88805d4e08b8 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline]
#1: ffff88805d4e08b8 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: do_truncate+0x14b/0x220 fs/open.c:63
#2: ffff888063c80ab8 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x128/0x220 fs/bcachefs/io_misc.c:290
#3: ffff888063c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#3: ffff888063c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#3: ffff888063c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock fs/bcachefs/btree_iter.c:3021 [inline]
#3: ffff888063c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_path_traverse_one+0x255d/0x2dd0 fs/bcachefs/btree_iter.c:1141
#4: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#4: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#5: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#5: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#6: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#6: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#7: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#7: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#8: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#8: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#9: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#9: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#10: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#10: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#11: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#11: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#12: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#12: ffff88802af01070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#13: ffff88805ac80f38 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#13: ffff88805ac80f38 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#14: ffff88805ac81090 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#14: ffff88805ac81090 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#15: ffff88805ac811e8 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#15: ffff88805ac811e8 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#16: ffff88805ac81340 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#16: ffff88805ac81340 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#17: ffff88805ac81498 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#17: ffff88805ac81498 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#18: ffff88805ac815f0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#18: ffff88805ac815f0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#19: ffff88805ac81748 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#19: ffff88805ac81748 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#20: ffff88805ac818a0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#20: ffff88805ac818a0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#21: ffff88807f035070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#21: ffff88807f035070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#22: ffff88806d1cc070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#22: ffff88806d1cc070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#22: ffff88806d1cc070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#22: ffff88806d1cc070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#23: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#23: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#23: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#23: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#24: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#24: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#24: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#24: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#25: ffff88805d2cf070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#25: ffff88805d2cf070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#25: ffff88805d2cf070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#25: ffff88805d2cf070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#26: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#26: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#26: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#26: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#27: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#27: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#27: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#27: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#28: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: btree_node_lock_nopath_nofail fs/bcachefs/btree_locking.h:228 [inline]
#28: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_btree_node_alloc+0x198/0xf40 fs/bcachefs/btree_update_interior.c:392
#29: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: btree_split+0x1605/0x3010 fs/bcachefs/btree_update_interior.c:1674
#30: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xdec/0x12e0 fs/bcachefs/btree_iter.c:699
#31: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xdec/0x12e0 fs/bcachefs/btree_iter.c:699
#32: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xdec/0x12e0 fs/bcachefs/btree_iter.c:699
#33: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xdec/0x12e0 fs/bcachefs/btree_iter.c:699
#34: ffff88805e1f9870 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xdec/0x12e0 fs/bcachefs/btree_iter.c:699
#35: ffff888063ca68d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x821/0x1f50 fs/bcachefs/btree_update_interior.c:1195
#36: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#36: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#36: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#36: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#37: ffff88805d472728 (&dev->mutex){....}-{3:3}, at: six_trylock_intent fs/bcachefs/six.h:366 [inline]
#37: ffff88805d472728 (&dev->mutex){....}-{3:3}, at: bkey_cached_alloc fs/bcachefs/btree_key_cache.c:290 [inline]
#37: ffff88805d472728 (&dev->mutex){....}-{3:3}, at: btree_key_cache_create fs/bcachefs/btree_key_cache.c:330 [inline]
#37: ffff88805d472728 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_cached_slowpath+0x20ff/0x4d90 fs/bcachefs/btree_key_cache.c:485
#38: ffff888063c9dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline]
#38: ffff888063c9dc78 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1302 [inline]
#38: ffff888063c9dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x115f/0x1ba0 fs/bcachefs/alloc_foreground.c:1410
#39: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#39: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#39: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#39: ffff88806d1c8870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#40: ffffffff8dd33ac0 (fs_reclaim){+.+.}-{0:0}, at: might_alloc include/linux/sched/mm.h:334 [inline]
#40: ffffffff8dd33ac0 (fs_reclaim){+.+.}-{0:0}, at: slab_pre_alloc_hook mm/slub.c:3891 [inline]
#40: ffffffff8dd33ac0 (fs_reclaim){+.+.}-{0:0}, at: slab_alloc_node mm/slub.c:3981 [inline]
#40: ffffffff8dd33ac0 (fs_reclaim){+.+.}-{0:0}, at: __do_kmalloc_node mm/slub.c:4121 [inline]
#40: ffffffff8dd33ac0 (fs_reclaim){+.+.}-{0:0}, at: kmalloc_node_track_caller_noprof+0xb5/0x430 mm/slub.c:4142
#41: ffffffff8dd56a60 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: fs_reclaim_acquire mm/page_alloc.c:3818 [inline]
#41: ffffffff8dd56a60 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: fs_reclaim_acquire+0xae/0x160 mm/page_alloc.c:3809
#42: ffffc90000a18cb0 (&(&nsim_dev->trap_data->trap_report_dw)->timer){..-.}-{0:0}, at: call_timer_fn+0x11a/0x610 kernel/time/timer.c:1789
#43: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#43: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#43: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: __queue_work+0xf2/0x1020 kernel/workqueue.c:2283
#44: ffff8880b933db58 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x39e/0x1020 kernel/workqueue.c:2319
#45: ffff88801c6ba818 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline]
#45: ffff88801c6ba818 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0x9a/0x13e0 kernel/sched/core.c:4262
#46: ffff8880b933ec18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:559
#47: ffffe8ffffd5b948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: update_rq_clock_task kernel/sched/core.c:726 [inline]
#47: ffffe8ffffd5b948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: update_rq_clock kernel/sched/core.c:770 [inline]
#47: ffffe8ffffd5b948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: update_rq_clock+0x250/0xb30 kernel/sched/core.c:751
INFO: lockdep is turned off.
CPU: 1 PID: 5764 Comm: syz-executor.2 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
__lock_acquire+0x207c/0x3b30 kernel/locking/lockdep.c:5159
lock_acquire kernel/locking/lockdep.c:5754 [inline]
lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719
do_write_seqcount_begin_nested include/linux/seqlock.h:469 [inline]
do_write_seqcount_begin include/linux/seqlock.h:495 [inline]
psi_account_irqtime+0x2a3/0x510 kernel/sched/psi.c:1016
update_rq_clock_task kernel/sched/core.c:726 [inline]
update_rq_clock kernel/sched/core.c:770 [inline]
update_rq_clock+0x250/0xb30 kernel/sched/core.c:751
ttwu_queue kernel/sched/core.c:4056 [inline]
try_to_wake_up+0x56a/0x13e0 kernel/sched/core.c:4378
kick_pool+0x2a0/0x7a0 kernel/workqueue.c:1279
__queue_work+0x94d/0x1020 kernel/workqueue.c:2360
call_timer_fn+0x1a0/0x610 kernel/time/timer.c:1792
expire_timers kernel/time/timer.c:1838 [inline]
__run_timers+0x567/0xaf0 kernel/time/timer.c:2417
__run_timer_base kernel/time/timer.c:2428 [inline]
__run_timer_base kernel/time/timer.c:2421 [inline]
run_timer_base+0x111/0x190 kernel/time/timer.c:2437
run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447
handle_softirqs+0x216/0x8f0 kernel/softirq.c:554
__do_softirq kernel/softirq.c:588 [inline]
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:637 [inline]
irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_acquire+0x1f2/0x560 kernel/locking/lockdep.c:5722
Code: c1 05 3a af 96 7e 83 f8 01 0f 85 ea 02 00 00 9c 58 f6 c4 02 0f 85 d5 02 00 00 48 85 ed 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc9000322d1f8 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92000645a41 RCX: 0000000000000001
RDX: 0000000000000001 RSI: ffffffff8b2cb260 RDI: ffffffff8b900680
RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff284dc5a
R10: ffffffff9426e2d7 R11: 0000000000000170 R12: 0000000000000001
R13: 0000000000000000 R14: ffffffff8dd56a60 R15: 0000000000000000
fs_reclaim_acquire mm/page_alloc.c:3818 [inline]
fs_reclaim_acquire+0xca/0x160 mm/page_alloc.c:3809
might_alloc include/linux/sched/mm.h:334 [inline]
slab_pre_alloc_hook mm/slub.c:3891 [inline]
slab_alloc_node mm/slub.c:3981 [inline]
__do_kmalloc_node mm/slub.c:4121 [inline]
kmalloc_node_track_caller_noprof+0xb5/0x430 mm/slub.c:4142
__do_krealloc mm/slab_common.c:1183 [inline]
krealloc_noprof+0x5d/0x100 mm/slab_common.c:1216
bch2_printbuf_make_room+0x1b5/0x2d0 fs/bcachefs/printbuf.c:59
bch2_prt_printf+0x1a7/0x5b0 fs/bcachefs/printbuf.c:186
bch2_btree_path_to_text_short+0x1d4/0x310 fs/bcachefs/btree_iter.c:1476
__bch2_trans_paths_to_text+0x10c/0x1f0 fs/bcachefs/btree_iter.c:1541
bch2_trans_update_max_paths+0x193/0x360 fs/bcachefs/btree_iter.c:1577
btree_path_alloc fs/bcachefs/btree_iter.c:1674 [inline]
btree_path_clone fs/bcachefs/btree_iter.c:1235 [inline]
__bch2_btree_path_make_mut+0xa57/0x1000 fs/bcachefs/btree_iter.c:1249
bch2_btree_path_make_mut fs/bcachefs/btree_iter.h:196 [inline]
__bch2_btree_path_set_pos+0x437/0x1620 fs/bcachefs/btree_iter.c:1264
bch2_btree_path_set_pos fs/bcachefs/btree_iter.h:211 [inline]
bch2_path_get+0xce3/0xf20 fs/bcachefs/btree_iter.c:1721
bch2_trans_iter_init_common fs/bcachefs/btree_iter.h:485 [inline]
bch2_trans_iter_init fs/bcachefs/btree_iter.h:499 [inline]
__bch2_bkey_get_iter fs/bcachefs/btree_iter.h:551 [inline]
bch2_bkey_get_iter fs/bcachefs/btree_iter.h:566 [inline]
try_alloc_bucket+0x51f/0xca0 fs/bcachefs/alloc_foreground.c:301
bch2_bucket_alloc_freelist+0xab4/0x1090 fs/bcachefs/alloc_foreground.c:527
bch2_bucket_alloc_trans+0x706/0xb20 fs/bcachefs/alloc_foreground.c:649
bch2_bucket_alloc_set_trans+0x466/0xd40 fs/bcachefs/alloc_foreground.c:810
__open_bucket_add_buckets+0x991/0x12f0 fs/bcachefs/alloc_foreground.c:1058
open_bucket_add_buckets+0x116/0x200 fs/bcachefs/alloc_foreground.c:1102
bch2_alloc_sectors_start_trans+0xa41/0x1ba0 fs/bcachefs/alloc_foreground.c:1457
__bch2_btree_node_alloc+0x718/0xe20 fs/bcachefs/btree_update_interior.c:333
bch2_btree_reserve_get+0x21d/0x330 fs/bcachefs/btree_update_interior.c:547
bch2_btree_update_start+0x12a6/0x1f50 fs/bcachefs/btree_update_interior.c:1245
bch2_btree_split_leaf+0xc9/0x770 fs/bcachefs/btree_update_interior.c:1851
bch2_trans_commit_error+0x327/0xd00 fs/bcachefs/btree_trans_commit.c:918
__bch2_trans_commit+0x4eb1/0x7ad0 fs/bcachefs/btree_trans_commit.c:1138
bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline]
bch2_extent_update+0x494/0xa40 fs/bcachefs/io_write.c:326
bch2_fpunch_at+0x7e6/0xbc0 fs/bcachefs/io_misc.c:184
__bch2_resume_logged_op_truncate+0x4ce/0x7a0 fs/bcachefs/io_misc.c:260
bch2_truncate+0x1e1/0x220 fs/bcachefs/io_misc.c:291
bchfs_truncate+0x90c/0xd70 fs/bcachefs/fs-io.c:476
bch2_setattr+0x1ab/0x250 fs/bcachefs/fs.c:918
notify_change+0x742/0x11f0 fs/attr.c:497
do_truncate+0x15c/0x220 fs/open.c:65
handle_truncate fs/namei.c:3308 [inline]
do_open fs/namei.c:3654 [inline]
path_openat+0x2505/0x29f0 fs/namei.c:3807
do_filp_open+0x1dc/0x430 fs/namei.c:3834
do_sys_openat2+0x17a/0x1e0 fs/open.c:1405
do_sys_open fs/open.c:1420 [inline]
__do_sys_creat fs/open.c:1496 [inline]
__se_sys_creat fs/open.c:1490 [inline]
__x64_sys_creat+0xcd/0x120 fs/open.c:1490
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f95fc47cea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f95fd2940c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f95fc5b3f80 RCX: 00007f95fc47cea9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0
RBP: 00007f95fc4ebff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f95fc5b3f80 R15: 00007ffcee45d218
----------------
Code disassembly (best guess):
0: c1 05 3a af 96 7e 83 roll $0x83,0x7e96af3a(%rip) # 0x7e96af41
7: f8 clc
8: 01 0f add %ecx,(%rdi)
a: 85 ea test %ebp,%edx
c: 02 00 add (%rax),%al
e: 00 9c 58 f6 c4 02 0f add %bl,0xf02c4f6(%rax,%rbx,2)
15: 85 d5 test %edx,%ebp
17: 02 00 add (%rax),%al
19: 00 48 85 add %cl,-0x7b(%rax)
1c: ed in (%dx),%eax
1d: 74 01 je 0x20
1f: fb sti
20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
27: fc ff df
* 2a: 48 01 c3 add %rax,%rbx <-- trapping instruction
2d: 48 c7 03 00 00 00 00 movq $0x0,(%rbx)
34: 48 c7 43 08 00 00 00 movq $0x0,0x8(%rbx)
3b: 00
3c: 48 rex.W
3d: 8b .byte 0x8b
3e: 84 .byte 0x84
3f: 24 .byte 0x24