Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2926097rwb; Sat, 29 Jul 2023 18:20:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPSEHlXr5cF6ydYf7xHQyHh+aDADcPpt+g+w9EEXxLHb0SK/z11c3tCtY9a4axWYZt30UI X-Received: by 2002:a05:6402:7c6:b0:521:aeba:c6c0 with SMTP id u6-20020a05640207c600b00521aebac6c0mr5179467edy.36.1690680036217; Sat, 29 Jul 2023 18:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690680036; cv=none; d=google.com; s=arc-20160816; b=J49nozJQcGqfibxglkv5QeGMt0AkMleU6E5IoYUtb+ffOQ+hRn47/+3gTkwcAuTm/B Vp5Gc5wiKIqWKItyrEw7Xg3KI1kwb9ABoOLFYumzaSLH2A7UzskfHRoYgyKHqSS1pK1N 0A0Zmt7u5wjlK2yT7MJhN+ChqJFnswkHGWdC2Vm7ChqOXKGMk2bea3lCWmG+hCQtZpAc 5UlPFNJk0H9fHAT6+RZpvnC5ucz8Y2D7XnKrC42NF+SuZVsvxFKeURiZh+mCvnqYGasY i83/Gzan4BAYxeojmipTEzW9kigJa77s+KyLVU/akLYLTebBqFECugs5cxEygjF3d0YB 9L4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=BURO1MpdTlN3V32S0AQv/o3bpO0z6wVd1hYAKFqfAOI=; fh=6SqYjWQudL6RsXfFmWsT0tnanA8N/Z71bcnv6dX0foE=; b=RmztArOF/dfub4WisZ7V6BP3l8IY2EDOMdvw0k2yqt8/+EmaBTrbYMCzIA3iNo79t/ czwGzPEH2FmOPZGDk3kVncni2+GfE5Y7JDi4Z0M1aCf3gDZlV2/y22dDBhaqm13qrE7t jBKkn2Uo8RJHZFehjd1tgl27MvNaTvWcj1nfa92TgDHmknt10JCBLRHuniCfJaoAlMBF DR5r3o5T8V2P4KpTusJMDcy6JnZYrCMMPZGjcCs83ZmsKy9r9LGNwK5v5cpKWl1lB2hw PSdFxt7xw88ST02ih1bRV6xFrUYLAYbxfM1hDALG3K2eBJhrHwjLoSLxciQcLsmaa/2c 2CaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a056402034200b0051de55a2392si2676693edw.505.2023.07.29.18.20.07; Sat, 29 Jul 2023 18:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbjG3As4 (ORCPT + 99 others); Sat, 29 Jul 2023 20:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjG3Asz (ORCPT ); Sat, 29 Jul 2023 20:48:55 -0400 Received: from mail-oo1-f79.google.com (mail-oo1-f79.google.com [209.85.161.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BFC1722 for ; Sat, 29 Jul 2023 17:48:51 -0700 (PDT) Received: by mail-oo1-f79.google.com with SMTP id 006d021491bc7-56c99e94fa9so1283814eaf.0 for ; Sat, 29 Jul 2023 17:48:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690678131; x=1691282931; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BURO1MpdTlN3V32S0AQv/o3bpO0z6wVd1hYAKFqfAOI=; b=KRbKhRGSUIPPQZqX9QwuVwWlpt3F9nwk74HosoWA4nRWhMNreIb7OtN9ONzE/Nisal GkP7L3eeTQQMeNBuKYZIu480zWn9wchi7bsjb3jx4ngIVDlQeSlGyMsbTWtMPfU2fJ0B OaQQ91kE/OVD0YZi8vmFg9tbSjxHffHzk0lVkMdy+3MWqQC/bxO7k86rU0hGP05GFiuC 1JSDatU60tb0Bg5Xn7kYGHe1vWFG/2IlTL4O3BhhUjAp6cvSYMxBxqpNXpkW3+aRNIrd cWutKG8PQrNw+DfyLTLLptaLF7SSqfsh8D0Xh0+eg66fRKrgK9ILZZjEkdwsxLZDz1AQ AVww== X-Gm-Message-State: ABy/qLZH+GcHEhTybZb1WLdZDnKTZzfXKYmOsGR1qjwfQjpzZkfwDMD6 AH7Z4AMmflztGDUX0QOvRtuc000zbGWqx1zvN+PoABCAHusN MIME-Version: 1.0 X-Received: by 2002:a4a:33ca:0:b0:56c:99c3:1ffa with SMTP id q193-20020a4a33ca000000b0056c99c31ffamr1793607ooq.0.1690678131199; Sat, 29 Jul 2023 17:48:51 -0700 (PDT) Date: Sat, 29 Jul 2023 17:48:51 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000007095cd0601a9ad91@google.com> Subject: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_mprog_detach From: syzbot To: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, 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, yhs@fb.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: ec87f05402f5 octeontx2-af: Install TC filter rules in hard.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12a76df1a80000 kernel config: https://syzkaller.appspot.com/x/.config?x=8acaeb93ad7c6aaa dashboard link: https://syzkaller.appspot.com/bug?extid=0c06ba0f831fe07a8f27 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0fc53904fc08/disk-ec87f054.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/aee64718ea5c/vmlinux-ec87f054.xz kernel image: https://storage.googleapis.com/syzbot-assets/d3b6d3f4cfbc/bzImage-ec87f054.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0c06ba0f831fe07a8f27@syzkaller.appspotmail.com ================================================================================ UBSAN: array-index-out-of-bounds in ./include/linux/bpf_mprog.h:292:24 index 4294967295 is out of range for type 'bpf_mprog_fp [64]' CPU: 1 PID: 13232 Comm: syz-executor.1 Not tainted 6.5.0-rc2-syzkaller-00573-gec87f05402f5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __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 bpf_mprog_read include/linux/bpf_mprog.h:292 [inline] bpf_mprog_fetch kernel/bpf/mprog.c:307 [inline] bpf_mprog_detach+0xcd7/0xd50 kernel/bpf/mprog.c:381 tcx_prog_detach+0x258/0x950 kernel/bpf/tcx.c:78 bpf_prog_detach kernel/bpf/syscall.c:3877 [inline] __sys_bpf+0x36ee/0x4ec0 kernel/bpf/syscall.c:5357 __do_sys_bpf kernel/bpf/syscall.c:5449 [inline] __se_sys_bpf kernel/bpf/syscall.c:5447 [inline] __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5447 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:0x7f443e27cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f443cdfe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f443e39bf80 RCX: 00007f443e27cb29 RDX: 0000000000000020 RSI: 0000000020000340 RDI: 0000000000000009 RBP: 00007f443e2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f443e39bf80 R15: 00007ffdb0833788 ================================================================================ --- 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