syzbot


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

Status: closed as dup on 2023/07/03 08:25
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com
Fix commit: b69f0aeb0689 pid: Replace struct pid 1-element array with flex-array
First crash: 314d, last: 299d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid kernel 30 307d 310d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid 3 (5) 2023/07/03 08:25

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: 1 PID: 5004 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-04316-gf892cac23714 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:217 [inline]
 __ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:348
 alloc_pid+0xbfe/0xdd0 kernel/pid.c:244
 copy_process+0x405c/0x7450 kernel/fork.c:2519
 kernel_clone+0xfd/0x8f0 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+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3164479b53
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffda736a808 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3164479b53
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000555556254750 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000003 R14: 00007f316459c9d8 R15: 000000000000000c
 </TASK>
================================================================================

Crashes (138):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/13 23:47 bpf-next f892cac23714 55eda22f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/13 18:30 bpf-next 0a5550b1165c 55eda22f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/13 02:56 bpf-next 0a5550b1165c 86081196 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/12 22:19 bpf-next 0a5550b1165c 979d5fe2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/12 15:41 bpf-next c21de5fc5ffd 979d5fe2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/12 13:54 bpf-next 87e098e62347 979d5fe2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/12 04:02 bpf-next 87e098e62347 2f19aa4f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 17:17 bpf-next a3e7e6b17946 2f19aa4f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 15:58 bpf-next 8a0260dbf655 2f19aa4f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 09:24 bpf-next 8a0260dbf655 f8780940 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 08:06 bpf-next 8a0260dbf655 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 08:06 bpf-next 8a0260dbf655 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 01:43 bpf-next 4d496be9ca05 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/11 00:41 bpf-next 19f4b5323462 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/10 23:05 bpf-next a3cbc8efc78b 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/10 15:40 bpf-next c628747cc880 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/10 12:57 bpf-next c628747cc880 52ae002a .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/09 02:19 bpf-next c628747cc880 668cb1fa .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/09 02:18 bpf-next c628747cc880 668cb1fa .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/07 22:57 bpf-next 856fe03d9292 668cb1fa .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/07 18:21 bpf-next 856fe03d9292 22ae5830 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/07 05:35 bpf-next 56baeeba0a35 22ae5830 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/06 23:39 bpf-next 56baeeba0a35 1a2f6297 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/06 21:56 bpf-next e76a014334a6 1a2f6297 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/06 21:12 bpf-next b625030c9027 1a2f6297 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/06 12:38 bpf-next fd283ab196a8 1a2f6297 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/06 02:36 bpf-next fd283ab196a8 ba5dba36 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 18:57 bpf-next 21be9e477fd2 ba5dba36 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 12:46 bpf-next cf6eeb8f9dac 80298b6f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 03:35 bpf-next c20f9cef725b 80298b6f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 03:35 bpf-next c20f9cef725b 80298b6f .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 15:30 bpf-next c20f9cef725b 17a98177 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 15:29 bpf-next c20f9cef725b 17a98177 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 15:29 bpf-next c20f9cef725b 17a98177 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 16:20 bpf-next c20f9cef725b 6e553898 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 16:20 bpf-next c20f9cef725b 6e553898 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 16:20 bpf-next c20f9cef725b 6e553898 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 20:40 bpf-next c20f9cef725b bfc47836 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 20:39 bpf-next c20f9cef725b bfc47836 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 20:39 bpf-next c20f9cef725b bfc47836 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:39 bpf-next c20f9cef725b af3053d2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:39 bpf-next c20f9cef725b af3053d2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:39 bpf-next c20f9cef725b af3053d2 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 20:50 bpf-next c20f9cef725b 01298212 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 20:50 bpf-next c20f9cef725b 01298212 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 20:50 bpf-next c20f9cef725b 01298212 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 20:04 bpf-next 2d2c95162de8 01298212 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 07:07 bpf-next 3a8a670eeeaa ca69c785 .config console log report ci-upstream-bpf-next-kasan-gce bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
* Struck through repros no longer work on HEAD.