syzbot


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

Status: closed as dup on 2023/07/03 08:33
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+3945b679bf589be87530@syzkaller.appspotmail.com
Fix commit: b69f0aeb0689 pid: Replace struct pid 1-element array with flex-array
First crash: 314d, last: 308d
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 308d 310d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] net test error: UBSAN: array-index-out-of-bounds in alloc_pid 3 (5) 2023/07/03 08:33

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: 5004 Comm: syz-executor.0 Not tainted 6.4.0-syzkaller-04326-gcc7eab25b1cf #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:0x7fdb98a89fab
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:00007ffdb98d8010 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffdb98d8668 RCX: 00007fdb98a89fab
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000555556eb0400
R10: 0000555556eb06d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdb98d8100 R14: 00007fdb98bac9d8 R15: 000000000000000c
 </TASK>
================================================================================

Crashes (81):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/05 21:52 net cc7eab25b1cf ba5dba36 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 21:51 net cc7eab25b1cf ba5dba36 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 18:33 net c451410ca7e3 ba5dba36 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 10:52 net c451410ca7e3 80298b6f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/05 05:26 net 14bb236b2992 80298b6f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 19:41 net 14bb236b2992 17a98177 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 16:40 net 30c45b5361d3 17a98177 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/04 13:31 net 30c45b5361d3 6e553898 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 21:25 net 2c5d234d7f55 6e553898 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 18:11 net acd9755894c9 6e553898 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 10:17 net acd9755894c9 bfc47836 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/03 09:11 net c94683ed35ec bfc47836 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/02 15:21 net 97791d3c6d0a bfc47836 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 20:16 net 26b32974ad2e bfc47836 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 13:03 net 26b32974ad2e af3053d2 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 13:03 net 26b32974ad2e af3053d2 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:04 net 08fc75735fda af3053d2 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:03 net 08fc75735fda af3053d2 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/07/01 05:03 net 08fc75735fda af3053d2 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 13:55 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 13:55 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 13:54 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 12:19 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 12:19 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 12:19 net 08fc75735fda 01298212 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 05:18 net 08fc75735fda 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 05:18 net 08fc75735fda 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 05:18 net 08fc75735fda 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 02:38 net 3cf62c8177ad 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 02:38 net 3cf62c8177ad 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/30 02:38 net 3cf62c8177ad 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 22:30 net 48538ccb825b 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 22:30 net 48538ccb825b 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 22:29 net 48538ccb825b 7b33cf8f .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 20:24 net 56f66ce1fd41 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 20:24 net 56f66ce1fd41 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 20:24 net 56f66ce1fd41 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 17:34 net 046f753da614 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 17:33 net 046f753da614 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 17:33 net 046f753da614 ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 13:31 net 5998bb7642bf ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 13:31 net 5998bb7642bf ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 13:31 net 5998bb7642bf ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
2023/06/29 06:16 net 3a8a670eeeaa ca69c785 .config console log report ci-upstream-net-this-kasan-gce net test error: UBSAN: array-index-out-of-bounds in alloc_pid
* Struck through repros no longer work on HEAD.