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: 0 UID: 0 PID: 7462 Comm: syz.2.138 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(loop2): ino=19, "file1" attr_set_size ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000c7468000, curr 0xffff0000c7468000, list not empty WARNING: CPU: 0 PID: 7462 at kernel/locking/rwsem.c:1375 __up_write kernel/locking/rwsem.c:1375 [inline] WARNING: CPU: 0 PID: 7462 at kernel/locking/rwsem.c:1375 up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 Modules linked in: CPU: 0 UID: 0 PID: 7462 Comm: syz.2.138 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 : ffff8000a5d97710 x29: ffff8000a5d97720 x28: ffff700014bb2efc x27: 1fffe000201436b3 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000c7468000 x23: ffff0000c7468000 x22: 0000000000000000 x21: ffff000100a1b490 x20: ffff000100a1b4a0 x19: ffff000100a1b438 x18: 1fffe000337d6e90 x17: ffff80008f59e000 x16: ffff800082dee3c0 x15: 0000000000000001 x14: 1fffe000337d9918 x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000337d9919 x10: 0000000000000003 x9 : 5d41575d1b19ac00 x8 : 5d41575d1b19ac00 x7 : 0000000000000000 x6 : ffff8000804936c4 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000010 x2 : ffff8000a5d972c0 x1 : ffff80008b3fb340 x0 : 0000000000000001 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: 1635 hardirqs last enabled at (1635): [] seqcount_lockdep_reader_access+0x7c/0xf8 include/linux/seqlock.h:74 hardirqs last disabled at (1634): [] seqcount_lockdep_reader_access+0x40/0xf8 include/linux/seqlock.h:71 softirqs last enabled at (1594): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (1592): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---