syzbot


kernel BUG in do_swap_page

Status: upstream: reported C repro on 2025/03/14 17:19
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+4779ad89e68887151620@syzkaller.appspotmail.com
First crash: 26d, last: 2d00h
Bug presence (3)
Date Name Commit Repro Result
2025/03/15 android14-6.1 (ToT) 33c9d4844afc C [report] kernel BUG in do_swap_page
2025/03/15 lts (merge base) 0cbb5f65e52f C Didn't crash
2025/03/15 upstream (ToT) 3571e8b091f4 C Didn't crash
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/04/05 22:14 6m retest repro android14-6.1 report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/memory.c:4062!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 297 Comm: syz-executor227 Not tainted 6.1.128-syzkaller-00010-g27895588a299 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:do_swap_page+0x17cd/0x1ea0 mm/memory.c:4062
Code: 48 8b 74 24 10 48 8d 94 24 20 01 00 00 48 8b 4c 24 20 4c 8b 44 24 50 e8 61 6f 32 02 eb 24 e8 1a 56 c4 ff 0f 0b e8 13 56 c4 ff <0f> 0b e8 0c 56 c4 ff e9 4b f7 ff ff e8 02 56 c4 ff eb 38 e8 fb 55
RSP: 0018:ffffc90000df7780 EFLAGS: 00010293
RAX: ffffffff81b13ecd RBX: 0000000000020000 RCX: ffff8881108c0000
RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000
RBP: ffffc90000df7910 R08: ffffffff81b13212 R09: fffff9400092e4c9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000df7a80
R13: dffffc0000000000 R14: ffffea0004972640 R15: 50000000000a0415
FS:  000055557e531380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa59060f0d0 CR3: 00000001242e1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 handle_pte_fault mm/memory.c:5161 [inline]
 __handle_mm_fault mm/memory.c:5299 [inline]
 handle_mm_fault+0x1b32/0x30e0 mm/memory.c:5439
 faultin_page mm/gup.c:1009 [inline]
 __get_user_pages+0x377/0xf20 mm/gup.c:1233
 populate_vma_page_range mm/gup.c:1590 [inline]
 __mm_populate+0x375/0x570 mm/gup.c:1704
 do_mlock+0x57a/0x680 mm/mlock.c:611
 __do_sys_mlock mm/mlock.c:619 [inline]
 __se_sys_mlock mm/mlock.c:617 [inline]
 __x64_sys_mlock+0x60/0x70 mm/mlock.c:617
 x64_sys_call+0x434/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:150
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa59059e769
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffaef45d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 0000400000000000 RCX: 00007fa59059e769
RDX: 00007fa59059e769 RSI: 0000000000800000 RDI: 0000400000000000
RBP: 00007fa5905e0162 R08: 0000000000000140 R09: 0000000000000140
R10: 0000000000000140 R11: 0000000000000246 R12: 00007fa5905e5c7c
R13: 00007fa5905e00ca R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_swap_page+0x17cd/0x1ea0 mm/memory.c:4062
Code: 48 8b 74 24 10 48 8d 94 24 20 01 00 00 48 8b 4c 24 20 4c 8b 44 24 50 e8 61 6f 32 02 eb 24 e8 1a 56 c4 ff 0f 0b e8 13 56 c4 ff <0f> 0b e8 0c 56 c4 ff e9 4b f7 ff ff e8 02 56 c4 ff eb 38 e8 fb 55
RSP: 0018:ffffc90000df7780 EFLAGS: 00010293
RAX: ffffffff81b13ecd RBX: 0000000000020000 RCX: ffff8881108c0000
RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000
RBP: ffffc90000df7910 R08: ffffffff81b13212 R09: fffff9400092e4c9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000df7a80
R13: dffffc0000000000 R14: ffffea0004972640 R15: 50000000000a0415
FS:  000055557e531380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa59060f0d0 CR3: 00000001242e1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/14 20:27 android14-6.1 27895588a299 e2826670 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/03/14 17:16 android14-6.1 27895588a299 e2826670 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/04/08 05:14 android14-6.1 ca24c52e3c25 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/03/22 18:09 android14-6.1 5145d157731f c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/03/14 16:23 android14-6.1 27895588a299 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/03/14 16:22 android14-6.1 27895588a299 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
* Struck through repros no longer work on HEAD.