loop0: detected capacity change from 0 to 4096 ntfs3(loop0): Different NTFS sector size (4096) and media sector size (512). 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: 8719 Comm: syz.0.359 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(loop0): ino=19, "file1" attr_set_size ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000ca111ec0, curr 0xffff0000ca111ec0, list not empty WARNING: CPU: 0 PID: 8719 at kernel/locking/rwsem.c:1375 __up_write kernel/locking/rwsem.c:1375 [inline] WARNING: CPU: 0 PID: 8719 at kernel/locking/rwsem.c:1375 up_write+0x3a0/0x5b4 kernel/locking/rwsem.c:1643 Modules linked in: CPU: 0 UID: 0 PID: 8719 Comm: syz.0.359 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 : ffff80009eac7710 x29: ffff80009eac7720 x28: ffff700013d58efc x27: 1fffe0001c9393f8 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000ca111ec0 x23: ffff0000ca111ec0 x22: 0000000000000000 x21: ffff0000e49c9eb8 x20: ffff0000e49c9ec8 x19: ffff0000e49c9e60 x18: 1fffe000337d4a90 x17: ffff80008f5ae000 x16: ffff800082defcc0 x15: 0000000000000001 x14: 1fffe000337d7518 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000000003 x9 : 567db03a32b48500 x8 : 567db03a32b48500 x7 : 0000000000000000 x6 : ffff8000804936c4 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000010 x2 : ffff80009eac72c0 x1 : ffff80008b40b540 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: 12815 hardirqs last enabled at (12815): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1559 [inline] hardirqs last enabled at (12815): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:5073 hardirqs last disabled at (12814): [] __schedule+0x318/0x2864 kernel/sched/core.c:6813 softirqs last enabled at (12772): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (12770): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---