syzbot


WARNING in copy_huge_pmd

Status: upstream: reported C repro on 2024/09/23 12:18
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+bf2c35fa302ebe3c7471@syzkaller.appspotmail.com
Fix commit: 47fa30118f02 mm/huge_memory: check pmd_special() only after pmd_present()
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 48d, last: 29d
Cause bisection: introduced by (bisect log) :
commit 75182022a0439788415b2dd1db3086e07aa506f7
Author: Peter Xu <peterx@redhat.com>
Date: Mon Aug 26 20:43:51 2024 +0000

  mm/x86: support large pfn mappings

Crash: WARNING in folio_add_anon_rmap_pmd (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH v1] mm/huge_memory: check pmd_special() only after pmd_present() 3 (3) 2024/09/30 20:35
[syzbot] [mm?] WARNING in copy_huge_pmd 6 (8) 2024/09/27 04:20
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/09/26 15:45 3h17m david@redhat.com https://github.com/davidhildenbrand/linux.git copy_huge_pmd_pfn OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5397 at mm/huge_memory.c:1602 copy_huge_pmd+0x16dd/0x2500 mm/huge_memory.c:1602
Modules linked in:
CPU: 1 UID: 0 PID: 5397 Comm: syz-executor231 Not tainted 6.11.0-syzkaller-10669-g11a299a7933e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:copy_huge_pmd+0x16dd/0x2500 mm/huge_memory.c:1602
Code: 01 e9 dd f5 ff ff e8 e2 c3 9a ff 4c 89 e3 31 ff 83 e3 02 48 89 de e8 42 c6 9a ff 48 85 db 0f 84 a0 07 00 00 e8 c4 c3 9a ff 90 <0f> 0b 90 e9 88 ef ff ff e8 b6 c3 9a ff 49 89 ec 31 ff 41 81 e4 ff
RSP: 0018:ffffc90003f07640 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffffff81f1661e
RDX: ffff88807ebd8000 RSI: ffffffff81f1662c RDI: 0000000000000007
RBP: ffffea0001dfc800 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: d7f0000000000e02
R13: d7ffe7fff1effe02 R14: 0000000000000200 R15: ffff8880303dfc98
FS:  00007f64eb2316c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f64eb257b30 CR3: 0000000076b02000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 copy_pmd_range mm/memory.c:1245 [inline]
 copy_pud_range mm/memory.c:1292 [inline]
 copy_p4d_range mm/memory.c:1316 [inline]
 copy_page_range+0xa66/0x5a20 mm/memory.c:1414
 dup_mmap kernel/fork.c:750 [inline]
 dup_mm kernel/fork.c:1674 [inline]
 copy_mm+0x134f/0x2550 kernel/fork.c:1723
 copy_process+0x3ab9/0x6f00 kernel/fork.c:2375
 kernel_clone+0xfd/0x960 kernel/fork.c:2787
 __do_sys_clone+0xba/0x100 kernel/fork.c:2930
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f64eb297459
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 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:00007f64eb231198 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f64eb321318 RCX: 00007f64eb297459
RDX: ffffffff81000000 RSI: 0000000000000006 RDI: 000000000000000f
RBP: 00007f64eb321310 R08: 000000000000c0c9 R09: 0000000000000000
R10: ffffffff81000000 R11: 0000000000000246 R12: 00007f64eb2ee0ac
R13: 000000000000006e R14: 0000000100000004 R15: 0000000100000000
 </TASK>

Crashes (361):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/26 20:38 upstream 11a299a7933e 9314348a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/09/26 19:45 upstream 11a299a7933e 9314348a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/09/22 04:12 upstream 88264981f208 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/09/22 02:03 upstream 88264981f208 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/09/25 03:52 upstream 68e5c7d4cefb 349a68c4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in copy_huge_pmd
2024/10/10 06:37 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/10 04:13 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/10 02:05 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/10 01:01 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/09 13:33 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/09 09:37 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/09 07:38 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/09 06:31 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/09 04:04 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/09 02:57 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/08 23:52 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/08 22:16 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/08 11:58 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/08 09:46 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/08 07:41 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 21:56 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 20:24 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 19:21 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 15:49 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 10:41 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 09:31 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 07:59 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/07 06:14 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/07 03:29 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 21:26 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/06 20:17 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 16:50 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 12:12 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 05:55 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 03:38 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/06 02:05 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_huge_pmd
2024/10/05 23:01 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 21:48 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 18:19 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 16:18 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/05 13:17 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 10:38 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 06:45 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_huge_pmd
2024/10/05 06:32 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 04:07 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 02:39 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/05 00:51 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in copy_huge_pmd
2024/10/04 16:31 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_huge_pmd
2024/09/24 18:20 upstream abf2050f51fd 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_huge_pmd
2024/10/10 10:22 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_huge_pmd
2024/10/08 04:39 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_huge_pmd
2024/10/07 04:56 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_huge_pmd
2024/10/01 16:42 upstream e32cde8d2bd7 e9f6e118 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in copy_huge_pmd
2024/09/25 07:21 linux-next 2b7275670032 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_huge_pmd
* Struck through repros no longer work on HEAD.