INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 1 UID: 0 PID: 8785 Comm: syz.5.322 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 assign_lock_key+0x178/0x188 kernel/locking/lockdep.c:984 register_lock_class+0xf0/0x348 kernel/locking/lockdep.c:1299 __lock_acquire+0xbc/0x30a4 kernel/locking/lockdep.c:5112 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 down_write+0x50/0xc0 kernel/locking/rwsem.c:1590 ntfs_set_size+0x130/0x200 fs/ntfs3/inode.c:860 ntfs_extend+0x190/0x7fc fs/ntfs3/file.c:387 ntfs_setattr+0x244/0x954 fs/ntfs3/file.c:808 notify_change+0xa0c/0xcb8 fs/attr.c:546 do_truncate+0x198/0x210 fs/open.c:68 vfs_truncate+0x398/0x444 fs/open.c:118 do_sys_truncate+0xe4/0x1a8 fs/open.c:141 __do_sys_truncate fs/open.c:153 [inline] __se_sys_truncate fs/open.c:151 [inline] __arm64_sys_truncate+0x5c/0x74 fs/open.c:151 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 ntfs3(loop5): ino=19, "file1" attr_set_size ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000d7ce8000, curr 0xffff0000d7ce8000, list not empty WARNING: CPU: 0 PID: 8785 at kernel/locking/rwsem.c:1375 __up_write kernel/locking/rwsem.c:1375 [inline] WARNING: CPU: 0 PID: 8785 at kernel/locking/rwsem.c:1375 up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 Modules linked in: CPU: 0 UID: 0 PID: 8785 Comm: syz.5.322 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1375 [inline] pc : up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 lr : __up_write kernel/locking/rwsem.c:1375 [inline] lr : up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 sp : ffff8000a09c7710 x29: ffff8000a09c7720 x28: ffff700014138efc x27: 1fffe0001baf14e1 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000d7ce8000 x23: ffff0000d7ce8000 x22: 0000000000000000 x21: ffff0000dd78a600 x20: ffff0000dd78a610 x19: ffff0000dd78a5a8 x18: 00000000ffffffff x17: 0000000000000000 x16: ffff800082defcc0 x15: 0000000000000001 x14: 1ffff00014138e54 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000012f09 x9 : a849509950633d00 x8 : a849509950633d00 x7 : 0000000000000001 x6 : ffff800080565b88 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807d6f80 x2 : 0000000000000002 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: __up_write kernel/locking/rwsem.c:1375 [inline] (P) up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 (P) ntfs_set_size+0x164/0x200 fs/ntfs3/inode.c:865 ntfs_extend+0x190/0x7fc fs/ntfs3/file.c:387 ntfs_setattr+0x244/0x954 fs/ntfs3/file.c:808 notify_change+0xa0c/0xcb8 fs/attr.c:546 do_truncate+0x198/0x210 fs/open.c:68 vfs_truncate+0x398/0x444 fs/open.c:118 do_sys_truncate+0xe4/0x1a8 fs/open.c:141 __do_sys_truncate fs/open.c:153 [inline] __se_sys_truncate fs/open.c:151 [inline] __arm64_sys_truncate+0x5c/0x74 fs/open.c:151 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 14017 hardirqs last enabled at (14017): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (14017): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (14016): [] rcu_read_unlock_special+0x74/0x3d8 kernel/rcu/tree_plugin.h:736 softirqs last enabled at (14002): [] softirq_handle_end kernel/softirq.c:468 [inline] softirqs last enabled at (14002): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:650 softirqs last disabled at (13995): [] __do_softirq+0x14/0x20 kernel/softirq.c:656 ---[ end trace 0000000000000000 ]---