WARNING: CPU: 1 PID: 4612 at kernel/locking/rwsem.c:1323 __up_read+0x5e1/0x660 kernel/locking/rwsem.c:1323 Modules linked in: CPU: 1 PID: 4612 Comm: syz.1.92 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:__up_read+0x5e1/0x660 kernel/locking/rwsem.c:1323 Code: 0f 44 d0 48 c7 c7 40 03 0b 8a 48 c7 c6 e0 03 0b 8a 4c 89 ea 48 8b 4c 24 08 4d 89 e0 4d 89 f1 41 52 e8 53 2d 3b 08 48 83 c4 08 <0f> 0b e9 85 fb ff ff 48 c7 c1 48 df 68 8d 80 e1 07 80 c1 03 38 c1 RSP: 0000:ffffc900031eea80 EFLAGS: 00010292 RAX: 47bb87bfb6484100 RBX: ffff88805f63736f RCX: 0000000000080000 RDX: ffffc9000f4bc000 RSI: 0000000000008f39 RDI: 0000000000008f3a RBP: ffffc900031eeb30 R08: dffffc0000000000 R09: ffffed10172267a8 R10: ffffed10172267a8 R11: 1ffff110172267a7 R12: ff888022221dc100 R13: 00000000000100ff R14: ffff888022221dc0 R15: ffff88805f6373c7 FS: 00007ffbed3bb6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005569eb1b6810 CR3: 000000005fbba000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filemap_invalidate_unlock_shared include/linux/fs.h:854 [inline] filemap_update_page mm/filemap.c:2469 [inline] filemap_get_pages mm/filemap.c:2574 [inline] filemap_read+0x1220/0x2480 mm/filemap.c:2634 __kernel_read+0x4eb/0x910 fs/read_write.c:443 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228 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+0x1546/0x18e0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x2ef/0x760 security/integrity/ima/ima_api.c:255 process_measurement+0xfb9/0x1a10 security/integrity/ima/ima_main.c:351 ima_file_check+0xc1/0x100 security/integrity/ima/ima_main.c:533 do_open fs/namei.c:3610 [inline] path_openat+0x2735/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ffbef574969 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffbed3bb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffbef79c080 RCX: 00007ffbef574969 RDX: 1df2a23c5997fa5f RSI: 0000000000080242 RDI: 0000200000000580 RBP: 00007ffbef5f6ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffbef79c080 R15: 00007fffbb8839e8