BUG: MAX_LOCK_DEPTH too low! turning off the locking correctness validator. depth: 48 max: 48! 48 locks held by syz.1.483/9626: #0: ffff88802941a0e0 (&type->s_umount_key#74){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88802941a0e0 (&type->s_umount_key#74){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888055d042d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888055d042d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888055d042d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f8/0xe40 fs/bcachefs/btree_iter.c:3193 #2: ffff888055d26750 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x68d/0x1500 fs/bcachefs/btree_update_interior.c:1195 #3: ffff888055d1dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #3: ffff888055d1dc78 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1302 [inline] #3: ffff888055d1dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x2d5/0x1f60 fs/bcachefs/alloc_foreground.c:1410 #4: ffff88802f55f070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #4: ffff88802f55f070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #5: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #5: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #6: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #6: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #7: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #7: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #8: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #8: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #9: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #9: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #10: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #10: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #11: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #11: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #12: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #12: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #13: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #13: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #14: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #14: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #15: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #15: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #16: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #16: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #17: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #17: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #18: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #18: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #19: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #19: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #20: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #20: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #21: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #21: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #22: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #22: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #23: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #23: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #24: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #24: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #25: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #25: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #26: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #26: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #27: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #27: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #28: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #28: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #29: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #29: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #30: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #30: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #31: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #31: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #32: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #32: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #33: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #33: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #34: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #34: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #35: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #35: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #36: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #36: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #37: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #37: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #38: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #38: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:288 [inline] #38: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline] #38: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa44/0x2930 fs/bcachefs/btree_iter.c:1177 #39: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #39: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:288 [inline] #39: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline] #39: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa44/0x2930 fs/bcachefs/btree_iter.c:1177 #40: ffff88807d99b748 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #40: ffff88807d99b748 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #41: ffff88807d99b090 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #41: ffff88807d99b090 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #42: ffff88807d99bb50 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #42: ffff88807d99bb50 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #43: ffff88807d99b5f0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline] #43: ffff88807d99b5f0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:507 #44: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline] #44: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:288 [inline] #44: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:757 [inline] #44: ffff88802f559070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa44/0x2930 fs/bcachefs/btree_iter.c:1177 #45: ffffffff8e350018 (timekeeper_lock){-.-.}-{2:2}, at: timekeeping_advance+0x21/0xa90 kernel/time/timekeeping.c:2288 #46: ffffffff8e350208 (tk_core.seq.seqcount){----}-{0:0}, at: update_wall_time+0x10/0x30 kernel/time/timekeeping.c:2360 #47: ffffffff9297b408 (pvclock_gtod_data){-.-.}-{0:0}, at: notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 INFO: lockdep is turned off. CPU: 1 PID: 9626 Comm: syz.1.483 Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/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:5753 do_write_seqcount_begin_nested include/linux/seqlock.h:469 [inline] do_write_seqcount_begin include/linux/seqlock.h:495 [inline] update_pvclock_gtod arch/x86/kvm/x86.c:2265 [inline] pvclock_gtod_notify+0xce/0x490 arch/x86/kvm/x86.c:9650 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 update_pvclock_gtod kernel/time/timekeeping.c:669 [inline] timekeeping_update+0x2bc/0x450 kernel/time/timekeeping.c:765 timekeeping_advance+0x784/0xa90 kernel/time/timekeeping.c:2344 update_wall_time+0x10/0x30 kernel/time/timekeeping.c:2360 tick_sched_do_timer kernel/time/tick-sched.c:232 [inline] tick_nohz_handler+0xa6/0x500 kernel/time/tick-sched.c:290 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:kasan_check_range+0x1bf/0x290 mm/kasan/generic.c:189 Code: 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 3b 00 0f 85 a6 00 00 00 49 ff c3 48 ff cd 75 ee 5b 41 5c 41 5e 41 5f 5d cc cc cc cc 40 84 ed 75 5f f7 c5 00 ff 00 00 75 5c f7 c5 00 00 RSP: 0018:ffffc9000318d6f0 EFLAGS: 00000256 RAX: ffffffff840f4b01 RBX: ffffffff840f4b34 RCX: ffffffff840f4b34 RDX: 0000000000000001 RSI: 0000000000000018 RDI: ffff888059f79490 RBP: ffffc9000318da10 R08: ffff888059f794a7 R09: 1ffff1100b3ef294 R10: dffffc0000000000 R11: ffffed100b3ef295 R12: 0000000000000018 R13: ffff888059f79490 R14: ffff888059f79958 R15: ffff888059f79490 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 bch2_btree_path_traverse_one+0x2484/0x2930 fs/bcachefs/btree_iter.c:1201 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:229 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2180 [inline] bch2_btree_iter_peek_upto+0xc7f/0x7090 fs/bcachefs/btree_iter.c:2280 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:641 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:491 [inline] bch2_bucket_alloc_trans+0x111d/0x3b30 fs/bcachefs/alloc_foreground.c:649 bch2_bucket_alloc_set_trans+0x4f9/0xcf0 fs/bcachefs/alloc_foreground.c:810 __open_bucket_add_buckets+0x11ed/0x1c80 fs/bcachefs/alloc_foreground.c:1058 open_bucket_add_buckets+0x174/0x230 fs/bcachefs/alloc_foreground.c:1102 bch2_alloc_sectors_start_trans+0xcaf/0x1f60 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:333 [inline] bch2_btree_reserve_get+0x5f5/0x18d0 fs/bcachefs/btree_update_interior.c:547 bch2_btree_update_start+0x1187/0x1500 fs/bcachefs/btree_update_interior.c:1264 bch2_btree_split_leaf+0x12c/0x810 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x200/0x1210 fs/bcachefs/btree_trans_commit.c:918 __bch2_trans_commit+0x6e6c/0x88e0 fs/bcachefs/btree_trans_commit.c:1138 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_set_quota+0x958/0xdf0 fs/bcachefs/quota.c:872 quota_setquota+0x6dc/0x850 fs/quota/quota.c:310 __do_sys_quotactl fs/quota/quota.c:961 [inline] __se_sys_quotactl+0x2c4/0xa30 fs/quota/quota.c:917 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:0x7f1253175b59 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:00007f1253ec7048 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007f1253303f60 RCX: 00007f1253175b59 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: ffffffff80000802 RBP: 00007f12531e4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000d00 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f1253303f60 R15: 00007fffc53885b8 ---------------- Code disassembly (best guess): 0: 48 85 ed test %rbp,%rbp 3: 48 0f 49 dd cmovns %rbp,%rbx 7: 48 83 e3 f8 and $0xfffffffffffffff8,%rbx b: 48 29 dd sub %rbx,%rbp e: 74 12 je 0x22 10: 41 80 3b 00 cmpb $0x0,(%r11) 14: 0f 85 a6 00 00 00 jne 0xc0 1a: 49 ff c3 inc %r11 1d: 48 ff cd dec %rbp 20: 75 ee jne 0x10 22: 5b pop %rbx 23: 41 5c pop %r12 25: 41 5e pop %r14 27: 41 5f pop %r15 29: 5d pop %rbp * 2a: c3 ret <-- trapping instruction 2b: cc int3 2c: cc int3 2d: cc int3 2e: cc int3 2f: 40 84 ed test %bpl,%bpl 32: 75 5f jne 0x93 34: f7 c5 00 ff 00 00 test $0xff00,%ebp 3a: 75 5c jne 0x98 3c: f7 .byte 0xf7 3d: c5 .byte 0xc5