ntfs3: loop3: ino=0, ntfs_iget5
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: 17885 Comm: syz-executor.3 Not tainted 6.5.0-rc2-next-20230721-syzkaller #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+0xd9/0x1b0 lib/dump_stack.c:106
assign_lock_key kernel/locking/lockdep.c:984 [inline]
register_lock_class+0xd6f/0x1320 kernel/locking/lockdep.c:1297
__lock_acquire+0x13c/0x5de0 kernel/locking/lockdep.c:5021
lock_acquire kernel/locking/lockdep.c:5761 [inline]
lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726
down_read+0x9c/0x470 kernel/locking/rwsem.c:1520
attr_data_get_block+0x189/0x1a10 fs/ntfs3/attrib.c:902
ntfs_get_block_vbo+0x288/0xed0 fs/ntfs3/inode.c:587
do_mpage_readpage+0x6f8/0x1ab0 fs/mpage.c:234
mpage_readahead+0x344/0x580 fs/mpage.c:382
ntfs_readahead+0x1f7/0x250 fs/ntfs3/inode.c:754
read_pages+0x1d1/0xda0 mm/readahead.c:160
page_cache_ra_unbounded+0x457/0x5e0 mm/readahead.c:269
do_page_cache_ra mm/readahead.c:299 [inline]
page_cache_ra_order+0x72b/0xa80 mm/readahead.c:559
ondemand_readahead+0x540/0x1150 mm/readahead.c:681
page_cache_sync_ra+0x174/0x1d0 mm/readahead.c:708
page_cache_sync_readahead include/linux/pagemap.h:1230 [inline]
filemap_get_pages+0xc05/0x1820 mm/filemap.c:2564
filemap_read+0x3b3/0xd20 mm/filemap.c:2660
generic_file_read_iter+0x346/0x450 mm/filemap.c:2839
ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:744
__kernel_read+0x301/0x8a0 fs/read_write.c:428
integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:195
ima_calc_file_hash_tfm+0x2c5/0x3d0 security/integrity/ima/ima_crypto.c:485
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x5e2/0x6f0 security/integrity/ima/ima_api.c:289
process_measurement+0xc87/0x1cc0 security/integrity/ima/ima_main.c:345
ima_file_check+0xc2/0x110 security/integrity/ima/ima_main.c:543
do_open fs/namei.c:3638 [inline]
path_openat+0x17a1/0x29c0 fs/namei.c:3793
do_file_open_root+0x2df/0x5b0 fs/namei.c:3845
file_open_root+0x2a8/0x450 fs/open.c:1398
do_handle_open+0x3c5/0x5c0 fs/fhandle.c:239
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8ad0a7cb29
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:00007f8ad18bf0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f8ad0b9bf80 RCX: 00007f8ad0a7cb29
RDX: 0000000000002000 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f8ad0ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8ad0b9bf80 R15: 00007ffca60605c8
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888020460001, curr 0xffff888020460000, list not empty
WARNING: CPU: 0 PID: 17885 at kernel/locking/rwsem.c:1342 __up_read+0x501/0x750 kernel/locking/rwsem.c:1342
Modules linked in:
CPU: 0 PID: 17885 Comm: syz-executor.3 Not tainted 6.5.0-rc2-next-20230721-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:__up_read+0x501/0x750 kernel/locking/rwsem.c:1342
Code: 44 24 10 80 3c 02 00 0f 85 1b 02 00 00 48 8b 13 41 57 48 c7 c6 00 75 6c 8a 48 c7 c7 40 75 6c 8a 4c 8b 4c 24 08 e8 5f f0 e6 ff <0f> 0b 5f e9 c6 fe ff ff 4c 8d 7b 58 c6 05 ae 02 30 0d 01 48 b8 00
RSP: 0018:ffffc9001626e2f0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888088fbad80 RCX: 0000000000000000
RDX: ffff888020460000 RSI: ffffffff814d5b56 RDI: 0000000000000001
RBP: ffffffff8eac7610 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000000c288 R12: ffff888088fbad88
R13: 1ffff92002c4dc62 R14: ffff888088fbade8 R15: ffffffff8a6c74c0
FS: 00007f8ad18bf6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30224000 CR3: 00000000156d2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
attr_data_get_block+0x1f7/0x1a10 fs/ntfs3/attrib.c:905
ntfs_get_block_vbo+0x288/0xed0 fs/ntfs3/inode.c:587
do_mpage_readpage+0x6f8/0x1ab0 fs/mpage.c:234
mpage_readahead+0x344/0x580 fs/mpage.c:382
ntfs_readahead+0x1f7/0x250 fs/ntfs3/inode.c:754
read_pages+0x1d1/0xda0 mm/readahead.c:160
page_cache_ra_unbounded+0x457/0x5e0 mm/readahead.c:269
do_page_cache_ra mm/readahead.c:299 [inline]
page_cache_ra_order+0x72b/0xa80 mm/readahead.c:559
ondemand_readahead+0x540/0x1150 mm/readahead.c:681
page_cache_sync_ra+0x174/0x1d0 mm/readahead.c:708
page_cache_sync_readahead include/linux/pagemap.h:1230 [inline]
filemap_get_pages+0xc05/0x1820 mm/filemap.c:2564
filemap_read+0x3b3/0xd20 mm/filemap.c:2660
generic_file_read_iter+0x346/0x450 mm/filemap.c:2839
ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:744
__kernel_read+0x301/0x8a0 fs/read_write.c:428
integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:195
ima_calc_file_hash_tfm+0x2c5/0x3d0 security/integrity/ima/ima_crypto.c:485
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x5e2/0x6f0 security/integrity/ima/ima_api.c:289
process_measurement+0xc87/0x1cc0 security/integrity/ima/ima_main.c:345
ima_file_check+0xc2/0x110 security/integrity/ima/ima_main.c:543
do_open fs/namei.c:3638 [inline]
path_openat+0x17a1/0x29c0 fs/namei.c:3793
do_file_open_root+0x2df/0x5b0 fs/namei.c:3845
file_open_root+0x2a8/0x450 fs/open.c:1398
do_handle_open+0x3c5/0x5c0 fs/fhandle.c:239
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8ad0a7cb29
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:00007f8ad18bf0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f8ad0b9bf80 RCX: 00007f8ad0a7cb29
RDX: 0000000000002000 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f8ad0ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8ad0b9bf80 R15: 00007ffca60605c8