syzbot


kernel BUG in resv_map_release (3)

Status: upstream: reported C repro on 2024/11/12 05:16
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f525fd79634858f478e7@syzkaller.appspotmail.com
First crash: 9d20h, last: 4d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in resv_map_release (3) 1 (2) 2024/11/12 12:23
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in resv_map_release mm C done 34 294d 296d 0/28 auto-obsoleted due to no activity on 2024/03/08 23:52
upstream kernel BUG in resv_map_release (2) mm 1 131d 126d 0/28 auto-obsoleted due to no activity on 2024/10/18 01:35

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/hugetlb.c:1131!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 16399 Comm: syz-executor416 Not tainted 6.12.0-rc6-syzkaller-00169-g906bd684e4b1 #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:resv_map_release mm/hugetlb.c:1131 [inline]
RIP: 0010:resv_map_release+0x1f3/0x290 mm/hugetlb.c:1116
Code: a4 ff 48 85 db 75 1d e8 ab 1b a4 ff 48 8b 7c 24 08 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f e9 e3 ea fa ff e8 8e 1b a4 ff 90 <0f> 0b 4c 89 ef e8 83 a6 05 00 e9 3d ff ff ff 48 89 ef e8 86 a5 05
RSP: 0018:ffffc9002634f900 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff81e95f9b
RDX: ffff888020d6c880 RSI: ffffffff81e95fc2 RDI: 0000000000000007
RBP: ffff88802b289860 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802b289860
R13: ffff88802b289860 R14: ffff888033f4ed88 R15: dead000000000100
FS:  0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc9bfa142b8 CR3: 000000000df7c000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kref_put include/linux/kref.h:65 [inline]
 hugetlb_vm_op_close+0x4a7/0x5b0 mm/hugetlb.c:5075
 remove_vma+0xa8/0x1a0 mm/vma.c:330
 exit_mmap+0x4e0/0xb30 mm/mmap.c:1937
 __mmput+0x12a/0x480 kernel/fork.c:1348
 mmput+0x62/0x70 kernel/fork.c:1370
 exit_mm kernel/exit.c:571 [inline]
 do_exit+0x9bf/0x2d70 kernel/exit.c:926
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1088
 get_signal+0x25fb/0x2770 kernel/signal.c:2917
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc9bf9be159
Code: Unable to access opcode bytes at 0x7fc9bf9be12f.
RSP: 002b:00007fc9bf957178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fc9bfa48338 RCX: 00007fc9bf9be159
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fc9bfa48338
RBP: 00007fc9bfa48330 R08: 00007fc9bf9576c0 R09: 00007fc9bf9576c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc9bfa4833c
R13: 000000000000000b R14: 00007ffda7c51e30 R15: 00007ffda7c51f18
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:resv_map_release mm/hugetlb.c:1131 [inline]
RIP: 0010:resv_map_release+0x1f3/0x290 mm/hugetlb.c:1116
Code: a4 ff 48 85 db 75 1d e8 ab 1b a4 ff 48 8b 7c 24 08 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f e9 e3 ea fa ff e8 8e 1b a4 ff 90 <0f> 0b 4c 89 ef e8 83 a6 05 00 e9 3d ff ff ff 48 89 ef e8 86 a5 05
RSP: 0018:ffffc9002634f900 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff81e95f9b
RDX: ffff888020d6c880 RSI: ffffffff81e95fc2 RDI: 0000000000000007
RBP: ffff88802b289860 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802b289860
R13: ffff88802b289860 R14: ffff888033f4ed88 R15: dead000000000100
FS:  0000000000000000(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffda7c52014 CR3: 00000000325ae000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/08 06:55 upstream 906bd684e4b1 179b040e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in resv_map_release
2024/11/08 05:29 upstream 906bd684e4b1 179b040e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in resv_map_release
2024/11/13 13:28 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in resv_map_release
2024/11/08 05:06 upstream 906bd684e4b1 179b040e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in resv_map_release
* Struck through repros no longer work on HEAD.