Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3098260rwn; Sat, 10 Sep 2022 05:13:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7VTxMWfYrPFgnwducWqD42MjGIyvKOeybAN4kmnGIgzxul3sunmwAlmN6jBN0EgtoSOsq6 X-Received: by 2002:a17:907:6093:b0:772:fe96:e0af with SMTP id ht19-20020a170907609300b00772fe96e0afmr10163210ejc.394.1662812016837; Sat, 10 Sep 2022 05:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662812016; cv=none; d=google.com; s=arc-20160816; b=efDX0cbkvP+viAOEXr2GttloOJphvbknpIaFwUOGQfo4M/ryKMBfMnNC0++mx/MpOd iBxwiOKxT/YKdGayP3EjSYBLEZ91hAN3eRWHLaWN+p57eKZT2XzHBsxr7Qyh/4jBXdIj beXVXOfhtevUCaFBQ3WVOxJBo9we1NgjUgImNJZy1RaGiBbOJycLdUjC6z/whOolRRJE AQimqisrCliP50VWfVmrjW5Wepy5eDYSqsKKIr+Ls8S2GrCJRMeqj1pojvSMVWbQwpZR UwhyyG29RHMT4VEbuEt2l5GVPPLrB6awrt0k06VoIhazlxuk9yn2YZ83DCAWdfSSJ6Ap LbLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=o5jZhftShA83xT4QYlsfa2imJlMCefWDbzLmSihS/B8=; b=SI0J4rMF2A6ntNxxHDfggTPfRgLVh/scH8IoJo6KXPfRg4tcpqUEL1zJfuhQZw/mGd 2JsQQK1dqokD4ALQKwAqnNRIPFpyiwYj1b7TlJVGy1qreQt3ubbJe9ATMuVHI6/w+vUF hOitfKgOWILvuXC7oZraH23eh4NCaGmvPZVWQZHBr1gfB/FWufb77sqSCMC1Kk3uKNeW 2WgpcBEVV1vEQyy+swSq0djDZS5qwxRQIABoc/b2JfC9bef1yWRNoouD77EO+Ru0td/o i506Q2ekqT5gOn6bc+jKL1AFBDHSnIojB5qIUIACc0ply4JVQC4A9eRa6oiNeTpjuugp Ugrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lmb.io header.s=fm1 header.b=P8gKKKQ5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=enSK4GF0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a50c386000000b004479eacc9acsi2495332edf.222.2022.09.10.05.13.02; Sat, 10 Sep 2022 05:13: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; dkim=pass header.i=@lmb.io header.s=fm1 header.b=P8gKKKQ5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=enSK4GF0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbiIJLDO (ORCPT + 99 others); Sat, 10 Sep 2022 07:03:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiIJLDM (ORCPT ); Sat, 10 Sep 2022 07:03:12 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E9D419A2; Sat, 10 Sep 2022 04:03:12 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 91F015C0106; Sat, 10 Sep 2022 07:03:11 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute5.internal (MEProxy); Sat, 10 Sep 2022 07:03:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lmb.io; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1662807791; x=1662894191; bh=o5jZhftShA 83xT4QYlsfa2imJlMCefWDbzLmSihS/B8=; b=P8gKKKQ59zQLw6PpOSPUtkqhRI 4PisNxzPdWs6Z8wwwTsAqKG3/WiRt6MP6fUzXkokHGx7rB4BliOe5fHa8LzwchXy DcGNmIdZ44G5XjjMNhfDYKJQI/MnN2JQRUlDEyg6YcTvL1WoR2YQ625Gq/PVvrAx HkIq3f4scoEjae1Yb52lOVSMEHA+CbiVCpj5Op4Q3M3eXI/ifa7CP8BL0prmpw47 spcq9b7y0oK9+vL75w5facpid6WkL4yHP3J8LpYKkOvNoDTQghoZXA9eFZsikR6L MKvD4y0f/pkmTG26p6VrV0Dv3wbLvm5TZ4BLrKkZXjWXUjpreFTT72KV/ErQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1662807791; x=1662894191; bh=o5jZhftShA83xT4QYlsfa2imJlMC efWDbzLmSihS/B8=; b=enSK4GF0iMl17UvUYvBX2haRUqvWlZ0QN3fp+B3Ommd1 ImrXKbYcsbPfcbY41mUTRxUkc6+r4a3tsnPwtjJ96BwpKzt4hvZ/f7WCSRxnq9A7 YKK9wkHxg9MM7GjCGZxPRyRjscZJb82hRhU5Jhe+WEAKPq2Ha5LGtPTSf8AMtvWw 6LXkrac9RUIJmXQk/7N0Bq8XdevEsdZV0n8Xi/JE37GXLEne4nFQQWWUQYVBCi0b QPFhrtXs4Bj/oUcntbOWUQJq/5IAjSKXIANqqGzf+0GwnwI03rO+Z8zM1WInawl5 ijwVGHkkC8O05MttH4QIHp9BY2vSgXZ1zuBBiBVPUg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtjedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfnfho rhgvnhiiuceurghuvghrfdcuoehoshhssehlmhgsrdhioheqnecuggftrfgrthhtvghrnh epgfeftdevgfdvueevleehkefhgfetgfelffffgffgueegkefhuddvheeluddtudfhnecu ffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehoshhssehlmhgsrdhioh X-ME-Proxy: Feedback-ID: icd3146c6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5B30815A0087; Sat, 10 Sep 2022 07:03:11 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: <17ef2c79-b5e8-43f0-886f-641ce45f18ee@www.fastmail.com> In-Reply-To: References: <20220909092107.3035-1-oss@lmb.io> Date: Sat, 10 Sep 2022 12:02:41 +0100 From: "Lorenz Bauer" To: "Martin KaFai Lau" Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Stanislav Fomichev" , "Hao Luo" , "Jiri Olsa" Subject: Re: [PATCH bpf] bpf: btf: fix truncated last_member_type_id in btf_struct_resolve Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, 9 Sep 2022, at 19:17, Martin KaFai Lau wrote: > > The fix tag should be > > Fixes: a0791f0df7d2 ("bpf: fix BTF limits") Ah, thanks very much! Sent a v2. > The change makes sense. > > The kernel's vmlinux and module btf parsing doesn't go through this > resolve check though. Are you trying to __sys_bpf(BPF_BTF_LOAD) the btf > from the vmlinux file into the kernel ? Yes, with the twist that the BTF was serialised by github.com/cilium/ebpf instead of libbpf.