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: 7916 Comm: syz.1.443 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 assign_lock_key+0x133/0x150
 register_lock_class+0x105/0x320
 __lock_acquire+0x99/0xd20
 lock_acquire+0x120/0x360
 down_write+0x96/0x1f0
 ntfs_set_size+0x140/0x200
 ntfs_extend+0x1d9/0x970
 ntfs_setattr+0x2e8/0xbe0
 notify_change+0xc1a/0xf40
 do_truncate+0x1a4/0x220
 vfs_truncate+0x493/0x520
 do_sys_truncate+0xdb/0x190
 __x64_sys_truncate+0x5b/0x70
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f805858efc9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8059374038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f80587e5fa0 RCX: 00007f805858efc9
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000200000000680
RBP: 00007f8058611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f80587e6038 R14: 00007f80587e5fa0 R15: 00007ffcb58ff298
 </TASK>
ntfs3(loop1): ino=19, "file1" attr_set_size
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff88816a733a00, curr 0xffff88816a733a00, list not empty
WARNING: kernel/locking/rwsem.c:1375 at up_write+0x2d1/0x420, CPU#0: syz.1.443/7916
Modules linked in:
CPU: 0 UID: 0 PID: 7916 Comm: syz.1.443 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:up_write+0x2d1/0x420
Code: c7 c7 e0 ff 6a 8b 48 c7 c6 40 01 6b 8b 48 8b 54 24 08 48 8b 0c 24 4c 8b 44 24 10 4d 89 e1 41 52 e8 14 2d e6 ff 48 83 c4 08 90 <0f> 0b 90 90 e9 a4 fd ff ff 90 0f 0b 90 e9 8c fe ff ff c6 05 e4 0f
RSP: 0018:ffffc90008c2f8b8 EFLAGS: 00010286
RAX: 4456cd692e45bd00 RBX: ffff888119280fd0 RCX: 0000000000080000
RDX: ffffc90008e11000 RSI: 000000000005c812 RDI: 000000000005c813
RBP: dffffc0000000000 R08: ffffc90008c2f5c7 R09: 1ffff92001185eb8
R10: dffffc0000000000 R11: fffff52001185eb9 R12: ffff88816a733a00
R13: ffff888119281038 R14: 1ffff11023250207 R15: ffff888119281028
FS:  00007f80593746c0(0000) GS:ffff88818e8eb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c7b45337b8 CR3: 00000001aa0ce000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 ntfs_set_size+0x172/0x200
 ntfs_extend+0x1d9/0x970
 ntfs_setattr+0x2e8/0xbe0
 notify_change+0xc1a/0xf40
 do_truncate+0x1a4/0x220
 vfs_truncate+0x493/0x520
 do_sys_truncate+0xdb/0x190
 __x64_sys_truncate+0x5b/0x70
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f805858efc9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8059374038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007f80587e5fa0 RCX: 00007f805858efc9
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000200000000680
RBP: 00007f8058611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f80587e6038 R14: 00007f80587e5fa0 R15: 00007ffcb58ff298
 </TASK>
