netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
@ 2023-07-03  7:14 syzbot
  2023-07-03  8:00 ` Christian Brauner
  2023-07-03  8:01 ` Christian Brauner
  0 siblings, 2 replies; 5+ messages in thread
From: syzbot @ 2023-07-03  7:14 UTC (permalink / raw)
  To: ast, brauner, daniel, linux-kernel, netdev, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    c20f9cef725b Merge branch 'libbpf: add netfilter link atta..
git tree:       bpf-next
console output: https://syzkaller.appspot.com/x/log.txt?x=127adbfb280000
kernel config:  https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
dashboard link: https://syzkaller.appspot.com/bug?extid=319a9b09e5de1ecae1e1
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/bf9c9608a1e0/disk-c20f9cef.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3bde4e994bd0/vmlinux-c20f9cef.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5d80f8634183/bzImage-c20f9cef.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com

================================================================================
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-04259-gc20f9cef725b #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:0x7ff043489fab
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:00007ffdc29faa70 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffdc29fb0c8 RCX: 00007ff043489fab
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000555555ae9400
R10: 0000555555ae96d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc29fab60 R14: 00007ff0435ac9d8 R15: 000000000000000c
 </TASK>
================================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
  2023-07-03  7:14 [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid syzbot
@ 2023-07-03  8:00 ` Christian Brauner
  2023-07-03  8:01 ` Christian Brauner
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Brauner @ 2023-07-03  8:00 UTC (permalink / raw)
  To: syzbot; +Cc: ast, daniel, linux-kernel, netdev, syzkaller-bugs

On Mon, Jul 03, 2023 at 12:14:17AM -0700, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    c20f9cef725b Merge branch 'libbpf: add netfilter link atta..
> git tree:       bpf-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=127adbfb280000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
> dashboard link: https://syzkaller.appspot.com/bug?extid=319a9b09e5de1ecae1e1
> 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/bf9c9608a1e0/disk-c20f9cef.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/3bde4e994bd0/vmlinux-c20f9cef.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/5d80f8634183/bzImage-c20f9cef.xz
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
  2023-07-03  7:14 [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid syzbot
  2023-07-03  8:00 ` Christian Brauner
@ 2023-07-03  8:01 ` Christian Brauner
  2023-07-03  8:01   ` syzbot
  1 sibling, 1 reply; 5+ messages in thread
From: Christian Brauner @ 2023-07-03  8:01 UTC (permalink / raw)
  To: syzbot; +Cc: ast, daniel, linux-kernel, netdev, syzkaller-bugs

On Mon, Jul 03, 2023 at 12:14:17AM -0700, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    c20f9cef725b Merge branch 'libbpf: add netfilter link atta..
> git tree:       bpf-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=127adbfb280000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
> dashboard link: https://syzkaller.appspot.com/bug?extid=319a9b09e5de1ecae1e1
> 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/bf9c9608a1e0/disk-c20f9cef.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/3bde4e994bd0/vmlinux-c20f9cef.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/5d80f8634183/bzImage-c20f9cef.xz
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com

#syz dup: [syzbot] [kernel?] net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
  2023-07-03  8:01 ` Christian Brauner
@ 2023-07-03  8:01   ` syzbot
  2023-07-03  8:25     ` Aleksandr Nogikh
  0 siblings, 1 reply; 5+ messages in thread
From: syzbot @ 2023-07-03  8:01 UTC (permalink / raw)
  To: brauner; +Cc: ast, brauner, daniel, linux-kernel, netdev, syzkaller-bugs

> On Mon, Jul 03, 2023 at 12:14:17AM -0700, syzbot wrote:
>> Hello,
>> 
>> syzbot found the following issue on:
>> 
>> HEAD commit:    c20f9cef725b Merge branch 'libbpf: add netfilter link atta..
>> git tree:       bpf-next
>> console output: https://syzkaller.appspot.com/x/log.txt?x=127adbfb280000
>> kernel config:  https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
>> dashboard link: https://syzkaller.appspot.com/bug?extid=319a9b09e5de1ecae1e1
>> 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/bf9c9608a1e0/disk-c20f9cef.raw.xz
>> vmlinux: https://storage.googleapis.com/syzbot-assets/3bde4e994bd0/vmlinux-c20f9cef.xz
>> kernel image: https://storage.googleapis.com/syzbot-assets/5d80f8634183/bzImage-c20f9cef.xz
>> 
>> IMPORTANT: if you fix the issue, please add the following tag to the commit:
>> Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com
>
> #syz dup: [syzbot] [kernel?] net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid

can't find the dup bug


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
  2023-07-03  8:01   ` syzbot
@ 2023-07-03  8:25     ` Aleksandr Nogikh
  0 siblings, 0 replies; 5+ messages in thread
From: Aleksandr Nogikh @ 2023-07-03  8:25 UTC (permalink / raw)
  To: syzbot; +Cc: brauner, ast, daniel, linux-kernel, netdev, syzkaller-bugs

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

On Mon, Jul 3, 2023 at 10:02 AM syzbot
<syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com> wrote:
>
> > On Mon, Jul 03, 2023 at 12:14:17AM -0700, syzbot wrote:
> >> Hello,
> >>
> >> syzbot found the following issue on:
> >>
> >> HEAD commit:    c20f9cef725b Merge branch 'libbpf: add netfilter link atta..
> >> git tree:       bpf-next
> >> console output: https://syzkaller.appspot.com/x/log.txt?x=127adbfb280000
> >> kernel config:  https://syzkaller.appspot.com/x/.config?x=924167e3666ff54c
> >> dashboard link: https://syzkaller.appspot.com/bug?extid=319a9b09e5de1ecae1e1
> >> 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/bf9c9608a1e0/disk-c20f9cef.raw.xz
> >> vmlinux: https://storage.googleapis.com/syzbot-assets/3bde4e994bd0/vmlinux-c20f9cef.xz
> >> kernel image: https://storage.googleapis.com/syzbot-assets/5d80f8634183/bzImage-c20f9cef.xz
> >>
> >> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> >> Reported-by: syzbot+319a9b09e5de1ecae1e1@syzkaller.appspotmail.com
> >
> > #syz dup: [syzbot] [kernel?] net-next test error: UBSAN: array-index-out-of-bounds in alloc_pid
>
> can't find the dup bug
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000b359eb05ff9094f0%40google.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-03  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  7:14 [syzbot] [kernel?] bpf-next test error: UBSAN: array-index-out-of-bounds in alloc_pid syzbot
2023-07-03  8:00 ` Christian Brauner
2023-07-03  8:01 ` Christian Brauner
2023-07-03  8:01   ` syzbot
2023-07-03  8:25     ` Aleksandr Nogikh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).