------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 1 PID: 7583 at kernel/locking/lockdep.c:232 check_wait_context kernel/locking/lockdep.c:4850 [inline]
WARNING: CPU: 1 PID: 7583 at kernel/locking/lockdep.c:232 __lock_acquire+0x7b0/0x7904 kernel/locking/lockdep.c:5176
Modules linked in:
CPU: 1 UID: 0 PID: 7583 Comm: syz.1.231 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : check_wait_context kernel/locking/lockdep.c:4850 [inline]
pc : __lock_acquire+0x7b0/0x7904 kernel/locking/lockdep.c:5176
lr : hlock_class kernel/locking/lockdep.c:232 [inline]
lr : check_wait_context kernel/locking/lockdep.c:4850 [inline]
lr : __lock_acquire+0x7a4/0x7904 kernel/locking/lockdep.c:5176
sp : ffff80009cb86e60
x29: ffff80009cb87120 x28: ffff0000cd595ac0 x27: ffff0000cd596560
x26: 1fffe00019ab2cac x25: 0000000000000000 x24: 0000000000000001
x23: ffff0000cd596538 x22: ffff0000cd596540 x21: ffff0000cd596564
x20: 00000000000011b0 x19: ffff80009319a9f0 x18: 0000000000000008
x17: 0000000000000000 x16: ffff80008326d65c x15: 0000000000000001
x14: 1fffe000366c5eea x13: dfff800000000000 x12: 0000000000000000
x11: 0000000000080000 x10: 000000000007ffff x9 : 86c26eaf32791b00
x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80009cb86598 x4 : ffff80008fa6f860 x3 : ffff80008073b194
x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000
Call trace:
 check_wait_context kernel/locking/lockdep.c:4850 [inline] (P)
 __lock_acquire+0x7b0/0x7904 kernel/locking/lockdep.c:5176 (P)
 hlock_class kernel/locking/lockdep.c:232 [inline] (L)
 check_wait_context kernel/locking/lockdep.c:4850 [inline] (L)
 __lock_acquire+0x7a4/0x7904 kernel/locking/lockdep.c:5176 (L)
 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:170
 spin_lock_irq include/linux/spinlock.h:376 [inline]
 rcu_pending_has_pending_or_armed fs/bcachefs/rcu_pending.c:576 [inline]
 rcu_pending_exit+0x124/0x660 fs/bcachefs/rcu_pending.c:594
 bch2_fs_btree_key_cache_exit+0x7ec/0x8f4 fs/bcachefs/btree_key_cache.c:742
 __bch2_fs_free fs/bcachefs/super.c:556 [inline]
 bch2_fs_release+0x1fc/0x728 fs/bcachefs/super.c:611
 kobject_cleanup lib/kobject.c:689 [inline]
 kobject_release lib/kobject.c:720 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x2a8/0x41c lib/kobject.c:737
 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:673
 bch2_fs_stop+0x28/0x38 fs/bcachefs/super.c:679
 bch2_fs_get_tree+0xab0/0x1030 fs/bcachefs/fs.c:2265
 vfs_get_tree+0x90/0x28c fs/super.c:1814
 do_new_mount+0x278/0x900 fs/namespace.c:3507
 path_mount+0x590/0xe04 fs/namespace.c:3834
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount fs/namespace.c:4034 [inline]
 __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
