syzbot


WARNING in __page_table_check_ptes_set (2)

Status: upstream: reported C repro on 2024/06/12 17:18
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+0b56d6ed0d0c0c9a79dc@syzkaller.appspotmail.com
First crash: 165d, last: 15d
Cause bisection: introduced by (bisect log) :
commit a1b92a3f14984c96ace381f204b5d72c0805296e
Author: Muhammad Usama Anjum <usama.anjum@collabora.com>
Date: Fri Feb 17 10:55:58 2023 +0000

  mm/userfaultfd: support WP on multiple VMAs

Crash: WARNING in try_to_migrate_one (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING in __page_table_check_ptes_set (2) 4 (7) 2024/09/30 14:33
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __page_table_check_ptes_set mm C 2 217d 213d 25/28 fixed on 2024/06/05 13:52
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/13 12:19 27m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5229 at mm/page_table_check.c:209 page_table_check_pte_flags mm/page_table_check.c:209 [inline]
WARNING: CPU: 1 PID: 5229 at mm/page_table_check.c:209 __page_table_check_ptes_set+0x3bf/0x410 mm/page_table_check.c:220
Modules linked in:
CPU: 1 UID: 0 PID: 5229 Comm: syz-executor342 Not tainted 6.11.0-syzkaller-11993-g3efc57369a0c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:page_table_check_pte_flags mm/page_table_check.c:209 [inline]
RIP: 0010:__page_table_check_ptes_set+0x3bf/0x410 mm/page_table_check.c:220
Code: 00 6c 49 39 c4 74 1d 48 b8 00 00 00 00 00 00 00 68 49 39 c4 75 1c e8 60 6b 89 ff eb 0c e8 59 6b 89 ff eb 05 e8 52 6b 89 ff 90 <0f> 0b 90 e9 98 fd ff ff e8 44 6b 89 ff e9 8e fd ff ff e8 da b9 b9
RSP: 0018:ffffc90002fe7000 EFLAGS: 00010293
RAX: ffffffff820b7ac0 RBX: d7ffe7fff1ed7c06 RCX: ffff88801cba3c00
RDX: 0000000000000000 RSI: ffffffff8ea73b20 RDI: 6800000000000000
RBP: ffffc90002fe70b0 R08: 0000000000000007 R09: ffffffff820b7a8e
R10: 0000000000000003 R11: ffff88801cba3c00 R12: 6800000000000000
R13: 0000000000000000 R14: 1ffff920005fce04 R15: 0000000000000001
FS:  00005555848eb380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 0000000076e54000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 page_table_check_ptes_set include/linux/page_table_check.h:74 [inline]
 set_ptes include/linux/pgtable.h:267 [inline]
 try_to_migrate_one+0x2683/0x4240 mm/rmap.c:2300
 rmap_walk_anon+0x4cd/0x8a0 mm/rmap.c:2638
 try_to_migrate+0x3de/0x4b0
 migrate_folio_unmap mm/migrate.c:1326 [inline]
 migrate_pages_batch+0x113d/0x36d0 mm/migrate.c:1797
 migrate_pages_sync mm/migrate.c:1963 [inline]
 migrate_pages+0x2062/0x3560 mm/migrate.c:2072
 migrate_to_node mm/mempolicy.c:1095 [inline]
 do_migrate_pages+0x7ef/0xa30 mm/mempolicy.c:1194
 kernel_migrate_pages mm/mempolicy.c:1709 [inline]
 __do_sys_migrate_pages mm/mempolicy.c:1727 [inline]
 __se_sys_migrate_pages+0x6c4/0x740 mm/mempolicy.c:1723
 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:0x7fd4c1b123e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 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:00007ffc3a5f83d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000100
RAX: ffffffffffffffda RBX: 00007ffc3a5f85b8 RCX: 00007fd4c1b123e9
RDX: 0000000020000040 RSI: 0000000000000003 RDI: 0000000000000000
RBP: 00007fd4c1b85610 R08: 00000000ffffc000 R09: 00000000ffffc000
R10: 0000000020000300 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc3a5f85a8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (110):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/29 11:39 upstream 3efc57369a0c ba29ff75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __page_table_check_ptes_set
2024/11/05 19:07 upstream 2e1b3cc9d7f7 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __page_table_check_ptes_set
2024/09/29 10:37 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __page_table_check_ptes_set
2024/09/02 23:04 upstream 67784a74e258 abeaa9b9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/30 09:08 upstream 3b9dfd9e5936 ee2602b8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/29 13:21 upstream d5d547aa7b51 9bd464fc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/28 23:32 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/28 10:20 upstream 86987d84b968 6c853ff9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/26 17:52 upstream 5be63fc19fca 9aee4e0b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/25 21:13 upstream 5be63fc19fca d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/24 17:38 upstream d2bafcf224f3 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/23 14:45 upstream 3d5f968a177d d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/22 12:09 upstream 872cf28b8df9 aa99fc33 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/21 11:48 upstream b311c1b497e5 db5852f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/18 16:20 upstream c3f2d783a459 dbc93b08 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/18 10:43 upstream e0fac5fc8b76 dbc93b08 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/17 14:20 upstream e5fa841af679 dbc93b08 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/17 00:06 upstream 296c871d2904 dbc93b08 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/13 17:20 upstream 6b4aa469f049 24d82c00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/13 09:48 upstream d74da846046a 24d82c00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/10 13:07 upstream 34ac1e82e5a7 6f4edef4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/09 23:50 upstream afdab700f65e 6f4edef4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/09 12:54 upstream ee9a43b7cfe2 8828007b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/08 17:27 upstream 6a0e38264012 96450b3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/08 09:30 upstream 6a0e38264012 de12cf65 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/07 21:47 upstream 6a0e38264012 de12cf65 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/07 20:28 upstream 6a0e38264012 9f487301 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/07 10:46 upstream d4560686726f 9f487301 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/04 08:20 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/03 19:21 upstream d3426a6ed9d8 1786a2a8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/03 02:21 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/08/01 08:39 upstream 21b136cc63d2 1e9c4cf3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 01:18 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:59 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:58 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:58 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:57 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:55 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:54 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:53 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:51 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:50 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:49 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:49 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/30 00:46 upstream 6b5faec9f564 a4e01e1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/29 04:50 upstream 8400291e289e 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/28 07:56 upstream 6342649c33d2 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/28 07:55 upstream 6342649c33d2 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/07/28 07:50 upstream 6342649c33d2 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __page_table_check_ptes_set
2024/06/20 06:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __page_table_check_ptes_set
2024/06/11 16:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8867bbd4a056 c7d7d815 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __page_table_check_ptes_set
2024/06/08 17:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8867bbd4a056 82c05ab8 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __page_table_check_ptes_set
* Struck through repros no longer work on HEAD.