syzbot


kernel BUG in page_table_check_clear (2)

Status: upstream: reported C repro on 2024/09/26 05:30
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+645f216781b26a92a732@syzkaller.appspotmail.com
First crash: 23d, last: 53m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in page_table_check_clear (2) 1 (2) 2024/09/26 20:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in page_table_check_clear mm C error 17 496d 529d 22/28 fixed on 2023/07/01 16:05

Sample crash report:
R10: 0000000000008031 R11: 0000000000000246 R12: 00007ffe75fa944c
R13: 431bde82d7b634db R14: 00007ffe75fa9460 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
kernel BUG at mm/page_table_check.c:90!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5134 Comm: syz-executor420 Not tainted 6.11.0-syzkaller-08068-g1ec6d097897a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:page_table_check_clear+0x395/0x550 mm/page_table_check.c:90
Code: c1 0f 8c 57 fd ff ff 48 89 df e8 26 25 f3 ff e9 4a fd ff ff e8 cc 66 8a ff 90 0f 0b e8 c4 66 8a ff 90 0f 0b e8 bc 66 8a ff 90 <0f> 0b e8 b4 66 8a ff 90 0f 0b e8 ac 66 8a ff 90 0f 0b f3 0f 1e fa
RSP: 0018:ffffc90002cdf1a0 EFLAGS: 00010293
RAX: ffffffff820a4e24 RBX: ffff88801b8c8098 RCX: ffff888000650000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: 00000000ffffffff R08: ffffffff820a4c86 R09: 1ffff11003719013
R10: dffffc0000000000 R11: ffffed1003719014 R12: 0000000000000000
R13: ffff88801b8c8050 R14: 00000000000001fe R15: 1ffffffff3483da4
FS:  0000555555871480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5df7332584 CR3: 0000000011c16000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 page_table_check_pmd_clear include/linux/page_table_check.h:57 [inline]
 pmdp_huge_get_and_clear arch/x86/include/asm/pgtable.h:1390 [inline]
 pmdp_huge_get_and_clear_full include/linux/pgtable.h:636 [inline]
 zap_huge_pmd+0x940/0xc40 mm/huge_memory.c:2071
 zap_pmd_range mm/memory.c:1719 [inline]
 zap_pud_range mm/memory.c:1768 [inline]
 zap_p4d_range mm/memory.c:1789 [inline]
 unmap_page_range+0x762/0x40e0 mm/memory.c:1810
 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1900
 unmap_region+0x214/0x380 mm/vma.c:354
 mmap_region+0x22f9/0x2990 mm/mmap.c:1573
 do_mmap+0x8f0/0x1000 mm/mmap.c:496
 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588
 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:0x7f5df72dce29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1a 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe75fa93f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffe75fa9410 RCX: 00007f5df72dce29
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 0000000000000002 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 00007ffe75fa944c
R13: 431bde82d7b634db R14: 00007ffe75fa9460 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:page_table_check_clear+0x395/0x550 mm/page_table_check.c:90
Code: c1 0f 8c 57 fd ff ff 48 89 df e8 26 25 f3 ff e9 4a fd ff ff e8 cc 66 8a ff 90 0f 0b e8 c4 66 8a ff 90 0f 0b e8 bc 66 8a ff 90 <0f> 0b e8 b4 66 8a ff 90 0f 0b e8 ac 66 8a ff 90 0f 0b f3 0f 1e fa
RSP: 0018:ffffc90002cdf1a0 EFLAGS: 00010293
RAX: ffffffff820a4e24 RBX: ffff88801b8c8098 RCX: ffff888000650000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: 00000000ffffffff R08: ffffffff820a4c86 R09: 1ffff11003719013
R10: dffffc0000000000 R11: ffffed1003719014 R12: 0000000000000000
R13: ffff88801b8c8050 R14: 00000000000001fe R15: 1ffffffff3483da4
FS:  0000555555871480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5df7332584 CR3: 0000000011c16000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/22 05:55 upstream 1ec6d097897a 6f888b75 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in page_table_check_clear
2024/10/05 12:33 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in page_table_check_clear
2024/09/26 21:42 upstream 11a299a7933e 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in page_table_check_clear
2024/09/22 13:46 upstream 88264981f208 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in page_table_check_clear
2024/10/14 09:14 upstream 6485cf5ea253 084d8178 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in page_table_check_clear
2024/10/09 18:02 upstream 75b607fab38d 56fb2cb7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in page_table_check_clear
2024/09/22 05:18 upstream 1ec6d097897a 6f888b75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in page_table_check_clear
2024/10/09 19:52 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in page_table_check_clear
2024/10/15 12:01 net-next 60b4d49b9621 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in page_table_check_clear
2024/10/15 11:52 net-next 60b4d49b9621 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in page_table_check_clear
* Struck through repros no longer work on HEAD.