Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7983575rwd; Tue, 20 Jun 2023 08:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Au+b7gebQgb2K0Vnqyn8xDlhYFs6nUR7zN6Mok0cRZTUIGZI3AXT1uDEwg1M1jK49rYAK X-Received: by 2002:a05:6a00:850:b0:668:8259:18d7 with SMTP id q16-20020a056a00085000b00668825918d7mr5079444pfk.30.1687275630270; Tue, 20 Jun 2023 08:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687275630; cv=none; d=google.com; s=arc-20160816; b=OSZZ8CBtgL3+et+BfgPdQEvlWesVoW/xDI/ZfjhEPuRHGfZL6xShnCFsu0BV8rU8mg EsB09YsC0XvpXXp/PVvkqF1yNQBAYWd2CLImMZTEMAR1jeYE4v0iitSApdz0T5Wty/0p ZtqiwUS8J1LUKisTyg1TDJcgsN5QfrCpr8zFy+porGSwEXMDQXnaGt0q+iVICWiEBBAn 3DWd102XnTtGCTCLfDn6yVzkU8Zry9OG+oSXvIYrpymS5YZFGMUq3BnOM7WYJkuK+pzt cEAeWhZSrpIvlGulckecnvA4G3INMcve2Xd7OvreqFsMKwnmpSFutAAMyzGrcVRcXf+K tikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nu+Xr6h3aJ6hrDihAENTAwjE21lX4dsN0DdvvEc0zpY=; b=M+b3pOi/JYXggmnp3s45sd+whRpIqj54o73Eewa+wNGAh70HwqUTmSNdb2UmGGIRxs Tlix5rjnyrTop97X444EtDVQD3IB+T5v6uNZ8Oi1B/uycmSKqBffGL9NrJYLFw8p9eII UWEq8fgXuU4DheVJAuGIASbnAQaIEOFrGW8H8oCslbYA561MfmSz7qZip3RoL+pZSbmu cEzM+oytb4FLvpq3P1WTxA9Yfw79Htaq//NqQKS7qBEQ2CyAsZNyl2qO44z6ocvvcuL1 rAkFiHy1TH9jBIJhONeSIUFL+zABmliGnFvTCOhvm7mLCj7AU5ioi0CHezSjIp16EWNB vEgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=4uNSAlI4; 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 k127-20020a636f85000000b0054fd2f87c21si1892471pgc.198.2023.06.20.08.40.16; Tue, 20 Jun 2023 08:40:30 -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=20221208 header.b=4uNSAlI4; 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 S233454AbjFTPH1 (ORCPT + 99 others); Tue, 20 Jun 2023 11:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233516AbjFTPHZ (ORCPT ); Tue, 20 Jun 2023 11:07:25 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2AE718C for ; Tue, 20 Jun 2023 08:07:23 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-78701841ccbso1770422241.2 for ; Tue, 20 Jun 2023 08:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687273643; x=1689865643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nu+Xr6h3aJ6hrDihAENTAwjE21lX4dsN0DdvvEc0zpY=; b=4uNSAlI4tPJM+0kDEQ3Xs8m8o+h885+DYvUyEEqM1Q3xUaL/Zkac4rYDVD5VV3k69y QnJ+X6pZflYUWAfDmGx3KQbOCUfSElOR8MWCOyxMQigZTQB0F5U/vXfgQz+nVHm7JgFe zPxHHx0QiAS6zIRh5LTna1ZDaAT0LM1d3CYeqQBXg8Lvxt+HiMz1jiJCsSLDmHtZX11G EpfV9JeKtWMhTkP+hF8WhgfPf+D0P5ODet5RxxWMwun9woKcQyCvPe794rr3cZawXdtp J25Wo4tc74aotGpx3E9VgQhnLQmyiDFwzEmS7CM7u6MHsfy/y7YIEbkaEg3cgkWmLefz C2+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687273643; x=1689865643; h=content-transfer-encoding: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=nu+Xr6h3aJ6hrDihAENTAwjE21lX4dsN0DdvvEc0zpY=; b=dYfkcGfwNmgcApzGV/Z6KtqZS/UN7NAEBuqkXCxvacgl0XET6q0h/tIkjEEdZY4Q4n iX/xA0cPSWn+/izC9pYIT8p9Ses6OemUeKGis4r0ll+p1Vmwek5ywSxqF4eznu+qRtAz LUw+G6nrDe8+5XGb+VhhsX5JtWbOXuiebRXEUv4xYbVnExSBb8dDDg9xy9MZ6OFyHw12 YID+mWi90GeNxn6GTotnlNe91B4bZkRZXdoTKlCQH77bYcfJMWrGAT5w3RRdggGnMRFs y27tkk3qF9zkkikXoTohvAHB1R3Z/mphIA4ly+eTHjxyqnkT13ogaP8y3SPTszHnbtGS u+IQ== X-Gm-Message-State: AC+VfDzOUbuIq4tHNfFbza/hWiG1S56PPxmdXpvao/VVRUxEyF4kSplK J2C0VOmLSEhgQk3kIZFTtbUnd96tFnBryJ6U2adoTw== X-Received: by 2002:a67:ce84:0:b0:440:b0eb:4fd7 with SMTP id c4-20020a67ce84000000b00440b0eb4fd7mr3963408vse.23.1687273642685; Tue, 20 Jun 2023 08:07:22 -0700 (PDT) MIME-Version: 1.0 References: <20230615145607.3469985-1-revest@chromium.org> <6b63301f-96b2-74b9-c156-3a34fb5ad346@meta.com> In-Reply-To: <6b63301f-96b2-74b9-c156-3a34fb5ad346@meta.com> From: Nick Desaulniers Date: Tue, 20 Jun 2023 11:07:10 -0400 Message-ID: Subject: Re: [PATCH bpf] bpf/btf: Accept function names that contain dots To: Yonghong Song Cc: Florent Revest , Andrii Nakryiko , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, martin.lau@linux.dev, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, nathan@kernel.org, trix@redhat.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Tue, Jun 20, 2023 at 10:53=E2=80=AFAM Yonghong Song wrote= : > > > > On 6/20/23 7:38 AM, Nick Desaulniers wrote: > > 3. you did not run defconfig/menuconfig to have kconfig check for > > DWARFv5 support. > > Yes, I didn't run defconfig/menuconfig. That doesn't mean the odd combo of clang+gas doesn't work. Just like how using scripts/config is a hazard since it also doesn't run kconfig and allows you to set incompatible configurations. Garbage in; garbage out. > > > > > The kconfigs should prevent you from selecting DWARFv5 if your > > toolchain combination doesn't support it; if you run kconfig. > > > >> /tmp/video-bios-59fa52.s:4: Error: file number less than one > >> /tmp/video-bios-59fa52.s:5: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:6: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:7: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:8: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:9: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:10: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/video-bios-59fa52.s:68: Error: junk at end of line, first > >> unrecognized character is `"' > >> clang: error: assembler command failed with exit code 1 (use -v to see > >> invocation) > >> make[4]: *** [/home/yhs/work/bpf-next/scripts/Makefile.build:252: > >> arch/x86/realmode/rm/video-bios.o] Error 1 > >> make[4]: *** Waiting for unfinished jobs.... > >> /tmp/wakemain-88777c.s: Assembler messages: > >> /tmp/wakemain-88777c.s:4: Error: junk at end of line, first unrecogniz= ed > >> character is `"' > >> /tmp/wakemain-88777c.s:4: Error: file number less than one > >> /tmp/wakemain-88777c.s:5: Error: junk at end of line, first unrecogniz= ed > >> character is `"' > >> /tmp/wakemain-88777c.s:6: Error: junk at end of line, first unrecogniz= ed > >> character is `"' > >> /tmp/wakemain-88777c.s:7: Error: junk at end of line, first unrecogniz= ed > >> character is `"' > >> /tmp/wakemain-88777c.s:8: Error: junk at end of line, first unrecogniz= ed > >> character is `"' > >> /tmp/wakemain-88777c.s:81: Error: junk at end of line, first > >> unrecognized character is `"' > >> /tmp/wakemain-88777c.s:312: Error: junk at end of line, first > >> unrecognized character is `"' > >> clang: error: assembler command failed with exit code 1 (use -v to see > >> invocation) > >> > >> Potentially because of my local gnu assembler 2.30-120.el8 won't work > > > > It's recorded in lib/Kconfig.debug that 2.35.2 is required for DWARFv5 > > support if you're using GAS. My machine has 2.40. > > > >> with some syntax generated by clang. Mixing clang compiler and arbitra= ry > >> gnu assembler are not a good idea (see the above example). It might > > > > I agree, but for older branches of stable which are still supported, > > we didn't quite have clang assembler support usable. We still need to > > support those branches of stable. > > Thanks Florent pointing out 5.10 stable kernels which have this issue. No, all kernels have this issue, when using `LLVM=3D1 LLVM_IAS=3D0`. It's more likely that someone is using that combination for branches of stable that predate 4.19 (such as 4.14) but we do still try to support that combination somewhat, even if we recommend just using `LLVM=3D1`. Interop between toolchains is still important, even if "why would you do that?" > I am okay with backporting to old stable kernels if that is needed. > But the patch going to bpf-next should not have a bug-fix tag and > the patch commit message can be tweaked for backport to 5.10 though. > > > > >> work with close-to-latest gnu assembler. > >> > >> To support function name like '.isra', some llvm work will be > >> needed, and it may take some time. > >> > >> So in my opinion, this patch is NOT a bug fix. It won't affect distro. > >> Whether we should backport to the old kernel, I am not sure whether it > >> is absolutely necessary as casual build can always remove LLVM_IAS=3D0= or > >> hack the kernel source itself. > > > > > > --=20 Thanks, ~Nick Desaulniers