syzbot


kernel BUG in do_swap_page

Status: auto-obsoleted due to no activity on 2025/07/30 12:06
Reported-by: syzbot+4779ad89e68887151620@syzkaller.appspotmail.com
First crash: 159d, last: 121d
Fix bisection: fixed by (bisect log) :
commit d8a28dde36068f94dee7c2ee7e92d556661d4eca
Author: David Hildenbrand <david@redhat.com>
Date: Mon Oct 2 14:29:47 2023 +0000

  BACKPORT: mm/rmap: move SetPageAnonExclusive() out of page_move_anon_rmap()

  
Bug presence (2)
Date Name Commit Repro Result
2025/05/27 lts (merge base) 02b72ccb5f9d C Didn't crash
2025/05/27 upstream (ToT) 015a99fa7665 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: 1 PID: 2207 Comm: syz.1.457 Not tainted 6.1.129-syzkaller-00014-gbc3d1d352ab6 #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 21 56 32 02 eb 24 e8 9a 46 c4 ff 0f 0b e8 93 46 c4 ff <0f> 0b e8 8c 46 c4 ff e9 4b f7 ff ff e8 82 46 c4 ff eb 38 e8 7b 46
RSP: 0018:ffffc900011ff760 EFLAGS: 00010283
RAX: ffffffff81b0f25d RBX: 0000000000020000 RCX: 0000000000080000
RDX: ffffc90001349000 RSI: 00000000000003e4 RDI: 00000000000003e5
RBP: ffffc900011ff8f0 R08: ffffffff81b0e5a2 R09: fffff940009f9761
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900011ffa60
R13: dffffc0000000000 R14: ffffea0004fcbb00 R15: 48000000000a0415
FS:  00007f999c9ff6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c32bbf2 CR3: 000000013f829000 CR4: 00000000003526a0
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_mlock2 mm/mlock.c:632 [inline]
 __se_sys_mlock2 mm/mlock.c:622 [inline]
 __x64_sys_mlock2+0xb8/0xe0 mm/mlock.c:622
 x64_sys_call+0x89b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:326
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f999cb8e169
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:00007f999c9ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000145
RAX: ffffffffffffffda RBX: 00007f999cdb5fa0 RCX: 00007f999cb8e169
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00002000005fa000
RBP: 00007f999cc10a68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f999cdb5fa0 R15: 00007fff77613698
 </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 21 56 32 02 eb 24 e8 9a 46 c4 ff 0f 0b e8 93 46 c4 ff <0f> 0b e8 8c 46 c4 ff e9 4b f7 ff ff e8 82 46 c4 ff eb 38 e8 7b 46
RSP: 0018:ffffc900011ff760 EFLAGS: 00010283
RAX: ffffffff81b0f25d RBX: 0000000000020000 RCX: 0000000000080000
RDX: ffffc90001349000 RSI: 00000000000003e4 RDI: 00000000000003e5
RBP: ffffc900011ff8f0 R08: ffffffff81b0e5a2 R09: fffff940009f9761
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900011ffa60
R13: dffffc0000000000 R14: ffffea0004fcbb00 R15: 48000000000a0415
FS:  00007f999c9ff6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c32bbf2 CR3: 000000013f829000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/21 12:05 android14-6.1 bc3d1d352ab6 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/04/20 20:24 android14-6.1 bc3d1d352ab6 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in do_swap_page
2025/04/20 08:22 android14-6.1 bc3d1d352ab6 2a20f901 .config console log report info [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 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/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.