BUG: MAX_LOCK_DEPTH too low! turning off the locking correctness validator. depth: 48 max: 48! 48 locks held by syz-executor.3/6513: #0: ffff888030412420 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff88806e1f5a30 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #1: ffff88806e1f5a30 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:63 #2: ffff888046a00ab0 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x16c/0x2c0 fs/bcachefs/io_misc.c:290 #3: ffff888046a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #3: ffff888046a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #3: ffff888046a04250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xb1/0x220 fs/bcachefs/btree_iter.c:2896 #4: ffff888062136070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #4: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #5: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #5: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #6: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #6: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #7: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #7: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #8: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #8: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #9: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #9: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #10: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #10: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #11: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #11: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #12: ffff888062136070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #12: ffff888062136070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512 #13: ffff88807dca49d8 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #13: ffff88807dca49d8 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #14: ffff88807a8d7070 (&dev->mutex){....}-{3:3}, at: bch2_trans_iter_init fs/bcachefs/btree_iter.h:489 [inline] #14: ffff88807a8d7070 (&dev->mutex){....}-{3:3}, at: btree_key_cache_fill fs/bcachefs/btree_key_cache.c:385 [inline] #14: ffff88807a8d7070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_cached_slowpath+0x523/0x4b00 fs/bcachefs/btree_key_cache.c:530 #15: ffff88807dca4b30 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #15: ffff88807dca4b30 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #16: ffff88807dca5340 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #16: ffff88807dca5340 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #17: ffff88807dca4f38 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #17: ffff88807dca4f38 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #18: ffff88807dca5090 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #18: ffff88807dca5090 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #19: ffff88807dca45d0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #19: ffff88807dca45d0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #20: ffff88807dca4880 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #20: ffff88807dca4880 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #21: ffff88806e141b50 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #21: ffff88806e141b50 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #22: ffff88807a8d1070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #22: ffff88807a8d1070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #23: ffff888049927870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #23: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline] #23: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:760 [inline] #23: ffff888049927870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa85/0x3250 fs/bcachefs/btree_iter.c:1178 #24: ffff88807fbee070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #24: ffff88807fbee070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510 #25: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline] #25: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline] #25: ffff888049927870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237 #26: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_nopath_nofail fs/bcachefs/btree_locking.h:228 [inline] #26: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_btree_node_alloc+0x114/0xdd0 fs/bcachefs/btree_update_interior.c:391 #27: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: btree_split+0x1ba3/0x69e0 fs/bcachefs/btree_update_interior.c:1673 #28: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xf98/0x1960 fs/bcachefs/btree_iter.c:702 #29: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xf98/0x1960 fs/bcachefs/btree_iter.c:702 #30: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xf98/0x1960 fs/bcachefs/btree_iter.c:702 #31: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xf98/0x1960 fs/bcachefs/btree_iter.c:702 #32: ffff88802a622070 (&dev->mutex){....}-{3:3}, at: bch2_trans_node_add+0xf98/0x1960 fs/bcachefs/btree_iter.c:702 #33: ffff888046a26820 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x67f/0x14e0 fs/bcachefs/btree_update_interior.c:1194 #34: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline] #34: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline] #34: ffff888049927870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237 #35: ffff88806e088b30 (&dev->mutex){....}-{3:3}, at: six_trylock_intent fs/bcachefs/six.h:366 [inline] #35: ffff88806e088b30 (&dev->mutex){....}-{3:3}, at: bkey_cached_alloc fs/bcachefs/btree_key_cache.c:289 [inline] #35: ffff88806e088b30 (&dev->mutex){....}-{3:3}, at: btree_key_cache_create fs/bcachefs/btree_key_cache.c:329 [inline] #35: ffff88806e088b30 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_cached_slowpath+0x14a2/0x4b00 fs/bcachefs/btree_key_cache.c:484 #36: ffff888046a1dbf8 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #36: ffff888046a1dbf8 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1235 [inline] #36: ffff888046a1dbf8 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x2d7/0x1f00 fs/bcachefs/alloc_foreground.c:1343 #37: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline] #37: ffff888049927870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline] #37: ffff888049927870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237 #38: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #38: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #38: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: is_bpf_text_address+0x26/0x2b0 kernel/bpf/core.c:767 #39: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #39: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #39: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_list_internal+0x4e8/0xe30 net/core/dev.c:5764 #40: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #40: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #40: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x22e/0x5f0 net/ipv4/ip_input.c:232 #41: ffff88807a1032d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2e05/0x3780 net/ipv4/tcp_ipv4.c:2328 #42: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #42: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #42: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x5f/0x1b70 net/ipv4/ip_output.c:470 #43: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #43: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #43: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x45f/0x1380 net/ipv4/ip_output.c:228 #44: ffffffff8e334e00 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #44: ffffffff8e334e00 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:833 [inline] #44: ffffffff8e334e00 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2c7/0x3ca0 net/core/dev.c:4266 #45: ffff88801c680258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline] #45: ffff88801c680258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: qdisc_run_begin include/net/sch_generic.h:196 [inline] #45: ffff88801c680258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_xmit_skb net/core/dev.c:3747 [inline] #45: ffff88801c680258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{2:2}, at: __dev_queue_xmit+0x1286/0x3ca0 net/core/dev.c:4307 #46: ffff888016ab48d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #46: ffff888016ab48d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: __netif_tx_lock include/linux/netdevice.h:4371 [inline] #46: ffff888016ab48d8 (_xmit_ETHER#2){+.-.}-{2:2}, at: sch_direct_xmit+0x1c4/0x5f0 net/sched/sch_generic.c:341 #47: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #47: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #47: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: dev_queue_xmit_nit+0x2b/0xc10 net/core/dev.c:2245 INFO: lockdep is turned off. CPU: 0 PID: 6513 Comm: syz-executor.3 Not tainted 6.9.0-rc6-syzkaller-00227-g3d25a941ea50 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 __lock_acquire+0x10c3/0x1fd0 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] dev_queue_xmit_nit+0x4c/0xc10 net/core/dev.c:2245 xmit_one net/core/dev.c:3527 [inline] dev_hard_start_xmit+0x15f/0x7e0 net/core/dev.c:3547 sch_direct_xmit+0x2b6/0x5f0 net/sched/sch_generic.c:343 __dev_xmit_skb net/core/dev.c:3760 [inline] __dev_queue_xmit+0x19eb/0x3ca0 net/core/dev.c:4307 dev_queue_xmit include/linux/netdevice.h:3091 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0xd41/0x1380 net/ipv4/ip_output.c:235 ip_local_out net/ipv4/ip_output.c:129 [inline] __ip_queue_xmit+0x118c/0x1b70 net/ipv4/ip_output.c:535 __tcp_transmit_skb+0x2557/0x3b80 net/ipv4/tcp_output.c:1462 tcp_transmit_skb net/ipv4/tcp_output.c:1480 [inline] tcp_write_xmit+0x1445/0x6100 net/ipv4/tcp_output.c:2792 __tcp_push_pending_frames+0x9b/0x360 net/ipv4/tcp_output.c:2977 tcp_push_pending_frames include/net/tcp.h:2106 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5653 [inline] tcp_rcv_established+0x110e/0x2020 net/ipv4/tcp_input.c:6081 tcp_v4_do_rcv+0x8da/0xb90 net/ipv4/tcp_ipv4.c:1906 tcp_v4_rcv+0x2e59/0x3780 net/ipv4/tcp_ipv4.c:2332 ip_protocol_deliver_rcu+0x225/0x430 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x33f/0x5f0 net/ipv4/ip_input.c:233 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 ip_local_deliver net/ipv4/ip_input.c:254 [inline] dst_input include/net/dst.h:460 [inline] ip_sublist_rcv_finish+0x3be/0x4f0 net/ipv4/ip_input.c:580 ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline] ip_sublist_rcv+0x75d/0xab0 net/ipv4/ip_input.c:639 ip_list_rcv+0x42b/0x480 net/ipv4/ip_input.c:674 __netif_receive_skb_list_ptype net/core/dev.c:5587 [inline] __netif_receive_skb_list_core+0x95a/0x980 net/core/dev.c:5635 __netif_receive_skb_list net/core/dev.c:5687 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5779 gro_normal_list include/net/gro.h:447 [inline] napi_complete_done+0x310/0x8e0 net/core/dev.c:6119 virtqueue_napi_complete drivers/net/virtio_net.c:515 [inline] virtnet_poll+0xf14/0x1ad0 drivers/net/virtio_net.c:2227 __napi_poll+0xcb/0x490 net/core/dev.c:6638 napi_poll net/core/dev.c:6707 [inline] net_rx_action+0x7bb/0x1090 net/core/dev.c:6822 __do_softirq+0x2c6/0x980 kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf2/0x1c0 kernel/softirq.c:633 irq_exit_rcu+0x9/0x30 kernel/softirq.c:645 common_interrupt+0xaa/0xd0 arch/x86/kernel/irq.c:247 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5758 Code: 2b 00 74 08 4c 89 f7 e8 ba dc 84 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc9000345c1e0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff9200068b848 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcaca20 RDI: ffffffff8c1eaaa0 RBP: ffffc9000345c328 R08: ffffffff92efe507 R09: 1ffffffff25dfca0 R10: dffffc0000000000 R11: fffffbfff25dfca1 R12: 1ffff9200068b844 R13: dffffc0000000000 R14: ffffc9000345c240 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:329 [inline] rcu_read_lock include/linux/rcupdate.h:781 [inline] is_bpf_text_address+0x42/0x2b0 kernel/bpf/core.c:767 kernel_text_address+0xa7/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x40 kernel/extable.c:79 unwind_get_return_address+0x5d/0xc0 arch/x86/kernel/unwind_orc.c:369 arch_stack_walk+0x125/0x1b0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xa6/0xe0 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2106 [inline] slab_free mm/slub.c:4280 [inline] kfree+0x153/0x3a0 mm/slub.c:4390 krealloc+0xcf/0x120 bch2_printbuf_make_room fs/bcachefs/printbuf.c:38 [inline] bch2_prt_printf+0x32a/0x610 fs/bcachefs/printbuf.c:78 bch2_btree_path_to_text fs/bcachefs/btree_iter.c:1445 [inline] __bch2_trans_paths_to_text+0x362/0x530 fs/bcachefs/btree_iter.c:1460 bch2_trans_update_max_paths+0x16e/0x420 fs/bcachefs/btree_iter.c:1494 btree_path_alloc+0x88a/0xaa0 fs/bcachefs/btree_iter.c:1591 btree_path_clone fs/bcachefs/btree_iter.c:1226 [inline] __bch2_btree_path_make_mut+0x127/0x520 fs/bcachefs/btree_iter.c:1237 bch2_btree_path_make_mut fs/bcachefs/btree_iter.h:196 [inline] __bch2_btree_path_set_pos+0x378/0x1750 fs/bcachefs/btree_iter.c:1252 bch2_btree_path_set_pos fs/bcachefs/btree_iter.h:211 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2055 [inline] bch2_btree_iter_peek_upto+0xb30/0x6f10 fs/bcachefs/btree_iter.c:2158 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:638 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:472 [inline] bch2_bucket_alloc_trans+0x1016/0x3b20 fs/bcachefs/alloc_foreground.c:566 bch2_bucket_alloc_set_trans+0x6b6/0xd90 fs/bcachefs/alloc_foreground.c:741 __open_bucket_add_buckets+0x11ed/0x1c80 fs/bcachefs/alloc_foreground.c:991 open_bucket_add_buckets+0x174/0x230 fs/bcachefs/alloc_foreground.c:1035 bch2_alloc_sectors_start_trans+0xc30/0x1f00 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:332 [inline] bch2_btree_reserve_get+0x5f5/0x18d0 fs/bcachefs/btree_update_interior.c:546 bch2_btree_update_start+0xe54/0x14e0 fs/bcachefs/btree_update_interior.c:1244 bch2_btree_split_leaf+0x130/0x760 fs/bcachefs/btree_update_interior.c:1850 bch2_trans_commit_error+0x200/0x1210 fs/bcachefs/btree_trans_commit.c:896 __bch2_trans_commit+0x2766/0x8560 fs/bcachefs/btree_trans_commit.c:1112 bch2_trans_commit fs/bcachefs/btree_update.h:168 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:318 bch2_fpunch_at+0x87c/0x1020 fs/bcachefs/io_misc.c:184 __bch2_resume_logged_op_truncate+0x713/0xaa0 fs/bcachefs/io_misc.c:260 bch2_truncate+0x1cf/0x2c0 fs/bcachefs/io_misc.c:291 bchfs_truncate+0x80f/0xc80 fs/bcachefs/fs-io.c:473 notify_change+0xb9d/0xe70 fs/attr.c:497 do_truncate+0x220/0x310 fs/open.c:65 handle_truncate fs/namei.c:3300 [inline] do_open fs/namei.c:3646 [inline] path_openat+0x29fe/0x3240 fs/namei.c:3799 do_filp_open+0x235/0x490 fs/namei.c:3826 do_sys_openat2+0x13e/0x1d0 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_creat fs/open.c:1497 [inline] __se_sys_creat fs/open.c:1491 [inline] __x64_sys_creat+0x123/0x170 fs/open.c:1491 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f41bbe7dca9 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:00007f41bcca30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f41bbfabf80 RCX: 00007f41bbe7dca9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f41bbec947e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f41bbfabf80 R15: 00007ffd2c9ab708 ---------------- Code disassembly (best guess): 0: 2b 00 sub (%rax),%eax 2: 74 08 je 0xc 4: 4c 89 f7 mov %r14,%rdi 7: e8 ba dc 84 00 call 0x84dcc6 c: f6 44 24 61 02 testb $0x2,0x61(%rsp) 11: 0f 85 85 01 00 00 jne 0x19c 17: 41 f7 c7 00 02 00 00 test $0x200,%r15d 1e: 74 01 je 0x21 20: fb sti 21: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp) 28: e0 45 * 2a: 4b c7 44 25 00 00 00 movq $0x0,0x0(%r13,%r12,1) <-- trapping instruction 31: 00 00 33: 43 c7 44 25 09 00 00 movl $0x0,0x9(%r13,%r12,1) 3a: 00 00 3c: 43 rex.XB 3d: c7 .byte 0xc7 3e: 44 rex.R 3f: 25 .byte 0x25