irq event stamp: 85550
hardirqs last  enabled at (85549): [<ffff80008b6a9c9c>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (85549): [<ffff80008b6a9c9c>] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194
hardirqs last disabled at (85550): [<ffff80008b6a9b44>] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline]
hardirqs last disabled at (85550): [<ffff80008b6a9b44>] _raw_spin_lock_irq+0x28/0x70 kernel/locking/spinlock.c:170
softirqs last  enabled at (85050): [<ffff80008030d534>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last  enabled at (85050): [<ffff80008030d534>] handle_softirqs+0xb44/0xd34 kernel/softirq.c:582
softirqs last disabled at (84927): [<ffff800080020db4>] __do_softirq+0x14/0x20 kernel/softirq.c:588
---[ end trace 0000000000000000 ]---
Unable to handle kernel paging request at virtual address dfff800000000018
KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]
Mem abort info:
  ESR = 0x0000000096000005
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x05: level 1 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[dfff800000000018] address between user and kernel address ranges
Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 UID: 0 PID: 7583 Comm: syz.1.231 Tainted: G        W          6.13.0-rc2-syzkaller-g2e7aff49b5da #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : check_wait_context kernel/locking/lockdep.c:4850 [inline]
pc : __lock_acquire+0x574/0x7904 kernel/locking/lockdep.c:5176
lr : hlock_class kernel/locking/lockdep.c:232 [inline]
lr : check_wait_context kernel/locking/lockdep.c:4850 [inline]
lr : __lock_acquire+0x7a4/0x7904 kernel/locking/lockdep.c:5176
sp : ffff80009cb86e60
x29: ffff80009cb87120 x28: ffff0000cd595ac0 x27: ffff0000cd596560
x26: 1fffe00019ab2cac x25: 0000000000000000 x24: 0000000000000001
x23: ffff0000cd596538 x22: ffff0000cd596540 x21: 00000000000000c4
x20: 00000000000011b0 x19: ffff80009319a9f0 x18: 0000000000000008
x17: 0000000000000000 x16: ffff80008326d65c x15: 0000000000000001
x14: 1fffe000366c5eea x13: dfff800000000000 x12: 0000000000000000
x11: 0000000000080000 x10: 000000000007ffff x9 : 86c26eaf32791b00
x8 : 0000000000000018 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80009cb86598 x4 : ffff80008fa6f860 x3 : ffff80008073b194
x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000000
Call trace:
 check_wait_context kernel/locking/lockdep.c:4850 [inline] (P)
 __lock_acquire+0x574/0x7904 kernel/locking/lockdep.c:5176 (P)
 hlock_class kernel/locking/lockdep.c:232 [inline] (L)
 check_wait_context kernel/locking/lockdep.c:4850 [inline] (L)
 __lock_acquire+0x7a4/0x7904 kernel/locking/lockdep.c:5176 (L)
 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:170
 spin_lock_irq include/linux/spinlock.h:376 [inline]
 rcu_pending_has_pending_or_armed fs/bcachefs/rcu_pending.c:576 [inline]
 rcu_pending_exit+0x124/0x660 fs/bcachefs/rcu_pending.c:594
 bch2_fs_btree_key_cache_exit+0x7ec/0x8f4 fs/bcachefs/btree_key_cache.c:742
 __bch2_fs_free fs/bcachefs/super.c:556 [inline]
 bch2_fs_release+0x1fc/0x728 fs/bcachefs/super.c:611
 kobject_cleanup lib/kobject.c:689 [inline]
 kobject_release lib/kobject.c:720 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x2a8/0x41c lib/kobject.c:737
 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:673
 bch2_fs_stop+0x28/0x38 fs/bcachefs/super.c:679
 bch2_fs_get_tree+0xab0/0x1030 fs/bcachefs/fs.c:2265
 vfs_get_tree+0x90/0x28c fs/super.c:1814
 do_new_mount+0x278/0x900 fs/namespace.c:3507
 path_mount+0x590/0xe04 fs/namespace.c:3834
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount fs/namespace.c:4034 [inline]
 __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
Code: 34000fa8 aa1f03e8 91031115 d343fea8 (38ed6908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	34000fa8 	cbz	w8, 0x1f4
   4:	aa1f03e8 	mov	x8, xzr
   8:	91031115 	add	x21, x8, #0xc4
   c:	d343fea8 	lsr	x8, x21, #3
* 10:	38ed6908 	ldrsb	w8, [x8, x13] <-- trapping instruction