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 PID: 10451 Comm: syz-executor.5 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 assign_lock_key+0x22a/0x240 kernel/locking/lockdep.c:981 register_lock_class+0x287/0x9b0 kernel/locking/lockdep.c:1294 __lock_acquire+0xe4/0x1f60 kernel/locking/lockdep.c:4934 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5668 down_read+0x39/0x50 kernel/locking/rwsem.c:1509 attr_data_get_block+0x2d9/0x2e40 fs/ntfs3/attrib.c:903 ntfs_get_block_vbo+0x374/0xd20 fs/ntfs3/inode.c:573 do_mpage_readpage+0x98b/0x1bb0 fs/mpage.c:208 mpage_readahead+0x210/0x390 fs/mpage.c:361 read_pages+0x17d/0x9d0 mm/readahead.c:161 page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x49b/0x1110 mm/filemap.c:2600 filemap_read+0x3e7/0xee0 mm/filemap.c:2694 __kernel_read+0x3c4/0x7e0 fs/read_write.c:428 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x17d1/0x1cb0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x47f/0x8d0 security/integrity/ima/ima_api.c:292 process_measurement+0xf51/0x1bd0 security/integrity/ima/ima_main.c:339 ima_file_check+0xe7/0x160 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x2612/0x2de0 fs/namei.c:3714 do_file_open_root+0x36c/0x7d0 fs/namei.c:3766 file_open_root+0x243/0x2a0 fs/open.c:1290 do_handle_open+0x565/0x8f0 fs/fhandle.c:232 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa73a48c0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa73b29d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007fa73a5ac050 RCX: 00007fa73a48c0a9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007fa73a4e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5857957f R14: 00007fa73b29d300 R15: 0000000000022000 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888091bfba81, curr 0xffff888091bfba80, list not empty WARNING: CPU: 0 PID: 10451 at kernel/locking/rwsem.c:1335 __up_read+0x4f5/0x690 kernel/locking/rwsem.c:1335 Modules linked in: CPU: 0 PID: 10451 Comm: syz-executor.5 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__up_read+0x4f5/0x690 kernel/locking/rwsem.c:1335 Code: c7 80 89 0d 8b 48 c7 c6 80 8b 0d 8b 48 8b 54 24 20 48 8b 4c 24 28 4d 89 f8 4c 8b 4c 24 30 31 c0 53 e8 bf 29 e8 ff 48 83 c4 08 <0f> 0b 48 bb 00 00 00 00 00 fc ff df 4c 8b 6c 24 18 e9 ba fb ff ff RSP: 0018:ffffc900157a5e60 EFLAGS: 00010296 RAX: 4f33e44cf6bd1c00 RBX: ffffffff8b0d8a80 RCX: 0000000000040000 RDX: ffffc90004e22000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900157a5f30 R08: ffffffff81709fad R09: fffff52002af4b85 R10: fffff52002af4b85 R11: 1ffff92002af4b84 R12: ffff888092fd9f28 R13: ffff888092fd9f18 R14: 1ffff110125fb3e5 R15: ffff888091bfba81 FS: 00007fa73b29d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa73b29d718 CR3: 0000000028e46000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: attr_data_get_block+0x355/0x2e40 fs/ntfs3/attrib.c:906 ntfs_get_block_vbo+0x374/0xd20 fs/ntfs3/inode.c:573 do_mpage_readpage+0x98b/0x1bb0 fs/mpage.c:208 mpage_readahead+0x210/0x390 fs/mpage.c:361 read_pages+0x17d/0x9d0 mm/readahead.c:161 page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x49b/0x1110 mm/filemap.c:2600 filemap_read+0x3e7/0xee0 mm/filemap.c:2694 __kernel_read+0x3c4/0x7e0 fs/read_write.c:428 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x17d1/0x1cb0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x47f/0x8d0 security/integrity/ima/ima_api.c:292 process_measurement+0xf51/0x1bd0 security/integrity/ima/ima_main.c:339 ima_file_check+0xe7/0x160 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x2612/0x2de0 fs/namei.c:3714 do_file_open_root+0x36c/0x7d0 fs/namei.c:3766 file_open_root+0x243/0x2a0 fs/open.c:1290 do_handle_open+0x565/0x8f0 fs/fhandle.c:232 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa73a48c0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa73b29d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007fa73a5ac050 RCX: 00007fa73a48c0a9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007fa73a4e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5857957f R14: 00007fa73b29d300 R15: 0000000000022000