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: 12697 Comm: syz-executor.5 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #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+0xd1/0x138 lib/dump_stack.c:106 assign_lock_key kernel/locking/lockdep.c:981 [inline] register_lock_class+0xf1b/0x1120 kernel/locking/lockdep.c:1294 __lock_acquire+0x109/0x56d0 kernel/locking/lockdep.c:4934 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 down_read+0x9c/0x450 kernel/locking/rwsem.c:1509 attr_data_get_block+0x12d/0x19f0 fs/ntfs3/attrib.c:903 ntfs_get_block_vbo+0x264/0x1310 fs/ntfs3/inode.c:573 do_mpage_readpage+0x765/0x19e0 fs/mpage.c:208 mpage_readahead+0x344/0x580 fs/mpage.c:361 ntfs_readahead+0x1f9/0x260 fs/ntfs3/inode.c:739 read_pages+0x1a2/0xd40 mm/readahead.c:161 page_cache_ra_unbounded+0x477/0x5e0 mm/readahead.c:270 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order+0x6ec/0xa00 mm/readahead.c:560 ondemand_readahead+0x6b3/0x1000 mm/readahead.c:682 page_cache_sync_ra+0x1c9/0x200 mm/readahead.c:709 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x2ca/0x16b0 mm/filemap.c:2600 filemap_read+0x315/0xc00 mm/filemap.c:2694 generic_file_read_iter+0x3ad/0x5b0 mm/filemap.c:2840 ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:758 __kernel_read+0x2ca/0x7c0 fs/read_write.c:428 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x2aa/0x3b0 security/integrity/ima/ima_crypto.c:485 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x195/0x4a0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x642/0x7b0 security/integrity/ima/ima_api.c:292 process_measurement+0xd23/0x18b0 security/integrity/ima/ima_main.c:339 ima_file_check+0xb0/0x100 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x15f1/0x2a50 fs/namei.c:3714 do_file_open_root+0x2cc/0x590 fs/namei.c:3766 file_open_root+0x2b1/0x430 fs/open.c:1290 do_handle_open+0x327/0x8b0 fs/fhandle.c:232 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f678968c0a9 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:00007f678a3c1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f67897ac050 RCX: 00007f678968c0a9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007f67896e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce2251c7f R14: 00007f678a3c1300 R15: 0000000000022000 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888022ba1d41, curr 0xffff888022ba1d40, list not empty WARNING: CPU: 0 PID: 12697 at kernel/locking/rwsem.c:1335 __up_read+0x4d0/0x720 kernel/locking/rwsem.c:1335 Modules linked in: CPU: 0 PID: 12697 Comm: syz-executor.5 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__up_read+0x4d0/0x720 kernel/locking/rwsem.c:1335 Code: 8b 44 24 10 80 3c 02 00 0f 85 a9 01 00 00 49 8b 17 4d 89 f1 48 c7 c6 80 40 4c 8a 48 c7 c7 c0 40 4c 8a ff 34 24 e8 60 69 5c 08 <0f> 0b 5f e9 c7 fe ff ff 4d 8d 77 58 c6 05 5f e3 fa 0c 01 48 b8 00 RSP: 0018:ffffc9000b45e3f0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8e730928 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff8166721c RDI: fffff5200168bc70 RBP: ffff88808251f748 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 57525f4755424544 R12: 1ffff9200168bc82 R13: ffff88808251f7a8 R14: ffff888022ba1d40 R15: ffff88808251f740 FS: 00007f678a3c1700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f60c2f0000 CR3: 000000002898c000 CR4: 0000000000350ef0 Call Trace: attr_data_get_block+0x19d/0x19f0 fs/ntfs3/attrib.c:906 ntfs_get_block_vbo+0x264/0x1310 fs/ntfs3/inode.c:573 do_mpage_readpage+0x765/0x19e0 fs/mpage.c:208 mpage_readahead+0x344/0x580 fs/mpage.c:361 ntfs_readahead+0x1f9/0x260 fs/ntfs3/inode.c:739 read_pages+0x1a2/0xd40 mm/readahead.c:161 page_cache_ra_unbounded+0x477/0x5e0 mm/readahead.c:270 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order+0x6ec/0xa00 mm/readahead.c:560 ondemand_readahead+0x6b3/0x1000 mm/readahead.c:682 page_cache_sync_ra+0x1c9/0x200 mm/readahead.c:709 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x2ca/0x16b0 mm/filemap.c:2600 filemap_read+0x315/0xc00 mm/filemap.c:2694 generic_file_read_iter+0x3ad/0x5b0 mm/filemap.c:2840 ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:758 __kernel_read+0x2ca/0x7c0 fs/read_write.c:428 integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x2aa/0x3b0 security/integrity/ima/ima_crypto.c:485 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x195/0x4a0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x642/0x7b0 security/integrity/ima/ima_api.c:292 process_measurement+0xd23/0x18b0 security/integrity/ima/ima_main.c:339 ima_file_check+0xb0/0x100 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x15f1/0x2a50 fs/namei.c:3714 do_file_open_root+0x2cc/0x590 fs/namei.c:3766 file_open_root+0x2b1/0x430 fs/open.c:1290 do_handle_open+0x327/0x8b0 fs/fhandle.c:232 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f678968c0a9 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:00007f678a3c1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f67897ac050 RCX: 00007f678968c0a9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007f67896e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce2251c7f R14: 00007f678a3c1300 R15: 0000000000022000