syzbot


WARNING in try_to_unmap_one

Status: upstream: reported on 2024/03/05 04:38
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+28895085dfb33190ed3c@syzkaller.appspotmail.com
First crash: 44d, last: 3d03h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING in try_to_unmap_one 0 (1) 2024/03/05 04:38

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11835 at arch/x86/include/asm/pgtable.h:404 pte_uffd_wp arch/x86/include/asm/pgtable.h:404 [inline]
WARNING: CPU: 1 PID: 11835 at arch/x86/include/asm/pgtable.h:404 try_to_unmap_one+0x1894/0x3570 mm/rmap.c:1891
Modules linked in:
CPU: 1 PID: 11835 Comm: syz-executor.1 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:pte_uffd_wp arch/x86/include/asm/pgtable.h:404 [inline]
RIP: 0010:try_to_unmap_one+0x1894/0x3570 mm/rmap.c:1891
Code: 5c 24 40 83 e3 42 bf 40 00 00 00 48 89 de e8 33 b0 ac ff 48 83 fb 40 0f 84 32 02 00 00 e8 44 ab ac ff eb 09 e8 3d ab ac ff 90 <0f> 0b 90 49 83 ce 04 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 30
RSP: 0018:ffffc9000c7366c0 EFLAGS: 00010293
RAX: ffffffff81e84a13 RBX: 000000004a42fc47 RCX: ffff88801ee01e00
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc9000c7369d0 R08: ffffffff81e849d5 R09: 1ffffffff1f0e59d
R10: dffffc0000000000 R11: fffffbfff1f0e59e R12: 0000000000000000
R13: 1ffff1100fab94f9 R14: 07fffffffff8300a R15: ffff88807d5ca600
FS:  00007f862f0c16c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f862f05ed58 CR3: 0000000068a60000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rmap_walk_anon+0x36f/0x680 mm/rmap.c:2599
 try_to_unmap+0x243/0x2e0
 shrink_folio_list+0x25b9/0x8c10 mm/vmscan.c:1253
 reclaim_folio_list mm/vmscan.c:2101 [inline]
 reclaim_pages+0x91a/0xc90 mm/vmscan.c:2137
 madvise_cold_or_pageout_pte_range+0x2843/0x3110 mm/madvise.c:527
 walk_pmd_range mm/pagewalk.c:143 [inline]
 walk_pud_range mm/pagewalk.c:221 [inline]
 walk_p4d_range mm/pagewalk.c:256 [inline]
 walk_pgd_range+0xba1/0x17e0 mm/pagewalk.c:293
 __walk_page_range+0x132/0x720 mm/pagewalk.c:395
 walk_page_range+0x4c8/0x6c0 mm/pagewalk.c:521
 madvise_pageout_page_range mm/madvise.c:586 [inline]
 madvise_pageout mm/madvise.c:613 [inline]
 madvise_vma_behavior mm/madvise.c:1032 [inline]
 madvise_walk_vmas mm/madvise.c:1261 [inline]
 do_madvise+0x3562/0x4840 mm/madvise.c:1441
 __do_sys_madvise mm/madvise.c:1454 [inline]
 __se_sys_madvise mm/madvise.c:1452 [inline]
 __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:1452
 do_syscall_64+0xfb/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f862e27de69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f862f0c10c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f862e3abf80 RCX: 00007f862e27de69
RDX: 0000000000000015 RSI: 0000000000002000 RDI: 0000000020ffd000
RBP: 00007f862e2ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f862e3abf80 R15: 00007f862e4cfa48
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/11 01:08 upstream 480e035fc4c7 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in try_to_unmap_one
2024/03/01 04:31 upstream 87adedeba51a 352ab904 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in try_to_unmap_one
* Struck through repros no longer work on HEAD.