loop3: detected capacity change from 0 to 4096 ntfs3: loop3: 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 PID: 5858 Comm: syz.3.240 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 assign_lock_key+0x224/0x258 kernel/locking/lockdep.c:974 register_lock_class+0x1ac/0x694 kernel/locking/lockdep.c:1287 __lock_acquire+0x150/0x6544 kernel/locking/lockdep.c:4928 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662 down_write+0x5c/0x88 kernel/locking/rwsem.c:1573 ntfs_set_size+0x130/0x200 fs/ntfs3/inode.c:845 ntfs_extend+0x130/0x444 fs/ntfs3/file.c:353 ntfs3_setattr+0x248/0x924 fs/ntfs3/file.c:712 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x178/0x1f0 fs/open.c:65 vfs_truncate+0x23c/0x2b0 fs/open.c:111 do_sys_truncate+0xe8/0x1b0 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ntfs3: loop3: ino=19, "file1" attr_set_size ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000d36fb780, curr 0xffff0000d36fb780, list not empty WARNING: CPU: 0 PID: 5858 at kernel/locking/rwsem.c:1366 __up_write kernel/locking/rwsem.c:1366 [inline] WARNING: CPU: 0 PID: 5858 at kernel/locking/rwsem.c:1366 up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 0 PID: 5858 Comm: syz.3.240 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1366 [inline] pc : up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626 lr : __up_write kernel/locking/rwsem.c:1366 [inline] lr : up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626 sp : ffff8000215a7830 x29: ffff8000215a7840 x28: 1fffe0001c55e22c x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000d36fb780 x23: ffff0000d36fb780 x22: 0000000000000000 x21: ffff0000e2af1058 x20: ffff0000e2af1068 x19: ffff0000e2af1000 x18: ffff800011a5bd40 x17: 1fffe00033ee7b7e x16: ffff800008042d90 x15: 0000000040000000 x14: 0000000000000002 x13: 0000000000ff0100 x12: 0000000000ff0100 x11: ff0080000804801c x10: 0000000040000002 x9 : d74ece4eaf652200 x8 : d74ece4eaf652200 x7 : 0000000000000004 x6 : ffff8000082532dc x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff8000215a73c0 x1 : 0000000000000000 x0 : ffff800008253370 Call trace: __up_write kernel/locking/rwsem.c:1366 [inline] up_write+0x3b8/0x5c0 kernel/locking/rwsem.c:1626 ntfs_set_size+0x164/0x200 fs/ntfs3/inode.c:850 ntfs_extend+0x130/0x444 fs/ntfs3/file.c:353 ntfs3_setattr+0x248/0x924 fs/ntfs3/file.c:712 notify_change+0xb0c/0xdcc fs/attr.c:499 do_truncate+0x178/0x1f0 fs/open.c:65 vfs_truncate+0x23c/0x2b0 fs/open.c:111 do_sys_truncate+0xe8/0x1b0 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 28171 hardirqs last enabled at (28171): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (28171): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5003 hardirqs last disabled at (28170): [] __schedule+0x298/0x1b18 kernel/sched/core.c:6459 softirqs last enabled at (28102): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (28100): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---