syzbot


WARNING in filemap_read

Status: auto-obsoleted due to no activity on 2025/07/20 06:05
Reported-by: syzbot+cee811f188b9fc32d8cc@syzkaller.appspotmail.com
First crash: 73d, last: 72d

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x100ff, magic = 0xff88805f09d5f0ff, owner = 0xff88801dfc3b8100, curr 0xffff88801dfc3b80, list not empty
WARNING: CPU: 1 PID: 9523 at kernel/locking/rwsem.c:1323 __up_read+0x5e1/0x660 kernel/locking/rwsem.c:1323
Modules linked in:
CPU: 1 PID: 9523 Comm: syz.6.1187 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: 0018:ffffc90003edea80 EFLAGS: 00010292
RAX: d5bb56b98ddd1a00 RBX: ffff88805f09d5ef RCX: 0000000000080000
RDX: ffffc900059a9000 RSI: 00000000000065c4 RDI: 00000000000065c5
RBP: ffffc90003edeb30 R08: dffffc0000000000 R09: ffffed1017224f24
R10: ffffed1017224f24 R11: 1ffff11017224f23 R12: ff88801dfc3b8100
R13: 00000000000100ff R14: ffff88801dfc3b80 R15: ffff88805f09d647
FS:  00007fdb48b526c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdb81133000 CR3: 0000000023d5d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 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:0x7fdb4ad0b969
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:00007fdb48b52038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fdb4af33080 RCX: 00007fdb4ad0b969
RDX: 1df2a23c5997fa5f RSI: 0000000000080242 RDI: 0000200000000580
RBP: 00007fdb4ad8dab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fdb4af33080 R15: 00007fff6c786d08
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/11 06:05 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/11 05:45 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/11 05:37 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 21:55 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:28 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:28 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:18 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:16 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:06 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
2025/05/10 16:00 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in filemap_read
* Struck through repros no longer work on HEAD.