Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4856911rwi; Mon, 17 Oct 2022 11:42:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pfzbEbUyx/jn28uRSh1yJsnjQ6krrrJoCFqO2yWcI6Oc5jGyqjR/3muubKYZ/OucCzovW X-Received: by 2002:a05:6a00:16c4:b0:535:890:d52 with SMTP id l4-20020a056a0016c400b0053508900d52mr13900365pfc.9.1666032173812; Mon, 17 Oct 2022 11:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666032173; cv=none; d=google.com; s=arc-20160816; b=NosvrQQTw5iqjbdtidYLkKMbQRSpunKlAHEpmLRlxXG7ZcFEToIUVBVa7nlY0DSNqo qThIaRGVY07OmPUQ6Sca1ALkiTt4kAxO0wEqdmphd9NIgJGqc7FcKmgFVjk1LBUhOKtL xR+QVD+OJzSj8EIN2mRHipoAZnLb7nG2r4JEk1Kygl3NYMuYHNxYckI9QG+qK8ViwbF7 e/vQyXk0uqyDZFEMQlpQyiVibqlc4cEYEBPKIeL2LkQP9tHYPHyFXCuxIeSFf2F1CXHZ 8LJE1gmDQZNjRcE0O5dNER8FS1fyl6osd6h+KC8xt+KzT25uw+AIqYM9PKQabmFaWde0 cEHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DXU81cQcPsCJLCV+A2vr1+j7uPP+PNe41H9VCxRnhMQ=; b=ilHm5s+e68sX9qTOr7mJyDZsB90MwWUWMYfiJhM/Gd/NU/vnjppc9Y8CUu8KvpiDnQ cqaRje4xmVKBr0V4IMcljFYG1TuIzDu8opi79kvV/nrfvkdWhrAdXKvoaesZDeh+sG4z qZ7SA3fAqEbO6TEoi0I91KZnxDWCm0JfLPaCpRiw/KNcRFuGZhCj0y9hNSS89OnSY5L0 Mh8TFFTgcZTAKp2YhDg7D52R42zHLsjxUiSaO5fDkDtf4vHlIEOIDb4EkYpesO5EILu7 9lJlvAE/JS9ws6nyTfYXmnDqBSFCkvqAOKm8Qp0D0oqOiCA48ShTYI1/m5G50RkRkn2D WSqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cx2LxuZ4; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a63f205000000b0045706a2a5f3si12546495pgh.439.2022.10.17.11.42.38; Mon, 17 Oct 2022 11:42:53 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=cx2LxuZ4; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbiJQSaW (ORCPT + 99 others); Mon, 17 Oct 2022 14:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiJQSaV (ORCPT ); Mon, 17 Oct 2022 14:30:21 -0400 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F7F20F72 for ; Mon, 17 Oct 2022 11:30:16 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id 3so12385100vsh.5 for ; Mon, 17 Oct 2022 11:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DXU81cQcPsCJLCV+A2vr1+j7uPP+PNe41H9VCxRnhMQ=; b=cx2LxuZ48C+MUnXJPZyd4WuzGanbZCWLlqZEcit5FftjC6xno++aG8MH9PDvAsUUSZ rmLFTWxZ7FHQZZZy70/qWTZ46+bNpX3NyFKCeD9lIx4/kPNEO2qTrd77sJIoaJ8dkYDI o7IYMoNmlgES8l3e7IkYdanLaYMPBOr9Tw76x0NeZopzOsPfdP/KtRMrs0u8ZI0zl/iv jeRSLOvCCCMyWP6SsQP9z/A54CtQgSLFAY8b+7wcGNFqOIH3q3wdbiCKtXvCbIwq11zO Wjz+h0o4ay1fMleegtoBUxCyyULgYzByPQJRX/BcNAKj8dryCo/V0Ut21HjJYfU2Tdma rlmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DXU81cQcPsCJLCV+A2vr1+j7uPP+PNe41H9VCxRnhMQ=; b=wXrHrOJKLNjaJia0azOktIyM2zYA4OpBQLi36OjKHsJKmkfJXazjU110LNC4B8kg5g KPSO8oO83+xs/MLk/LikgPhVAbAsJG0WqRYtGI2OD3Qm+UNOTe6CwItDfq9KPBplfuuU DPfZjqUez+Sa5U228mWQwz9D4FZ6Oxjk/uGWdt5Q6ltd21DgfbuVqzUvz9vlQOXj5qGL MYL20+TcTI3s3YFwdp8nvzxy4DLKgGabuinI6qSqqWiDiDNO7u5Q0aySRE0w5oF1QgO0 sEri/wM/sQHmWk6if1ruO0Pjteq2XJ3b5tsLXkd/w8taJlFLmLgsSd7iUiZbMUiCf6Sd yR7g== X-Gm-Message-State: ACrzQf1NWR/6G2/R3PcZFVSdGrDPd5OoEVJnRlbSnJ5u0GSIDiaC2A74 rbk8pEnAyFzEsS60Jzo/0FdbX3B1H4U2EaXskjL+NA== X-Received: by 2002:a67:e8d0:0:b0:3a9:765b:38fe with SMTP id y16-20020a67e8d0000000b003a9765b38femr124089vsn.51.1666031415362; Mon, 17 Oct 2022 11:30:15 -0700 (PDT) MIME-Version: 1.0 References: <00000000000068cb2905eb214e9a@google.com> In-Reply-To: From: Aleksandr Nogikh Date: Mon, 17 Oct 2022 11:30:04 -0700 Message-ID: Subject: Re: [syzbot] WARNING in btf_type_id_size To: sdf@google.com Cc: syzbot , 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, llvm@lists.linux.dev, martin.lau@linux.dev, nathan@kernel.org, ndesaulniers@google.com, netdev@vger.kernel.org, song@kernel.org, syzkaller-bugs@googlegroups.com, trix@redhat.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 On Mon, Oct 17, 2022 at 10:43 AM wrote: > > On 10/17, Aleksandr Nogikh wrote: > > Let's tell the bot about the fix > > > #syz fix: bpf: prevent decl_tag from being referenced in func_proto > > Thx! Wasn't sure syzkaller would accept that until the fix is actually > pulled in. No, that's not strictly necessary :) syzbot accepts fix commit titles at any moment and then just waits until the commit reaches all branches it fuzzes. > > > On Mon, Oct 17, 2022 at 9:16 AM 'Stanislav Fomichev' via > > syzkaller-bugs wrote: > > > > > > On Sat, Oct 15, 2022 at 11:52 PM syzbot > > > wrote: > > > > > > > > Hello, > > > > > > > > syzbot found the following issue on: > > > > > > > > HEAD commit: 0326074ff465 Merge tag 'net-next-6.1' of > > git://git.kernel... > > > > git tree: bpf > > > > console+strace: > > https://syzkaller.appspot.com/x/log.txt?x=1376ba52880000 > > > > kernel config: > > https://syzkaller.appspot.com/x/.config?x=796b7c2847a6866a > > > > dashboard link: > > https://syzkaller.appspot.com/bug?extid=6280ebbcdba3e0c14fde > > > > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU > > Binutils for Debian) 2.35.2 > > > > syz repro: > > https://syzkaller.appspot.com/x/repro.syz?x=15e182aa880000 > > > > C reproducer: > > https://syzkaller.appspot.com/x/repro.c?x=1677bfcc880000 > > > > > > > > Downloadable assets: > > > > disk image: > > https://storage.googleapis.com/syzbot-assets/7cc67ced256d/disk-0326074f.raw.xz > > > > vmlinux: > > https://storage.googleapis.com/syzbot-assets/86a7be29267c/vmlinux-0326074f.xz > > > > > > > > IMPORTANT: if you fix the issue, please add the following tag to the > > commit: > > > > Reported-by: syzbot+6280ebbcdba3e0c14fde@syzkaller.appspotmail.com > > > > > > > > ------------[ cut here ]------------ > > > > WARNING: CPU: 0 PID: 3609 at kernel/bpf/btf.c:1946 > > btf_type_id_size+0x2d5/0x9d0 kernel/bpf/btf.c:1946 > > > > Modules linked in: > > > > CPU: 0 PID: 3609 Comm: syz-executor361 Not tainted > > 6.0.0-syzkaller-02734-g0326074ff465 #0 > > > > Hardware name: Google Google Compute Engine/Google Compute Engine, > > BIOS Google 09/22/2022 > > > > RIP: 0010:btf_type_id_size+0x2d5/0x9d0 kernel/bpf/btf.c:1946 > > > > Code: ef e8 7f 8e e4 ff 41 83 ff 0b 77 28 f6 44 24 10 18 75 3f e8 6d > > 91 e4 ff 44 89 fe bf 0e 00 00 00 e8 20 8e e4 ff e8 5b 91 e4 ff <0f> 0b 45 > > 31 f6 e9 98 02 00 00 41 83 ff 12 74 18 e8 46 91 e4 ff 44 > > > > RSP: 0018:ffffc90003cefb40 EFLAGS: 00010293 > > > > RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000 > > > > RDX: ffff8880259c0000 RSI: ffffffff81968415 RDI: 0000000000000005 > > > > RBP: ffff88801270ca00 R08: 0000000000000005 R09: 000000000000000e > > > > R10: 0000000000000011 R11: 0000000000000000 R12: 0000000000000000 > > > > R13: 0000000000000011 R14: ffff888026ee6424 R15: 0000000000000011 > > > > FS: 000055555641b300(0000) GS:ffff8880b9a00000(0000) > > knlGS:0000000000000000 > > > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > > CR2: 0000000000f2e258 CR3: 000000007110e000 CR4: 00000000003506f0 > > > > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > > Call Trace: > > > > > > > > btf_func_proto_check kernel/bpf/btf.c:4447 [inline] > > > > btf_check_all_types kernel/bpf/btf.c:4723 [inline] > > > > btf_parse_type_sec kernel/bpf/btf.c:4752 [inline] > > > > btf_parse kernel/bpf/btf.c:5026 [inline] > > > > btf_new_fd+0x1926/0x1e70 kernel/bpf/btf.c:6892 > > > > bpf_btf_load kernel/bpf/syscall.c:4324 [inline] > > > > __sys_bpf+0xb7d/0x4cf0 kernel/bpf/syscall.c:5010 > > > > __do_sys_bpf kernel/bpf/syscall.c:5069 [inline] > > > > __se_sys_bpf kernel/bpf/syscall.c:5067 [inline] > > > > __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5067 > > > > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > > > > do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 > > > > entry_SYSCALL_64_after_hwframe+0x63/0xcd > > > > RIP: 0033:0x7f0fbae41c69 > > > > Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 > > > > RSP: 002b:00007ffc8aeb6228 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 > > > > RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0fbae41c69 > > > > RDX: 0000000000000020 RSI: 0000000020000140 RDI: 0000000000000012 > > > > RBP: 00007f0fbae05e10 R08: 0000000000000000 R09: 0000000000000000 > > > > R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f0fbae05ea0 > > > > R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 > > > > > > > > > > Will be addressed by > > > > > https://lore.kernel.org/bpf/d1379e3f-a64d-8c27-9b77-f6de085ce498@meta.com/T/#u > > > > > > > > > > --- > > > > 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. > > > > syzbot can test patches for this issue, for details see: > > > > https://goo.gl/tpsmEJ#testing-patches > > > > > > -- > > > 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/CAKH8qBu%2BoT%2BBF6sA4PKxfUsj43O5BNSLzrdhirWOLJ0O8KbA3w%40mail.gmail.com.