syzbot


kernel BUG in __page_table_check_zero

Status: upstream: reported C repro on 2023/05/21 16:20
Labels: mm (incorrect?)
Reported-by: syzbot+7a9bbb158a7a1071eb27@syzkaller.appspotmail.com
First crash: 13d, last: 8d16h

Cause bisection: failed (error log, bisect log)
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in __page_table_check_zero 0 (1) 2023/05/21 16:20

Sample crash report:
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fec20228c89
RDX: 0000000001000002 RSI: 0000000000400000 RDI: 0000000020000000
RBP: 00007fff16e19850 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000011012 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
------------[ cut here ]------------
kernel BUG at mm/page_table_check.c:142!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5004 Comm: syz-executor464 Not tainted 6.4.0-rc2-syzkaller-00015-g1b66c114d161 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:__page_table_check_zero+0x175/0x1c0 mm/page_table_check.c:142
Code: 24 08 80 38 00 75 47 48 03 2d f7 d4 04 10 49 83 c4 01 e9 00 ff ff ff e8 79 50 a2 ff 0f 0b e8 72 50 a2 ff 0f 0b e8 6b 50 a2 ff <0f> 0b e8 64 50 a2 ff 0f 0b e8 5d 50 a2 ff 48 89 ef 48 83 c4 10 5b
RSP: 0018:ffffc90003b3fa10 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8880220c0000 RSI: ffffffff81e1f265 RDI: 0000000000000005
RBP: ffff888016090000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 1ffffffff18f47c1 R12: 0000000000000000
R13: 000000000000000a R14: 0000000000000400 R15: dffffc0000000000
FS:  00005555572c2300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064392c CR3: 000000007abec000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 page_table_check_free include/linux/page_table_check.h:46 [inline]
 free_pages_prepare mm/page_alloc.c:1303 [inline]
 __free_pages_ok+0x9c8/0x1060 mm/page_alloc.c:1441
 hcd_buffer_free+0x1b9/0x250 drivers/usb/core/buffer.c:163
 usb_free_coherent+0x6b/0x80 drivers/usb/core/usb.c:1035
 dec_usb_memory_use_count+0x253/0x3f0 drivers/usb/core/devio.c:197
 usbdev_mmap+0x8d8/0xc40 drivers/usb/core/devio.c:277
 call_mmap include/linux/fs.h:1873 [inline]
 mmap_region+0x694/0x28d0 mm/mmap.c:2652
 do_mmap+0x831/0xf60 mm/mmap.c:1394
 vm_mmap_pgoff+0x1a2/0x3b0 mm/util.c:543
 ksys_mmap_pgoff+0x41f/0x5a0 mm/mmap.c:1440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fec20228c89
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff16e19838 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fec20228c89
RDX: 0000000001000002 RSI: 0000000000400000 RDI: 0000000020000000
RBP: 00007fff16e19850 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000011012 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__page_table_check_zero+0x175/0x1c0 mm/page_table_check.c:142
Code: 24 08 80 38 00 75 47 48 03 2d f7 d4 04 10 49 83 c4 01 e9 00 ff ff ff e8 79 50 a2 ff 0f 0b e8 72 50 a2 ff 0f 0b e8 6b 50 a2 ff <0f> 0b e8 64 50 a2 ff 0f 0b e8 5d 50 a2 ff 48 89 ef 48 83 c4 10 5b
RSP: 0018:ffffc90003b3fa10 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8880220c0000 RSI: ffffffff81e1f265 RDI: 0000000000000005
RBP: ffff888016090000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 1ffffffff18f47c1 R12: 0000000000000000
R13: 000000000000000a R14: 0000000000000400 R15: dffffc0000000000
FS:  00005555572c2300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056248b8b7008 CR3: 000000007abec000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/18 06:32 upstream 1b66c114d161 3bb7af1d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in __page_table_check_zero
2023/05/23 08:23 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in __page_table_check_zero
2023/05/18 06:09 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in __page_table_check_zero
2023/05/20 23:13 upstream d635f6cc934b 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __page_table_check_zero
2023/05/20 17:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __page_table_check_zero
* Struck through repros no longer work on HEAD.