syzbot


kernel BUG in filemap_fault

Status: upstream: reported on 2025/02/28 07:26
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f37372d86207b3bb2941@syzkaller.appspotmail.com
First crash: 15d, last: 15d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in filemap_fault 0 (1) 2025/02/28 07:26

Sample crash report:
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1424
 task_work_run+0x24f/0x310 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
kernel BUG at mm/filemap.c:3478!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 9323 Comm: syz.5.597 Not tainted 6.14.0-rc3-next-20250218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:filemap_fault+0x15b2/0x1620 mm/filemap.c:3478
Code: 49 c6 ff 4c 89 f7 48 c7 c6 e0 ed 33 8c e8 96 09 11 00 90 0f 0b e8 9e 49 c6 ff 4c 89 f7 48 c7 c6 60 e7 33 8c e8 7f 09 11 00 90 <0f> 0b e8 87 49 c6 ff 4c 89 f7 48 c7 c6 e0 ed 33 8c e8 68 09 11 00
RSP: 0018:ffffc900144d71c0 EFLAGS: 00010246
RAX: 183f9497d65b5500 RBX: ffffea0001228018 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8c2a9d00 RDI: 0000000000000001
RBP: ffffc900144d7338 R08: ffffffff903da477 R09: 1ffffffff207b48e
R10: dffffc0000000000 R11: fffffbfff207b48f R12: ffffea0001228008
R13: ffff88807b6fc208 R14: ffffea0001228000 R15: dffffc0000000000
FS:  00007f654f9326c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f61a6653440 CR3: 0000000066368000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __do_fault+0x135/0x390 mm/memory.c:4978
 do_read_fault mm/memory.c:5393 [inline]
 do_fault mm/memory.c:5527 [inline]
 do_pte_missing mm/memory.c:4048 [inline]
 handle_pte_fault+0x3f07/0x61c0 mm/memory.c:5890
 __handle_mm_fault mm/memory.c:6033 [inline]
 handle_mm_fault+0x11ae/0x1cd0 mm/memory.c:6202
 faultin_page mm/gup.c:1196 [inline]
 __get_user_pages+0x1a8f/0x4140 mm/gup.c:1494
 populate_vma_page_range+0x264/0x330 mm/gup.c:1932
 __mm_populate+0x27a/0x460 mm/gup.c:2035
 mm_populate include/linux/mm.h:3467 [inline]
 vm_mmap_pgoff+0x303/0x430 mm/util.c:581
 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:607
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f654eb8d169
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:00007f654f932038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f654eda6080 RCX: 00007f654eb8d169
RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000400000000000
RBP: 00007f654ec0e2a0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f654eda6080 R15: 00007ffc0d9602e8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:filemap_fault+0x15b2/0x1620 mm/filemap.c:3478
Code: 49 c6 ff 4c 89 f7 48 c7 c6 e0 ed 33 8c e8 96 09 11 00 90 0f 0b e8 9e 49 c6 ff 4c 89 f7 48 c7 c6 60 e7 33 8c e8 7f 09 11 00 90 <0f> 0b e8 87 49 c6 ff 4c 89 f7 48 c7 c6 e0 ed 33 8c e8 68 09 11 00
RSP: 0018:ffffc900144d71c0 EFLAGS: 00010246
RAX: 183f9497d65b5500 RBX: ffffea0001228018 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8c2a9d00 RDI: 0000000000000001
RBP: ffffc900144d7338 R08: ffffffff903da477 R09: 1ffffffff207b48e
R10: dffffc0000000000 R11: fffffbfff207b48f R12: ffffea0001228008
R13: ffff88807b6fc208 R14: ffffea0001228000 R15: dffffc0000000000
FS:  00007f654f9326c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcf53d4bc8 CR3: 0000000066368000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/24 07:17 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in filemap_fault
* Struck through repros no longer work on HEAD.