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 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888029b70001, curr 0xffff888029b70000, list not empty WARNING: CPU: 1 PID: 5457 at kernel/locking/rwsem.c:1342 __up_read+0x501/0x750 kernel/locking/rwsem.c:1342 Modules linked in: CPU: 1 PID: 5457 Comm: syz-executor.0 Not tainted 6.5.0-rc7-next-20230825-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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 40 a2 8c 8a 48 c7 c7 80 a2 8c 8a 4c 8b 4c 24 08 e8 3f d3 e6 ff <0f> 0b 5f e9 c6 fe ff ff 4c 8d 7b 58 c6 05 07 06 51 0d 01 48 b8 00 RSP: 0018:ffffc900052ae2f8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88806f026fe0 RCX: 0000000000000000 RDX: ffff888029b70000 RSI: ffffffff814df276 RDI: 0000000000000001 RBP: ffffffff8ece480c R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88806f026fe8 R13: 1ffff92000a55c63 R14: ffff88806f027048 R15: ffffffff8a8ca200 FS: 00007f50158566c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005654fcfa3950 CR3: 00000000732c5000 CR4: 00000000003506e0 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/0xec0 fs/ntfs3/inode.c:587 do_mpage_readpage+0x6f8/0x1ab0 fs/mpage.c:234 mpage_readahead+0x34d/0x590 fs/mpage.c:382 ntfs_readahead+0x1f7/0x250 fs/ntfs3/inode.c:754 read_pages+0x1d1/0xdb0 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:546 ondemand_readahead+0x49a/0x1140 mm/readahead.c:668 page_cache_sync_ra+0x174/0x1d0 mm/readahead.c:695 page_cache_sync_readahead include/linux/pagemap.h:1293 [inline] filemap_get_pages+0xc06/0x1830 mm/filemap.c:2559 filemap_read+0x39b/0xcf0 mm/filemap.c:2655 generic_file_read_iter+0x346/0x450 mm/filemap.c:2834 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:3641 [inline] path_openat+0x17a1/0x29c0 fs/namei.c:3796 do_file_open_root+0x2df/0x5b0 fs/namei.c:3848 file_open_root+0x2a8/0x450 fs/open.c:1402 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:0x7f5014a7c859 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:00007f50158560c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f5014b9bf80 RCX: 00007f5014a7c859 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007f5014ad8ad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5014b9bf80 R15: 00007fff2a0e89e8