[v6.1] kernel BUG in __page_table_check_zero

2 views
Skip to first unread message

syzbot

unread,
Jun 18, 2023, 5:38:45 PM6/18/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ca87e77a2ef8 Linux 6.1.34
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12b38897280000
kernel config: https://syzkaller.appspot.com/x/.config?x=c188e92022a334b
dashboard link: https://syzkaller.appspot.com/bug?extid=6d55afadbe7f713502a2
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=121a4737280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17c4edd3280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/f48d514c343c/disk-ca87e77a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/563336f1f216/vmlinux-ca87e77a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2254afa3642b/bzImage-ca87e77a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6d55af...@syzkaller.appspotmail.com

R10: 0000000000011012 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
------------[ cut here ]------------
kernel BUG at mm/page_table_check.c:146!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3538 Comm: syz-executor539 Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:__page_table_check_zero+0x2d1/0x4a0 mm/page_table_check.c:146
Code: 9f ff 48 ff cb e9 b5 fd ff ff e8 ca 35 9f ff 48 ff cb e9 27 fe ff ff e8 bd 35 9f ff 0f 0b e8 b6 35 9f ff 0f 0b e8 af 35 9f ff <0f> 0b 4c 89 f6 48 81 e6 ff 0f 00 00 31 ff e8 7c 39 9f ff 4c 89 f0
RSP: 0018:ffffc90003a7f830 EFLAGS: 00010293
RAX: ffffffff81ea9fa1 RBX: dffffc0000000000 RCX: ffff88802a2f5940
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888016c00044
RBP: ffff888016c00044 R08: dffffc0000000000 R09: ffffed1002d80009
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 1ffffffff1a063ec R14: 000000000000000a R15: ffff888016c00000
FS: 0000555555601300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561283446008 CR3: 00000000186ba000 CR4: 00000000003506e0
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:1461 [inline]
__free_pages_ok+0xcfe/0xe20 mm/page_alloc.c:1716
dec_usb_memory_use_count+0x259/0x350 drivers/usb/core/devio.c:198
usbdev_mmap+0x6f4/0x740
call_mmap include/linux/fs.h:2210 [inline]
mmap_region+0xf96/0x1fa0 mm/mmap.c:2663
do_mmap+0x8c5/0xf60 mm/mmap.c:1411
vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520
ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1457
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ffbdb2f3d69
Code: 2a 01 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd900ea928 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007ffbdb2f3d69
RDX: 0000000001000002 RSI: 0000000000400000 RDI: 0000000020000000
RBP: 00007ffd900ea940 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+0x2d1/0x4a0 mm/page_table_check.c:146
Code: 9f ff 48 ff cb e9 b5 fd ff ff e8 ca 35 9f ff 48 ff cb e9 27 fe ff ff e8 bd 35 9f ff 0f 0b e8 b6 35 9f ff 0f 0b e8 af 35 9f ff <0f> 0b 4c 89 f6 48 81 e6 ff 0f 00 00 31 ff e8 7c 39 9f ff 4c 89 f0
RSP: 0018:ffffc90003a7f830 EFLAGS: 00010293
RAX: ffffffff81ea9fa1 RBX: dffffc0000000000 RCX: ffff88802a2f5940
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888016c00044
RBP: ffff888016c00044 R08: dffffc0000000000 R09: ffffed1002d80009
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 1ffffffff1a063ec R14: 000000000000000a R15: ffff888016c00000
FS: 0000555555601300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000090 CR3: 00000000186ba000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages