Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3243256lqo; Tue, 21 May 2024 10:42:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU45CS7vicQhEtosbBysh3GQpWhBbqiIR0mChEfUgYg114N8Jd8ufER+c2J3lHuXrtgzBiKX+DFXzsa0kjoKDM9fBHHyxqlEWbeMcY4KQ== X-Google-Smtp-Source: AGHT+IF+CgIUk49RzXJue4ZviN7fT9IaGNwZRj8oaSdnq5io8cyUpWyUu/TX3NEU7q3hy6hje+sN X-Received: by 2002:a05:620a:40d5:b0:793:a5:1665 with SMTP id af79cd13be357-79470f304c4mr1741696685a.38.1716313329423; Tue, 21 May 2024 10:42:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716313329; cv=pass; d=google.com; s=arc-20160816; b=Uq9cuxTJ9foxPFysjrQdINU6DVrjTLZaD4eYsatoFdme0GBmVTAPRRK26Mi+8S2AB2 hvbSWGdpcLM9QrEgCW1aLWQJilyF6Kozz/yfqDcGEMc2Dewj06GIFKNceHYqGk9eZbsc 4B0Gq+TZ4icKWmHy+K5vCB6a86Ht4rpfUu3mkiidRS89XMdhYZrtTZ+UD1pKtVNS/8zE 3PSho0Zp/AL74cokmAQs9wPL8cryppI2ljhqUm0AJqsuXrHTHpA/2JJdQLnEqyEiwnvN 92RGyV/KV8GmYws/lQeSN2JYLoZ+1iQFobWObFzNUGUZlGopXyEQqow23eV9juVyUplD TZOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=20N900fJWMwAOATiy/Ior8cOPFjos1p7P1Y2b+q5/s0=; fh=wgOSS7uFx5J69o4CM7wVLF3BMesJyqC7PejFu84Vpzk=; b=KM4cD2ZTjLBDmFEst7X4AqrmdcRMPPabAHmOLJkFC4jMusSNtINXk4H6s7XBo83A2A cuvJU+VNcyPpDzWFF6RgvXGf7f09W5JXpRGLjC1skqeDe8dvqyFrSyoOf4XSyMrF5E8+ Md5y/ISJpkD/i8+AzzfX/HG5bYLse0Tsa0KOMKivkgXxbTV8TLsHhXG56WVFDF3rY/kz C9uUF3UvCDT0KD4p6T0Q0Q6Hrccc9ezlFKrqx85nCFNb0ap+ah45hZYsWoaLdK9+0AEF yJnWuCFlGaxnNiHtNi9ZpTxN3wsl7ceVOAvffTKZlNRl6QrHAADj2csBlYdyBu8xS6EJ 40ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sIu2FAwv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df54a125asi33502141cf.50.2024.05.21.10.42.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 10:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sIu2FAwv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 27F5C1C217F0 for ; Tue, 21 May 2024 17:42:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC34B148FF4; Tue, 21 May 2024 17:40:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sIu2FAwv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE9CE14884F; Tue, 21 May 2024 17:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716313232; cv=none; b=QHx8/wrPAm0Ah3V2vYnH+sTFBGCjAN6Pi0IYXrFRdT0PbjSXuEv/RAiNralVKRIhl+Xq9KvnXUzCN+w2IoeSrxguC9XuUoFec6Bw4ZajjQUPM7HV6QRHAvaU+931kBduhTOaGi8pLXK8/9iu3yb+5GJ6jUPT5MtnoApF+jK0bTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716313232; c=relaxed/simple; bh=qVChz3yTRX5PsAq7ghcr9MG/QydNqv/MMmVizdTxvB4=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=VTkhY/+2CcOWN3W11iQ6yoYdzcGAWsKhRRJ5hVjuczn2OCG2SxN7d0nD8ZTbU+UKQLbvw2ejN2iSi4NWRUNqzH/WCgLJl+e4Vb6SqoIyDH96DA7oM+i3E7KN3iIjURaXP/SCnilWUla2dAW6ziQ72nGA8Ij04yO8FA5F1dvTNus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sIu2FAwv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 63A71C32786; Tue, 21 May 2024 17:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716313231; bh=qVChz3yTRX5PsAq7ghcr9MG/QydNqv/MMmVizdTxvB4=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=sIu2FAwvPmvmAVo4yv/cA54k6lVYQjQu8qYevji7M4bufW/aKH/mbPHvwHsdvdBFE VghMkq4NapK88uDP+0WAGi/5WqznvVAjokRHztad/xdl+Z3P4mhyDPWiQDaJBNMtyw yfxsgy9Hx7ACHkgcADVjpkbVCXC6xKFGoQwJjiC/55McsMUNa+lF30AEOCm0KLGPyT iwB9SDYwwh3dgVDCjBdCRF9BxVWYf2EpJj1trvmt1vKupDQqwJvBJIRVvVYI1UFLJb PvEI3r8i2BlM8Iu76adSPj3jQV7Crbzic6tJU41rBYFv7wRzVPDxazitSQqsOnXWjZ IbYIGeonCCipw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 3F873C54BD4; Tue, 21 May 2024 17:40:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] bpftool: un-const bpf_func_info to fix it for llvm 17 and newer From: patchwork-bot+netdevbpf@kernel.org Message-Id: <171631323125.30783.6623831881664329095.git-patchwork-notify@kernel.org> Date: Tue, 21 May 2024 17:40:31 +0000 References: <20240520225149.5517-1-ivan@cloudflare.com> In-Reply-To: <20240520225149.5517-1-ivan@cloudflare.com> To: Ivan Babrou Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, quentin@isovalent.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, ramasha@fb.com Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Mon, 20 May 2024 15:51:49 -0700 you wrote: > LLVM 17 started treating const structs as constants: > > * https://github.com/llvm/llvm-project/commit/0b2d5b967d98 > > Combined with pointer laundering via ptr_to_u64, which takes a const ptr, > but in reality treats the underlying memory as mutable, this makes clang > always pass zero to btf__type_by_id, which breaks full name resolution. > > [...] Here is the summary with links: - bpftool: un-const bpf_func_info to fix it for llvm 17 and newer https://git.kernel.org/bpf/bpf-next/c/f4aba3471cfb You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html