loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
ntfs3: loop0: ino=0, ntfs_iget5
ntfs3: loop0: Mark volume as dirty due to NTFS errors
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: 2 PID: 5483 Comm: syz-executor.0 Not tainted 6.10.0-rc4-syzkaller-00217-g35bb670d65fc #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
assign_lock_key kernel/locking/lockdep.c:976 [inline]
register_lock_class+0xc2a/0x1230 kernel/locking/lockdep.c:1289
__lock_acquire+0x111/0x3b30 kernel/locking/lockdep.c:5014
lock_acquire kernel/locking/lockdep.c:5754 [inline]
lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719
down_read+0x9a/0x330 kernel/locking/rwsem.c:1526
attr_data_get_block+0x18b/0x1b70 fs/ntfs3/attrib.c:902
ntfs_get_block_vbo+0x282/0xee0 fs/ntfs3/inode.c:599
do_mpage_readpage+0x660/0x17c0 fs/mpage.c:232
mpage_readahead+0x344/0x590 fs/mpage.c:381
ntfs_readahead+0x1f7/0x250 fs/ntfs3/inode.c:767
read_pages+0x1a8/0xd80 mm/readahead.c:160
page_cache_ra_unbounded+0x2d8/0x5a0 mm/readahead.c:273
do_page_cache_ra mm/readahead.c:303 [inline]
page_cache_ra_order+0x6e5/0xae0 mm/readahead.c:547
ondemand_readahead+0x520/0x1140 mm/readahead.c:669
page_cache_sync_ra+0x174/0x1d0 mm/readahead.c:696
page_cache_sync_readahead include/linux/pagemap.h:1306 [inline]
filemap_get_pages+0xc01/0x1830 mm/filemap.c:2529
filemap_read+0x3af/0xd10 mm/filemap.c:2625
generic_file_read_iter+0x350/0x460 mm/filemap.c:2806
ntfs_file_read_iter+0x258/0x330 fs/ntfs3/file.c:777
__kernel_read+0x3ec/0xb50 fs/read_write.c:434
integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:28
ima_calc_file_hash_tfm+0x2cf/0x3e0 security/integrity/ima/ima_crypto.c:480
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x8ab/0xa50 security/integrity/ima/ima_api.c:293
process_measurement+0x1289/0x23a0 security/integrity/ima/ima_main.c:372
ima_file_check+0xc1/0x110 security/integrity/ima/ima_main.c:572
security_file_post_open+0x6d/0xc0 security/security.c:2982
do_open fs/namei.c:3652 [inline]
path_openat+0x17ec/0x29f0 fs/namei.c:3807
do_file_open_root+0x2dd/0x5b0 fs/namei.c:3859
file_open_root+0x2a8/0x450 fs/open.c:1385
do_handle_open+0x3d2/0x5c0 fs/fhandle.c:235
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a14a7dda9
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:00007f5a157630c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f5a14babf80 RCX: 00007f5a14a7dda9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f5a14aca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f5a14babf80 R15: 00007ffd187a9888
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888023de2441, curr 0xffff888023de2440, list not empty
WARNING: CPU: 0 PID: 5483 at kernel/locking/rwsem.c:1342 __up_read+0x508/0x760 kernel/locking/rwsem.c:1342
Modules linked in:
CPU: 0 PID: 5483 Comm: syz-executor.0 Not tainted 6.10.0-rc4-syzkaller-00217-g35bb670d65fc #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__up_read+0x508/0x760 kernel/locking/rwsem.c:1342
Code: 24 10 80 3c 02 00 0f 85 21 02 00 00 48 8b 13 41 57 48 c7 c6 00 a6 2c 8b 48 c7 c7 40 a6 2c 8b 4c 8b 4c 24 08 e8 79 63 e5 ff 90 <0f> 0b 90 90 5f e9 c3 fe ff ff c6 05 d2 5d 63 0e 01 90 4c 8d 7b 58
RSP: 0018:ffffc90003f36200 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8880421f6fe0 RCX: ffffffff81500069
RDX: ffff888023de2440 RSI: ffffffff81500076 RDI: 0000000000000001
RBP: ffffffff8fe4b194 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 57525f4755424544 R12: ffff8880421f6fe8
R13: 1ffff920007e6c44 R14: ffff8880421f7048 R15: ffffffff8b2ca5c0
FS: 00007f5a157636c0(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056041e54d300 CR3: 000000001d840000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
attr_data_get_block+0x1f9/0x1b70 fs/ntfs3/attrib.c:905
ntfs_get_block_vbo+0x282/0xee0 fs/ntfs3/inode.c:599
do_mpage_readpage+0x660/0x17c0 fs/mpage.c:232
mpage_readahead+0x344/0x590 fs/mpage.c:381
ntfs_readahead+0x1f7/0x250 fs/ntfs3/inode.c:767
read_pages+0x1a8/0xd80 mm/readahead.c:160
page_cache_ra_unbounded+0x2d8/0x5a0 mm/readahead.c:273
do_page_cache_ra mm/readahead.c:303 [inline]
page_cache_ra_order+0x6e5/0xae0 mm/readahead.c:547
ondemand_readahead+0x520/0x1140 mm/readahead.c:669
page_cache_sync_ra+0x174/0x1d0 mm/readahead.c:696
page_cache_sync_readahead include/linux/pagemap.h:1306 [inline]
filemap_get_pages+0xc01/0x1830 mm/filemap.c:2529
filemap_read+0x3af/0xd10 mm/filemap.c:2625
generic_file_read_iter+0x350/0x460 mm/filemap.c:2806
ntfs_file_read_iter+0x258/0x330 fs/ntfs3/file.c:777
__kernel_read+0x3ec/0xb50 fs/read_write.c:434
integrity_kernel_read+0x7f/0xb0 security/integrity/iint.c:28
ima_calc_file_hash_tfm+0x2cf/0x3e0 security/integrity/ima/ima_crypto.c:480
ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
ima_calc_file_hash+0x1c6/0x4a0 security/integrity/ima/ima_crypto.c:568
ima_collect_measurement+0x8ab/0xa50 security/integrity/ima/ima_api.c:293
process_measurement+0x1289/0x23a0 security/integrity/ima/ima_main.c:372
ima_file_check+0xc1/0x110 security/integrity/ima/ima_main.c:572
security_file_post_open+0x6d/0xc0 security/security.c:2982
do_open fs/namei.c:3652 [inline]
path_openat+0x17ec/0x29f0 fs/namei.c:3807
do_file_open_root+0x2dd/0x5b0 fs/namei.c:3859
file_open_root+0x2a8/0x450 fs/open.c:1385
do_handle_open+0x3d2/0x5c0 fs/fhandle.c:235
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a14a7dda9
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:00007f5a157630c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007f5a14babf80 RCX: 00007f5a14a7dda9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f5a14aca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f5a14babf80 R15: 00007ffd187a9888