syzbot


kernel BUG in __vma_reservation_common

Status: fixed on 2024/07/09 19:14
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+d3fe2dc5ffe9380b714b@syzkaller.appspotmail.com
Fix commit: 8daf9c702ee7 mm/hugetlb: do not call vma_add_reservation upon ENOMEM
First crash: 165d, last: 128d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] mm/hugetlb: Do not call vma_add_reservation upon ENOMEM 3 (3) 2024/05/29 20:35
[syzbot] [mm?] kernel BUG in __vma_reservation_common 7 (13) 2024/05/28 17:24
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/05/28 16:39 23m osalvador@suse.com https://github.com/leberus/linux.git hugetlb-vma_resv-enomem OK log
2024/05/28 11:29 1h28m osalvador@suse.com patch net-next error
2024/05/28 12:08 1h21m osalvador@suse.com https://github.com/leberus/linux.git hugetlb-vma_resv-enomem error
2024/05/28 09:51 14m osalvador@suse.com git://github.com/leberus/linux.git hugetlb-vma_resv-enomem error

Sample crash report:
RBP: 0000000000000001 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000028031 R11: 0000000000000246 R12: 0000000000000001
R13: 431bde82d7b634db R14: 00007f64830b0035 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
kernel BUG at mm/hugetlb.c:813!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 5089 Comm: syz-executor179 Not tainted 6.9.0-syzkaller-12071-g66ad4829ddd0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:region_abort mm/hugetlb.c:813 [inline]
RIP: 0010:__vma_reservation_common+0x795/0x7d0 mm/hugetlb.c:2835
Code: 21 65 8e 09 e8 8c a3 9e ff 90 0f 0b e8 84 a3 9e ff 90 0f 0b e8 7c a3 9e ff 90 0f 0b e8 74 a3 9e ff 90 0f 0b e8 6c a3 9e ff 90 <0f> 0b e8 64 a3 9e ff 90 0f 0b e8 5c a3 9e ff 90 0f 0b e8 54 a3 9e
RSP: 0018:ffffc900035ff1c0 EFLAGS: 00010293
RAX: ffffffff81f77114 RBX: 0000000000000000 RCX: ffff88801ff90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900035ff290 R08: ffffffff81f76c26 R09: fffff520006bfe28
R10: dffffc0000000000 R11: fffff520006bfe28 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88802ce84c08 R15: ffff88802ce84c00
FS:  00005555950a7380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6483099c40 CR3: 00000000746f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vma_add_reservation mm/hugetlb.c:2898 [inline]
 __unmap_hugepage_range+0x125d/0x2350 mm/hugetlb.c:5772
 unmap_vmas+0x3cc/0x5f0 mm/memory.c:1891
 unmap_region+0x1ec/0x350 mm/mmap.c:2355
 do_vmi_align_munmap+0x1122/0x18c0 mm/mmap.c:2673
 do_vmi_munmap+0x24e/0x2d0 mm/mmap.c:2741
 mmap_region+0x72f/0x2070 mm/mmap.c:2792
 do_mmap+0x8ad/0xfa0 mm/mmap.c:1387
 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:573
 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:0x7f6483066d39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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:00007fff7dc97c58 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fff7dc97c80 RCX: 00007f6483066d39
RDX: 0000000000000000 RSI: 00000000001fffff RDI: 0000000020000000
RBP: 0000000000000001 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000028031 R11: 0000000000000246 R12: 0000000000000001
R13: 431bde82d7b634db R14: 00007f64830b0035 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:region_abort mm/hugetlb.c:813 [inline]
RIP: 0010:__vma_reservation_common+0x795/0x7d0 mm/hugetlb.c:2835
Code: 21 65 8e 09 e8 8c a3 9e ff 90 0f 0b e8 84 a3 9e ff 90 0f 0b e8 7c a3 9e ff 90 0f 0b e8 74 a3 9e ff 90 0f 0b e8 6c a3 9e ff 90 <0f> 0b e8 64 a3 9e ff 90 0f 0b e8 5c a3 9e ff 90 0f 0b e8 54 a3 9e
RSP: 0018:ffffc900035ff1c0 EFLAGS: 00010293
RAX: ffffffff81f77114 RBX: 0000000000000000 RCX: ffff88801ff90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900035ff290 R08: ffffffff81f76c26 R09: fffff520006bfe28
R10: dffffc0000000000 R11: fffff520006bfe28 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88802ce84c08 R15: ffff88802ce84c00
FS:  00005555950a7380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6483099c40 CR3: 00000000746f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/27 12:49 net-next 66ad4829ddd0 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/02 09:13 net 8953285d7bd6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce kernel BUG in __vma_reservation_common
2024/06/08 15:52 net-next a99997323654 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/27 10:02 net-next 66ad4829ddd0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/18 23:20 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/12 20:06 net-next cddd2dc6390b 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/05 12:40 net-next 173e7622ccb3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
2024/05/03 05:33 net-next dcc61472534e ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in __vma_reservation_common
* Struck through repros no longer work on HEAD.