syzbot
kernel BUG in free_huge_page
Status:
auto-obsoleted due to no activity on 2023/03/26 06:21
Subsystems:
mm
[Documentation on labels]
Reported-by: syzbot+83cc82a0254bc0c17b52@syzkaller.appspotmail.com
First crash: 1302d, last: 1297d
Sample crash report:
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1453 [inline]
free_pcp_prepare+0x4d0/0x910 mm/page_alloc.c:1503
free_unref_page_prepare mm/page_alloc.c:3389 [inline]
free_unref_page+0x1d/0x490 mm/page_alloc.c:3484
free_contig_range+0xb5/0x180 mm/page_alloc.c:9532
destroy_args+0xa8/0x64c mm/debug_vm_pgtable.c:1023
debug_vm_pgtable+0x2c65/0x2cf7 mm/debug_vm_pgtable.c:1403
do_one_initcall+0x141/0x7d0 init/main.c:1306
do_initcall_level init/main.c:1379 [inline]
do_initcalls init/main.c:1395 [inline]
do_basic_setup init/main.c:1414 [inline]
kernel_init_freeable+0x6f9/0x782 init/main.c:1634
kernel_init+0x1e/0x1d0 init/main.c:1522
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
------------[ cut here ]------------
kernel BUG at mm/hugetlb.c:1865!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 18221 Comm: syz-executor.2 Not tainted 6.2.0-rc5-next-20230123-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:free_huge_page+0xa5b/0xe80 mm/hugetlb.c:1865
Code: 0f 0b e8 08 98 b7 ff 4c 89 e7 e8 00 3e f7 ff 89 c3 e9 a0 f9 ff ff e8 f4 97 b7 ff 48 c7 c6 a0 6f 59 8a 4c 89 e7 e8 55 8b ef ff <0f> 0b e8 de 97 b7 ff 48 8d 7b 17 48 b8 00 00 00 00 00 fc ff df 4c
RSP: 0018:ffffc90004d87908 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc90005941000
RDX: 0000000000040000 RSI: ffffffff81ca564b RDI: 0000000000000000
RBP: ffffffff91c45bf8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0001fe8000
R13: ffffea0001fe8090 R14: 0000000000000000 R15: ffffea0001fe8034
FS: 00007f91caa68700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f91c9caf580 CR3: 000000005e280000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__folio_put_large mm/swap.c:119 [inline]
__folio_put+0x109/0x140 mm/swap.c:127
folio_put include/linux/mm.h:1203 [inline]
put_page+0x21b/0x280 include/linux/mm.h:1272
hugetlb_fault+0x153e/0x23f0 mm/hugetlb.c:6130
follow_hugetlb_page+0x6ab/0x1e40 mm/hugetlb.c:6524
__get_user_pages+0x29b/0xfc0 mm/gup.c:1125
populate_vma_page_range+0x241/0x320 mm/gup.c:1526
__mm_populate+0x105/0x3b0 mm/gup.c:1640
do_mlock+0x370/0x6d0 mm/mlock.c:608
__do_sys_mlock mm/mlock.c:616 [inline]
__se_sys_mlock mm/mlock.c:614 [inline]
__x64_sys_mlock+0x59/0x80 mm/mlock.c:614
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:0x7f91c9c8c0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007f91caa68168 EFLAGS: 00000246 ORIG_RAX: 0000000000000095
RAX: ffffffffffffffda RBX: 00007f91c9dabf80 RCX: 00007f91c9c8c0c9
RDX: 0000000000000000 RSI: 0000000000003000 RDI: 0000000020308000
RBP: 00007f91c9ce7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffbe8fda4f R14: 00007f91caa68300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:free_huge_page+0xa5b/0xe80 mm/hugetlb.c:1865
Code: 0f 0b e8 08 98 b7 ff 4c 89 e7 e8 00 3e f7 ff 89 c3 e9 a0 f9 ff ff e8 f4 97 b7 ff 48 c7 c6 a0 6f 59 8a 4c 89 e7 e8 55 8b ef ff <0f> 0b e8 de 97 b7 ff 48 8d 7b 17 48 b8 00 00 00 00 00 fc ff df 4c
RSP: 0018:ffffc90004d87908 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc90005941000
RDX: 0000000000040000 RSI: ffffffff81ca564b RDI: 0000000000000000
RBP: ffffffff91c45bf8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0001fe8000
R13: ffffea0001fe8090 R14: 0000000000000000 R15: ffffea0001fe8034
FS: 00007f91caa68700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f91c9caf580 CR3: 000000005e280000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.