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: 16091 Comm: syz-executor.4 Not tainted 6.5.0-rc2-syzkaller-00345-gc2782531397f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 assign_lock_key+0x222/0x230 kernel/locking/lockdep.c:984 register_lock_class+0x28e/0x990 kernel/locking/lockdep.c:1297 __lock_acquire+0x190/0x7f70 kernel/locking/lockdep.c:5021 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5761 down_read+0x47/0x2f0 kernel/locking/rwsem.c:1520 attr_data_get_block+0x2e7/0x2da0 fs/ntfs3/attrib.c:902 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:585 do_mpage_readpage+0x911/0x1fa0 fs/mpage.c:234 mpage_readahead+0x454/0x930 fs/mpage.c:382 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x697/0x7c0 mm/readahead.c:269 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline] filemap_get_pages+0x49c/0x20c0 mm/filemap.c:2563 filemap_read+0x3d9/0x10d0 mm/filemap.c:2658 __kernel_read+0x422/0x8e0 fs/read_write.c:428 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:195 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+0x164c/0x1d20 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x4a5/0x890 security/integrity/ima/ima_api.c:289 process_measurement+0xfea/0x1cf0 security/integrity/ima/ima_main.c:345 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:543 do_open fs/namei.c:3638 [inline] path_openat+0x2812/0x3180 fs/namei.c:3793 do_file_open_root+0x376/0x7c0 fs/namei.c:3845 file_open_root+0x247/0x2a0 fs/open.c:1387 do_handle_open+0x56e/0x650 fs/fhandle.c:239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f763187cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f76325c30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f763199c120 RCX: 00007f763187cb29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f76318c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f763199c120 R15: 00007fff5489f978 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff88802388d941, curr 0xffff88802388d940, list not empty WARNING: CPU: 0 PID: 16091 at kernel/locking/rwsem.c:1342 __up_read+0x505/0x690 kernel/locking/rwsem.c:1342 Modules linked in: CPU: 0 PID: 16091 Comm: syz-executor.4 Not tainted 6.5.0-rc2-syzkaller-00345-gc2782531397f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:__up_read+0x505/0x690 kernel/locking/rwsem.c:1342 Code: 44 c1 48 c7 c7 80 84 0a 8b 48 c7 c6 20 86 0a 8b 4c 89 fa 48 8b 4c 24 08 49 89 d8 4c 8b 4c 24 10 50 e8 2f 60 e8 ff 48 83 c4 08 <0f> 0b 48 bb 00 00 00 00 00 fc ff df 4c 8b 2c 24 e9 ac fb ff ff c6 RSP: 0018:ffffc9000b355d00 EFLAGS: 00010296 RAX: 361a876ec3071900 RBX: ffff88802388d941 RCX: ffff88802388d940 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000b355db0 R08: ffffffff815323a2 R09: 1ffff9200166ab54 R10: dffffc0000000000 R11: fffff5200166ab55 R12: ffff88807b5a17c8 R13: ffff88807b5a17b8 R14: 1ffff1100f6b42f9 R15: 0000000000000100 FS: 00007f76325c36c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb57a50640e CR3: 000000007e88b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: attr_data_get_block+0x34b/0x2da0 fs/ntfs3/attrib.c:905 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:585 do_mpage_readpage+0x911/0x1fa0 fs/mpage.c:234 mpage_readahead+0x454/0x930 fs/mpage.c:382 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x697/0x7c0 mm/readahead.c:269 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline] filemap_get_pages+0x49c/0x20c0 mm/filemap.c:2563 filemap_read+0x3d9/0x10d0 mm/filemap.c:2658 __kernel_read+0x422/0x8e0 fs/read_write.c:428 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:195 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+0x164c/0x1d20 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x4a5/0x890 security/integrity/ima/ima_api.c:289 process_measurement+0xfea/0x1cf0 security/integrity/ima/ima_main.c:345 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:543 do_open fs/namei.c:3638 [inline] path_openat+0x2812/0x3180 fs/namei.c:3793 do_file_open_root+0x376/0x7c0 fs/namei.c:3845 file_open_root+0x247/0x2a0 fs/open.c:1387 do_handle_open+0x56e/0x650 fs/fhandle.c:239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f763187cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f76325c30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f763199c120 RCX: 00007f763187cb29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f76318c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f763199c120 R15: 00007fff5489f978