syzbot


net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid

Status: fixed on 2023/10/12 12:48
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+f02ef87ef8bbb97026bd@syzkaller.appspotmail.com
Fix commit: b69f0aeb0689 pid: Replace struct pid 1-element array with flex-array
First crash: 524d, last: 518d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
net test error: UBSAN: array-index-out-of-bounds in alloc_pid kernel 81 518d 520d 28/28 closed as dup on 2023/07/03 08:33
bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid kernel 138 510d 520d 28/28 closed as dup on 2023/07/03 08:25
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid 2 (3) 2023/07/03 08:05

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in kernel/pid.c:244:15
index 1 is out of range for type 'upid [1]'
CPU: 0 PID: 5003 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-04247-g3a8a670eeeaa #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:217 [inline]
 __ubsan_handle_out_of_bounds+0xd5/0x140 lib/ubsan.c:348
 alloc_pid+0xbe5/0xdd0 kernel/pid.c:244
 copy_process+0x4589/0x7620 kernel/fork.c:2519
 kernel_clone+0xeb/0x890 kernel/fork.c:2911
 __do_sys_clone+0xba/0x100 kernel/fork.c:3054
 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:0x7fce9a289fab
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
RSP: 002b:00007fffec0d9bd0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fffec0da228 RCX: 00007fce9a289fab
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 00005555565bb400
R10: 00005555565bb6d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffec0d9cc0 R14: 00007fce9a3ac9d8 R15: 000000000000000c
 </TASK>
================================================================================

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/05 18:09 net-next 3a8a670eeeaa ba5dba36 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 18:09 net-next 3a8a670eeeaa ba5dba36 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 18:09 net-next 3a8a670eeeaa ba5dba36 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 03:58 net-next 3a8a670eeeaa 80298b6f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 03:58 net-next 3a8a670eeeaa 80298b6f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 03:58 net-next 3a8a670eeeaa 80298b6f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 16:16 net-next 3a8a670eeeaa 17a98177 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 16:16 net-next 3a8a670eeeaa 17a98177 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 16:15 net-next 3a8a670eeeaa 17a98177 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 15:11 net-next 3a8a670eeeaa 6e553898 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 15:11 net-next 3a8a670eeeaa 6e553898 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 15:11 net-next 3a8a670eeeaa 6e553898 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 21:04 net-next 3a8a670eeeaa bfc47836 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 21:04 net-next 3a8a670eeeaa bfc47836 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 21:04 net-next 3a8a670eeeaa bfc47836 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 06:03 net-next 3a8a670eeeaa af3053d2 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 06:03 net-next 3a8a670eeeaa af3053d2 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 06:02 net-next 3a8a670eeeaa af3053d2 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 15:35 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 15:34 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 15:34 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 11:56 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 11:55 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 11:55 net-next 3a8a670eeeaa 01298212 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 21:41 net-next 3a8a670eeeaa 7b33cf8f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 21:40 net-next 3a8a670eeeaa 7b33cf8f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 21:40 net-next 3a8a670eeeaa 7b33cf8f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 05:22 net-next 3a8a670eeeaa ca69c785 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 05:22 net-next 3a8a670eeeaa ca69c785 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 05:22 net-next 3a8a670eeeaa ca69c785 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
* Struck through repros no longer work on HEAD.