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: 6650 Comm: syz.0.16 Not tainted 6.16.0-rc6-syzkaller-00368-g07fa9cad5460 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
assign_lock_key+0x133/0x150 kernel/locking/lockdep.c:987
register_lock_class+0x105/0x320 kernel/locking/lockdep.c:1302
__lock_acquire+0x99/0xd20 kernel/locking/lockdep.c:5115
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5871
down_read+0x46/0x2e0 kernel/locking/rwsem.c:1524
attr_data_get_block+0x10f/0x1ec0 fs/ntfs3/attrib.c:906
ntfs_get_block_vbo+0x392/0xc30 fs/ntfs3/inode.c:605
do_mpage_readpage+0x86d/0x19a0 fs/mpage.c:222
mpage_readahead+0x398/0x650 fs/mpage.c:371
read_pages+0x177/0x580 mm/readahead.c:160
page_cache_ra_unbounded+0x6b0/0x7b0 mm/readahead.c:297
filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602
filemap_read+0x3f6/0x11a0 mm/filemap.c:2711
__kernel_read+0x469/0x8c0 fs/read_write.c:530
integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x85e/0x16f0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x428/0x8d0 security/integrity/ima/ima_api.c:293
process_measurement+0x1121/0x1a40 security/integrity/ima/ima_main.c:385
ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613
security_file_post_open+0xbb/0x290 security/security.c:3130
do_open fs/namei.c:3898 [inline]
path_openat+0x2f26/0x3830 fs/namei.c:4055
do_file_open_root+0x304/0x5a0 fs/namei.c:4107
file_open_root+0x15d/0x1b0 fs/open.c:1416
do_handle_open+0x7a2/0x850 fs/fhandle.c:415
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f156af8e969
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:00007f156bd30038 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f156b1b6080 RCX: 00007f156af8e969
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f156b010ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f156b1b6080 R15: 00007ffd62934e08
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff88802a9a1e01, curr 0xffff88802a9a1e00, list not empty
WARNING: CPU: 1 PID: 6650 at kernel/locking/rwsem.c:1340 __up_read+0x4f8/0x680 kernel/locking/rwsem.c:1340
Modules linked in:
CPU: 1 UID: 0 PID: 6650 Comm: syz.0.16 Not tainted 6.16.0-rc6-syzkaller-00368-g07fa9cad5460 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__up_read+0x4f8/0x680 kernel/locking/rwsem.c:1340
Code: c7 c7 c0 f8 8a 8b 48 c7 c6 20 fa 8a 8b 4c 89 ea 48 8b 4c 24 08 4c 8b 04 24 4c 8b 4c 24 10 41 52 e8 8d 47 e6 ff 48 83 c4 08 90 <0f> 0b 90 90 e9 c7 fb ff ff c6 05 4c cf ec 0d 01 90 48 89 df be 08
RSP: 0018:ffffc900038fdd60 EFLAGS: 00010296
RAX: bbe782f8dfdb5600 RBX: ffff888073248140 RCX: ffff88802a9a1e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc900038fde10 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1bfaa6c R12: ffff8880732481a8
R13: 0000000000000100 R14: 1ffff1100e649035 R15: ffff888073248198
FS: 00007f156bd306c0(0000) GS:ffff888125d57000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f156bd2ff98 CR3: 0000000032110000 CR4: 00000000003526f0
Call Trace:
attr_data_get_block+0x175/0x1ec0 fs/ntfs3/attrib.c:909
ntfs_get_block_vbo+0x392/0xc30 fs/ntfs3/inode.c:605
do_mpage_readpage+0x86d/0x19a0 fs/mpage.c:222
mpage_readahead+0x398/0x650 fs/mpage.c:371
read_pages+0x177/0x580 mm/readahead.c:160
page_cache_ra_unbounded+0x6b0/0x7b0 mm/readahead.c:297
filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602
filemap_read+0x3f6/0x11a0 mm/filemap.c:2711
__kernel_read+0x469/0x8c0 fs/read_write.c:530
integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x85e/0x16f0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x428/0x8d0 security/integrity/ima/ima_api.c:293
process_measurement+0x1121/0x1a40 security/integrity/ima/ima_main.c:385
ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613
security_file_post_open+0xbb/0x290 security/security.c:3130
do_open fs/namei.c:3898 [inline]
path_openat+0x2f26/0x3830 fs/namei.c:4055
do_file_open_root+0x304/0x5a0 fs/namei.c:4107
file_open_root+0x15d/0x1b0 fs/open.c:1416
do_handle_open+0x7a2/0x850 fs/fhandle.c:415
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f156af8e969
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:00007f156bd30038 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f156b1b6080 RCX: 00007f156af8e969
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f156b010ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f156b1b6080 R15: 00007ffd62934e08