Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1054560lqt; Tue, 19 Mar 2024 11:14:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDx87FDFPAwfNrrou0r5E3xszOKg0Gt/s5rINFteHxGeCmhboJf8mCHN28AKlvAiPt58Kn9Kr9xcHqryH04iij9AF9Ahv/UJZ7up45CA== X-Google-Smtp-Source: AGHT+IHaO2XlCKtXwvv1Fm7U9MMFkllcGvJaM//7msj3nK/fJMEm/mKH+sH4XOYWwaUEwqw809BR X-Received: by 2002:a05:6a21:3a94:b0:1a3:7f06:aa9c with SMTP id zv20-20020a056a213a9400b001a37f06aa9cmr1180190pzb.62.1710872069944; Tue, 19 Mar 2024 11:14:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710872069; cv=pass; d=google.com; s=arc-20160816; b=D5LSNsJ1ni5b2tncph6uMLGwSY8T/vVUKor3NW3mHrfZuZz9XALVTbPcsgc1N23kRz E9Tc8rR2kkSi2pWTBBLJhzaNZKwdlvHu1OLbDfn9qcsRV55bRcjsmRIuuZLmzjWn2sCK wnv4dNO7jjpw30uriDOnoc7qJzu3mDuH50VKRXwlvGjjg5Et0ducE3HTK2m7rBpm96LF XY1oACUGEfpT5R2hn+vCoN4wkzIrAtV3yjxQcb7OaxaD4JoOYm50+oOj6Fa251+v08c8 kFpK27Kir7ZBoAclHJZryAMRHxcVjUhUgvRg0OOKblZBQPOsmCVm48bQxPvJSjZnQ6s8 8zOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=KUl8KngKDhKat2ID3WrGzxmO4pwALhdfll2XNSs2Xd8=; fh=grQhIDOpBo9zqgJ/rj9mCw9QE43QYrXNuw7EMPaKjnI=; b=tAlGfz5RnI7xGrPFHFbbwnc4UptuCqYDdrjIApYVXTBtc7wdoSqnE8DJ3TbDs2OZc+ mgY1SvFrW5DFgIS0NKZPKTRLF00mwcBuk6018eb1pscxNvYvTm2o5nImgYRVuQa3npJ0 3PaLqKZuiUtu06z+B/fu/sC+8V+2D8uhZHZHVEGdrrpoB0z3hYcfixH7TC+5ZXqsZjAH 4p44+kkoNy6sZUQvnlOVnb6bblxQw6VG/r7BcJdxy+xSxOieJhWHAFsDf2nBnP5+lXoL zo26EQUfGGXwWH9a+DWxwxIzvHWGhkl8Aq9FqMl5BiDqkv8z9gQASYBkTQBZ3hs7XoHo +sMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-107985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d194-20020a6336cb000000b005dc8585a03dsi10561310pga.607.2024.03.19.11.14.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-107985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 363A1B23651 for ; Tue, 19 Mar 2024 18:12:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0BE636120; Tue, 19 Mar 2024 18:12:23 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A383B2BAF0 for ; Tue, 19 Mar 2024 18:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710871943; cv=none; b=lLbXixAeynnUNH9cNgc0jePW8OtaRYKithGGJm/GSWSug+CHgcAr1/PKB3QfbdTVFpuOZbQ+8ZnL31Eq7xbGZetxcmFvJmNmpvmbGq7F9IOrRBgufArDydjGEFSJfL9vIoNuGjGFHxaGh9TQxJdOh2gojsu6ssNKGQGCP6chTBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710871943; c=relaxed/simple; bh=8CwvOpkzHWi5sDEiBu4yO13qK3DYHyI818weqm9THfY=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=X4JkLzTSIQ+tVzS+tQgnUtY2FXAACq/Ikv8GgKaX91l7x8cSft3fYFzMwHeVXREyZ5hPDoVDuLUt19EVNZLV7K29pfg06uWdQWIDcQqAxAevFJIB+j3eFJg/80FtjtGwO/v04iUGo4PWMtMEP0FYCxSViVyuWUwMhuiaePGgcLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-7c8a98e52b5so440460939f.1 for ; Tue, 19 Mar 2024 11:12:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710871941; x=1711476741; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KUl8KngKDhKat2ID3WrGzxmO4pwALhdfll2XNSs2Xd8=; b=Unx9dMp7gJQn8s23/NuC447vM5a/GBa6HXfAgiA/vFVG+jCVWUnk5K8aHkL8zMs+ZB i3h6SCiUU0XHHPaJS7MG94dr/oatlAqrzQMISbEVce3H0PUHDbmrvz1N4sM3mzu1VCNo 85wWEghsYv9+U8CE1dUnV0E8e+0w/pnGpC4Yo17pAhnO7JlwLmQ/o2M0WBcFF9P3qGpK 2bztWtEfW/eoAZWDvWRKdmHy6/VKArlrAxt+uzuN01rV+Al2fHxc5whvE9/lS/fCxMH8 17pHnVqSqqB/jsu9s+hJG74G+QEknSwFlszGqCe8USd39lVIyl+AK3dffeU9Vd4g+R1x ug0A== X-Forwarded-Encrypted: i=1; AJvYcCWuxz2prJkRYoSxI0oYs/ZUVxn25paP+WkW8Rga0EVAtflQu7UsHg5hD51NCrxl12UWiIrs+KMNBTlyEHOdWlQoWGT5NNCYd0vYCEVr X-Gm-Message-State: AOJu0YydydYmo31J/4hQJPTJQqFay8iou+BrILLbnAKh5GkVxHK45FQP pKU+jRzNb0q7zVvVlvxzDaijI6oz4HtoX7iPB9Jp6sMFcOryRJhc3dYW56pJj0whfLibN5x0Zen XNiL4UhOjo1yA+9v4SJ5knPm/bv9w10p2exFggL7TyyJruosy0jjhPBU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6602:1693:b0:7cc:ce74:4293 with SMTP id s19-20020a056602169300b007ccce744293mr171278iow.0.1710871940020; Tue, 19 Mar 2024 11:12:20 -0700 (PDT) Date: Tue, 19 Mar 2024 11:12:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003dc8e00614076ab6@google.com> Subject: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in check_stack_range_initialized From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, haoluo@google.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, linux-kernel@vger.kernel.org, martin.lau@linux.dev, netdev@vger.kernel.org, sdf@google.com, song@kernel.org, syzkaller-bugs@googlegroups.com, yonghong.song@linux.dev Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 0740b6427e90 Merge branch 'bpf-arena-followups' git tree: bpf console+strace: https://syzkaller.appspot.com/x/log.txt?x=12fed769180000 kernel config: https://syzkaller.appspot.com/x/.config?x=6fb1be60a193d440 dashboard link: https://syzkaller.appspot.com/bug?extid=33f4297b5f927648741a compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1763a479180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c38711180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/c9e6e9f97566/disk-0740b642.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/78476a588b62/vmlinux-0740b642.xz kernel image: https://storage.googleapis.com/syzbot-assets/50cd6fab9ead/bzImage-0740b642.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+33f4297b5f927648741a@syzkaller.appspotmail.com ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/bpf/verifier.c:7190:12 index -1 is out of range for type 'u8[8]' (aka 'unsigned char[8]') CPU: 0 PID: 5071 Comm: syz-executor474 Not tainted 6.8.0-syzkaller-05226-g0740b6427e90 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x121/0x150 lib/ubsan.c:415 check_stack_range_initialized+0x1668/0x19a0 kernel/bpf/verifier.c:7190 check_helper_mem_access+0x2eb/0xfa0 kernel/bpf/verifier.c:7294 check_helper_call+0x263c/0x7220 kernel/bpf/verifier.c:10252 do_check+0x9e29/0x10530 kernel/bpf/verifier.c:17801 do_check_common+0x14bd/0x1dd0 kernel/bpf/verifier.c:20500 do_check_main kernel/bpf/verifier.c:20591 [inline] bpf_check+0x136ab/0x19010 kernel/bpf/verifier.c:21261 bpf_prog_load+0x1667/0x20f0 kernel/bpf/syscall.c:2895 __sys_bpf+0x4ee/0x810 kernel/bpf/syscall.c:5631 __do_sys_bpf kernel/bpf/syscall.c:5738 [inline] __se_sys_bpf kernel/bpf/syscall.c:5736 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5736 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f8416194629 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdc6f0fdb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ffdc6f0ff88 RCX: 00007f8416194629 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f8416207610 R08: 0000000000000000 R09: 00007ffdc6f0ff88 R10: 00000000fffffff8 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffdc6f0ff78 R14: 0000000000000001 R15: 0000000000000001 ---[ end trace ]--- --- 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 report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup