BUG: MAX_LOCK_DEPTH too low!
turning off the locking correctness validator.
depth: 48 max: 48!
48 locks held by syz.0.3388/19177:
#0: ffff88806ff40420 (sb_writers#13){.+.+}-{0:0}, at: do_sys_ftruncate fs/open.c:199 [inline]
#0: ffff88806ff40420 (sb_writers#13){.+.+}-{0:0}, at: __do_sys_ftruncate fs/open.c:207 [inline]
#0: ffff88806ff40420 (sb_writers#13){.+.+}-{0:0}, at: __se_sys_ftruncate fs/open.c:205 [inline]
#0: ffff88806ff40420 (sb_writers#13){.+.+}-{0:0}, at: __x64_sys_ftruncate+0xa9/0x110 fs/open.c:205
#1: ffff888061728150 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline]
#1: ffff888061728150 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: do_truncate+0x14b/0x220 fs/open.c:63
#2: ffff888053c80ab8 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x128/0x220 fs/bcachefs/io_misc.c:290
#3: ffff888053c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#3: ffff888053c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#3: ffff888053c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock fs/bcachefs/btree_iter.c:3021 [inline]
#3: ffff888053c842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_path_traverse_one+0x255d/0x2dd0 fs/bcachefs/btree_iter.c:1141
#4: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#4: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#5: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#5: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#6: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#6: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#7: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#7: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#8: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#8: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#9: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#9: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#10: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#10: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#11: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#11: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#12: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#12: ffff888060f00070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#13: ffff888055e60070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#13: ffff888055e60070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#14: ffff888055e601c8 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#14: ffff888055e601c8 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#15: ffff888055e60320 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#15: ffff888055e60320 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#16: ffff888055e60478 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#16: ffff888055e60478 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#17: ffff888055e605d0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#17: ffff888055e605d0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#18: ffff888055e60728 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#18: ffff888055e60728 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#19: ffff888055e60880 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#19: ffff888055e60880 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#20: ffff888055e609d8 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#20: ffff888055e609d8 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#21: ffff88807d292870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#21: ffff88807d292870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#21: ffff88807d292870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#21: ffff88807d292870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#22: ffff88807d295070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#22: ffff88807d295070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#23: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#23: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#23: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#23: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#24: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#24: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#24: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#24: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#25: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#25: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#25: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#25: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#26: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#26: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#26: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#26: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#27: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#27: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#27: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline]
#27: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xc3c/0x2dd0 fs/bcachefs/btree_iter.c:1177
#28: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#28: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#29: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#29: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#30: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#30: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#31: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#31: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#32: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#32: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#33: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#33: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#34: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#34: ffff88802ee8a070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6e0/0xa40 fs/bcachefs/btree_locking.c:509
#35: ffff88806bee3870 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#35: ffff88806bee3870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x121/0xa40 fs/bcachefs/btree_locking.c:507
#36: ffff888053ca6750 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x821/0x1f50 fs/bcachefs/btree_update_interior.c:1195
#37: ffff888061678728 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#37: ffff888061678728 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#37: ffff888061678728 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_cached+0x472/0xdc0 fs/bcachefs/btree_key_cache.c:567
#38: ffff888053c9dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline]
#38: ffff888053c9dc78 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1302 [inline]
#38: ffff888053c9dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x115f/0x1ba0 fs/bcachefs/alloc_foreground.c:1410
#39: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1228 [inline]
#39: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1236 [inline]
#39: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0xbca/0x1000 fs/bcachefs/btree_iter.c:1249
#40: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1228 [inline]
#40: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1236 [inline]
#40: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0xbca/0x1000 fs/bcachefs/btree_iter.c:1249
#41: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1228 [inline]
#41: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1236 [inline]
#41: ffff88806bee2870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0xbca/0x1000 fs/bcachefs/btree_iter.c:1249
#42: ffff8880616789d8 (&dev->mutex){....}-{3:3}, at: six_trylock_intent fs/bcachefs/six.h:366 [inline]
#42: ffff8880616789d8 (&dev->mutex){....}-{3:3}, at: bkey_cached_alloc fs/bcachefs/btree_key_cache.c:290 [inline]
#42: ffff8880616789d8 (&dev->mutex){....}-{3:3}, at: btree_key_cache_create fs/bcachefs/btree_key_cache.c:330 [inline]
#42: ffff8880616789d8 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_cached_slowpath+0x20ff/0x4d90 fs/bcachefs/btree_key_cache.c:485
#43: ffff888053c84ba8 (&c->freelist_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#43: ffff888053c84ba8 (&c->freelist_lock){+.+.}-{2:2}, at: __try_alloc_bucket+0x3d6/0x1000 fs/bcachefs/alloc_foreground.c:235
#44: ffffffff8dbb57c0 (rcu_callback){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#44: ffffffff8dbb57c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch kernel/rcu/tree.c:2529 [inline]
#44: ffffffff8dbb57c0 (rcu_callback){....}-{0:0}, at: rcu_core+0x7cc/0x16b0 kernel/rcu/tree.c:2809
#45: ffff8880b9344b18 (&pcp->lock){+.+.}-{2:2}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#45: ffff8880b9344b18 (&pcp->lock){+.+.}-{2:2}, at: free_unref_page+0x39d/0xe40 mm/page_alloc.c:2609
#46: ffff88813fffad58 (&zone->lock){-.-.}-{2:2}, at: free_pcppages_bulk+0x6b/0x620 mm/page_alloc.c:1158
#47: ffff88813fffa810 (&____s->seqcount){.-.-}-{0:0}, at: __free_one_page+0x10e/0xb30 mm/page_alloc.c:778
INFO: lockdep is turned off.
CPU: 1 PID: 19177 Comm: syz.0.3388 Not tainted 6.10.0-rc6-syzkaller-00215-g22f902dfc51e #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
seqcount_lockdep_reader_access include/linux/seqlock.h:72 [inline]
read_seqbegin include/linux/seqlock.h:772 [inline]
zone_span_seqbegin include/linux/memory_hotplug.h:151 [inline]
page_outside_zone_boundaries mm/page_alloc.c:434 [inline]
bad_range+0xaa/0x440 mm/page_alloc.c:453
__free_one_page+0x10e/0xb30 mm/page_alloc.c:778
free_pcppages_bulk+0x2f1/0x620 mm/page_alloc.c:1186
free_unref_page_commit+0x515/0xfe0 mm/page_alloc.c:2563
free_unref_page+0x74d/0xe40 mm/page_alloc.c:2611
rcu_do_batch kernel/rcu/tree.c:2535 [inline]
rcu_core+0x82b/0x16b0 kernel/rcu/tree.c:2809
handle_softirqs+0x219/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 1a 63 95 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:ffffc90004675bf8 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff920008ceb81 RCX: 0000000000000001
RDX: 0000000000000001 RSI: ffffffff8b2cc440 RDI: ffffffff8b902240
RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff284fa79
R10: ffffffff9427d3cf R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff888053c84ba8 R15: 0000000000000000
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:351 [inline]
__try_alloc_bucket+0x3d6/0x1000 fs/bcachefs/alloc_foreground.c:235
try_alloc_bucket+0xa3c/0xca0 fs/bcachefs/alloc_foreground.c:364
bch2_bucket_alloc_freelist+0xab4/0x1090 fs/bcachefs/alloc_foreground.c:527
bch2_bucket_alloc_trans+0x704/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+0x4eb3/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:926
notify_change+0x745/0x11f0 fs/attr.c:497
do_truncate+0x15c/0x220 fs/open.c:65
do_ftruncate+0x5e5/0x720 fs/open.c:181
do_sys_ftruncate fs/open.c:199 [inline]
__do_sys_ftruncate fs/open.c:207 [inline]
__se_sys_ftruncate fs/open.c:205 [inline]
__x64_sys_ftruncate+0xa9/0x110 fs/open.c:205
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:0x7ff15a575bd9
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:00007ff15b28f048 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007ff15a703f60 RCX: 00007ff15a575bd9
RDX: 0000000000000000 RSI: 0000000000000400 RDI: 0000000000000005
RBP: 00007ff15a5e4aa1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007ff15a703f60 R15: 00007ffd86f9a638
----------------
Code disassembly (best guess):
0: c1 05 1a 63 95 7e 83 roll $0x83,0x7e95631a(%rip) # 0x7e956321
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