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: 6734 Comm: syz.1.41 Not tainted 6.12.0-rc1-syzkaller-g2d8bce6e34be #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 assign_lock_key+0x278/0x2b0 kernel/locking/lockdep.c:981 register_lock_class+0x144/0x6b4 kernel/locking/lockdep.c:1295 __lock_acquire+0x18c/0x77c8 kernel/locking/lockdep.c:5077 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 down_write+0x50/0xc0 kernel/locking/rwsem.c:1577 ntfs_file_release+0x128/0x1e8 fs/ntfs3/file.c:1251 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:733 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:750 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff0000e9730000, curr 0xffff0000e9730000, list not empty WARNING: CPU: 0 PID: 6734 at kernel/locking/rwsem.c:1362 __up_write kernel/locking/rwsem.c:1362 [inline] WARNING: CPU: 0 PID: 6734 at kernel/locking/rwsem.c:1362 up_write+0x444/0x760 kernel/locking/rwsem.c:1630 Modules linked in: CPU: 0 UID: 0 PID: 6734 Comm: syz.1.41 Not tainted 6.12.0-rc1-syzkaller-g2d8bce6e34be #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1362 [inline] pc : up_write+0x444/0x760 kernel/locking/rwsem.c:1630 lr : __up_write kernel/locking/rwsem.c:1362 [inline] lr : up_write+0x444/0x760 kernel/locking/rwsem.c:1630 sp : ffff8000a4b97b40 x29: ffff8000a4b97bc0 x28: ffff0000dd500468 x27: 1fffe0001b6c8ee5 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000e9730000 x23: ffff0000e9730000 x22: 0000000000000000 x21: ffff0000db647718 x20: ffff0000db647728 x19: ffff0000db6476c0 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b3bdbf0 x15: ffff700011f0d488 x14: 1ffff00011f0d488 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000002 x10: 0000000000ff0100 x9 : 8ba186fca3ff5700 x8 : 8ba186fca3ff5700 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a4b97278 x4 : ffff80008f8dcac0 x3 : ffff80008039400c x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: __up_write kernel/locking/rwsem.c:1362 [inline] up_write+0x444/0x760 kernel/locking/rwsem.c:1630 ntfs_file_release+0x170/0x1e8 fs/ntfs3/file.c:1257 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:733 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:750 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 4211 hardirqs last enabled at (4211): [] __call_rcu_common kernel/rcu/tree.c:3108 [inline] hardirqs last enabled at (4211): [] call_rcu+0x640/0xb00 kernel/rcu/tree.c:3190 hardirqs last disabled at (4210): [] __call_rcu_common kernel/rcu/tree.c:3087 [inline] hardirqs last disabled at (4210): [] call_rcu+0x114/0xb00 kernel/rcu/tree.c:3190 softirqs last enabled at (4094): [] sock_orphan include/net/sock.h:2005 [inline] softirqs last enabled at (4094): [] unix_release_sock+0x3ac/0xaf8 net/unix/af_unix.c:682 softirqs last disabled at (4092): [] sock_orphan include/net/sock.h:2001 [inline] softirqs last disabled at (4092): [] unix_release_sock+0x34c/0xaf8 net/unix/af_unix.c:682 ---[ end trace 0000000000000000 ]---