Re: [syzbot] [kernel?] net test error: UBSAN: array-index-out-of-bounds in alloc_pid

From: Christian Brauner
Date: Mon Jul 03 2023 - 04:01:05 EST


On Sun, Jul 02, 2023 at 11:19:54PM -0700, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 97791d3c6d0a Merge branch 'octeontx2-af-fixes'
> git tree: net
> console output: https://syzkaller.appspot.com/x/log.txt?x=11b1a6d7280000
> kernel config: https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
> dashboard link: https://syzkaller.appspot.com/bug?extid=3945b679bf589be87530
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/2bd5d64db6b8/disk-97791d3c.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/cd31502424f2/vmlinux-97791d3c.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/33c6f22e34ab/bzImage-97791d3c.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+3945b679bf589be87530@xxxxxxxxxxxxxxxxxxxxxxxxx

#syz fix: pid: Replace struct pid 1-element array with flex-array