loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). ntfs3: loop0: Mark volume as dirty due to NTFS errors ntfs3: loop0: 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: 5479 Comm: syz-executor.0 Not tainted 6.7.0-rc5-syzkaller-00230-g3b8a9b2e6809 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 assign_lock_key+0x234/0x270 kernel/locking/lockdep.c:976 register_lock_class+0x1cf/0x970 kernel/locking/lockdep.c:1289 __lock_acquire+0xd9/0x1fd0 kernel/locking/lockdep.c:5014 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 down_read+0xb1/0xa40 kernel/locking/rwsem.c:1526 attr_data_get_block+0x2e7/0x2da0 fs/ntfs3/attrib.c:902 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:589 do_mpage_readpage+0x90c/0x1f60 fs/mpage.c:233 mpage_readahead+0x44f/0x930 fs/mpage.c:381 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x49c/0x2080 mm/filemap.c:2497 filemap_read+0x41b/0xec0 mm/filemap.c:2593 __kernel_read+0x425/0x8b0 fs/read_write.c:428 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:221 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0xad1/0x1b30 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x554/0xb30 security/integrity/ima/ima_api.c:290 process_measurement+0x1373/0x21c0 security/integrity/ima/ima_main.c:359 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x2897/0x3290 fs/namei.c:3779 do_file_open_root+0x355/0x680 fs/namei.c:3834 file_open_root+0x247/0x2a0 fs/open.c:1417 do_handle_open+0x56e/0x650 fs/fhandle.c:235 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7efee507cae9 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:00007efee5dca0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007efee519bf80 RCX: 00007efee507cae9 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007efee50c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efee519bf80 R15: 00007ffea2aaa3e8 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100, magic = 0x0, owner = 0xffff888024e75941, curr 0xffff888024e75940, list not empty WARNING: CPU: 1 PID: 5479 at kernel/locking/rwsem.c:1342 __up_read+0x50b/0x6a0 kernel/locking/rwsem.c:1342 Modules linked in: CPU: 1 PID: 5479 Comm: syz-executor.0 Not tainted 6.7.0-rc5-syzkaller-00230-g3b8a9b2e6809 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:__up_read+0x50b/0x6a0 kernel/locking/rwsem.c:1342 Code: c1 48 c7 c7 60 99 6a 8b 48 c7 c6 00 9b 6a 8b 4c 89 fa 48 8b 4c 24 08 49 89 d8 4c 8b 4c 24 10 50 e8 2a fd e7 ff 48 83 c4 08 90 <0f> 0b 90 90 48 bb 00 00 00 00 00 fc ff df 4c 8b 2c 24 e9 a4 fb ff RSP: 0018:ffffc90005165ce0 EFLAGS: 00010292 RAX: 4cad8fdbb9348e00 RBX: ffff888024e75941 RCX: ffff888024e75940 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90005165d90 R08: ffffffff81545d22 R09: 1ffff92000a2caf0 R10: dffffc0000000000 R11: fffff52000a2caf1 R12: ffff888068b1f048 R13: ffff888068b1f038 R14: 1ffff1100d163e09 R15: 0000000000000100 FS: 00007efee5dca6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005581a9613680 CR3: 0000000078610000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: attr_data_get_block+0x34b/0x2da0 fs/ntfs3/attrib.c:905 ntfs_get_block_vbo+0x36a/0xd00 fs/ntfs3/inode.c:589 do_mpage_readpage+0x90c/0x1f60 fs/mpage.c:233 mpage_readahead+0x44f/0x930 fs/mpage.c:381 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x49c/0x2080 mm/filemap.c:2497 filemap_read+0x41b/0xec0 mm/filemap.c:2593 __kernel_read+0x425/0x8b0 fs/read_write.c:428 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:221 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0xad1/0x1b30 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x554/0xb30 security/integrity/ima/ima_api.c:290 process_measurement+0x1373/0x21c0 security/integrity/ima/ima_main.c:359 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x2897/0x3290 fs/namei.c:3779 do_file_open_root+0x355/0x680 fs/namei.c:3834 file_open_root+0x247/0x2a0 fs/open.c:1417 do_handle_open+0x56e/0x650 fs/fhandle.c:235 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7efee507cae9 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:00007efee5dca0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007efee519bf80 RCX: 00007efee507cae9 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007efee50c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efee519bf80 R15: 00007ffea2aaa3e8