From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7324DC6FA82 for ; Sat, 10 Sep 2022 11:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbiIJLDP (ORCPT ); Sat, 10 Sep 2022 07:03:15 -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 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.