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: 6866 Comm: syz-executor.1 Not tainted 6.1.0-next-20221220-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+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.part.0+0x11a/0x350 kernel/locking/lockdep.c:5668
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/0x1410 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:747
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+0x538/0x650 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:0x7f988908c0a9
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:00007f9889e8d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f98891ac050 RCX: 00007f988908c0a9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f98890e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe7d80917f R14: 00007f9889e8d300 R15: 0000000000022000
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff8880755bba81, curr 0xffff8880755bba80, list not empty
WARNING: CPU: 1 PID: 6866 at kernel/locking/rwsem.c:1335 __up_read+0x4d0/0x720 kernel/locking/rwsem.c:1335
Modules linked in:
CPU: 1 PID: 6866 Comm: syz-executor.1 Not tainted 6.1.0-next-20221220-syzkaller #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 40 42 4c 8a 48 c7 c7 80 42 4c 8a ff 34 24 e8 ea 1b 5e 08 <0f> 0b 5f e9 c7 fe ff ff 4d 8d 77 58 c6 05 a3 02 fb 0c 01 48 b8 00
RSP: 0018:ffffc90006e3e410 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff8e732fe8 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff81667acc RDI: fffff52000dc7c74
RBP: ffff88808cf9cb08 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 57525f4755424544 R12: 1ffff92000dc7c86
R13: ffff88808cf9cb68 R14: ffff8880755bba80 R15: ffff88808cf9cb00
FS: 00007f9889e8d700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb8321a8000 CR3: 000000007ba04000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
attr_data_get_block+0x19d/0x19f0 fs/ntfs3/attrib.c:906
ntfs_get_block_vbo+0x264/0x1410 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:747
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+0x538/0x650 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:0x7f988908c0a9
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:00007f9889e8d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f98891ac050 RCX: 00007f988908c0a9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f98890e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe7d80917f R14: 00007f9889e8d300 R15: 0000000000022000