[v5.15] WARNING in filemap_read

0 views
Skip to first unread message

syzbot

unread,
May 10, 2025, 7:01:25 PMMay 10
Hello,

syzbot found the following issue on:

HEAD commit: 3b8db0e4f263 Linux 5.15.182
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13536cf4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f93aaf95aed43225
dashboard link: https://syzkaller.appspot.com/bug?extid=cee811f188b9fc32d8cc
compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4b5fc99635e8/disk-3b8db0e4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5351a5e4c264/vmlinux-3b8db0e4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e022b133e1a6/bzImage-3b8db0e4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(!is_rwsem_reader_owned(sem)): count = 0x100ff, magic = 0xff88805f524e90ff, owner = 0xff88802bc03b8100, curr 0xffff88802bc03b80, list not empty
WARNING: CPU: 1 PID: 7480 at kernel/locking/rwsem.c:1323 __up_read+0x5e1/0x660 kernel/locking/rwsem.c:1323
Modules linked in:
CPU: 1 PID: 7480 Comm: syz.4.797 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:ffffc90004a2ea80 EFLAGS: 00010292
RAX: 60afdd8f6a999e00 RBX: ffff88805f524e8f RCX: 0000000000080000
RDX: ffffc9000e4e1000 RSI: 0000000000009787 RDI: 0000000000009788
RBP: ffffc90004a2eb30 R08: dffffc0000000000 R09: fffff52000945cb5
R10: fffff52000945cb5 R11: 1ffff92000945cb4 R12: ff88802bc03b8100
R13: 00000000000100ff R14: ffff88802bc03b80 R15: ffff88805f524ee7
FS: 00007f195e8a76c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000001c000 CR3: 000000007869e000 CR4: 00000000003526e0
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:0x7f1960a60969
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:00007f195e8a7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f1960c88080 RCX: 00007f1960a60969
RDX: 1df2a23c5997fa5f RSI: 0000000000080242 RDI: 0000200000000580
RBP: 00007f1960ae2ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1960c88080 R15: 00007ffd42c64038
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at [email protected].

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages