Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6489811rwd; Mon, 19 Jun 2023 08:01:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ZCauVqEjN4Noa0Ys2xMHyHkQ3ogQCdV06rfh+ktb+lYJ7LqChyLkPLG14xWvLLAhBtuwR X-Received: by 2002:a05:6358:455:b0:12b:ea6b:8010 with SMTP id 21-20020a056358045500b0012bea6b8010mr2029851rwe.24.1687186919582; Mon, 19 Jun 2023 08:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687186919; cv=none; d=google.com; s=arc-20160816; b=OZ/a/bNiC9Zh3ByzKszECBEJhG6XUYvNPh3CM67MsHytJpN0Tr6I3o1+nMGpwTYMhp YZSN4yp9pURM27z4KAzDcOO1RDnK4kWneW8NJ4NOtLej+nf9wjxNTt9wvp4AIYIZsRqV RnNl1DKgQTtN8qCuNNB51OOJNuwREyzHu2BvDwkkkqb8YojKX8ky87NHcJ741KWkkQ9r Zmu46UuVKWgmJXgjk+ilzSK3roiXdLjabups7QtQ6VU16Jg+HR73GFJvJMP2pT0qPmuS vYRg+ks+Ds8tO7XIx8Xq1kSKHi7fPER6AtP/CnhLXE6kVC+I3cqrsofOMhWmoCuPfJFS zNiw== 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=Z4qVvgFOGP5lG2STwYbhhcifXhM7KwsnEag7M7GxbaU=; b=0GMIgdza1xJv/PhSbSDcuNQSbcnW4bxUcQn4KKuysX02D4bCJG2eu1w8FMuIsHkfiy 3Bs89qbDoB2kZ3jdvioQQ1rodaN/TJURwwx5SeyWN4UVN4Gbg4hTfI26ZBSMUTgiBjsa TujoZgSGn4ElJsWDFqv+Td42inGYHT6I6qjkZ079zJ5xudDhmRtI3JPUG/EzWcfY3goB 31lzZUNmruHaqiPHnpI7VSQEzxpVaIoyE1Qadc8E3yd/CcCSnL6z99b6vSGj/cB1R0CC 6S93MFFXO5grsJ0mrB3iKoma3oCrc2gK+/G0msUFvQJka1pLJppODZX3/thu+VZXNCzg S1dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mqBC2bCH; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a63924d000000b0052c688e6608si6520911pgn.505.2023.06.19.08.01.27; Mon, 19 Jun 2023 08:01:59 -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=@chromium.org header.s=google header.b=mqBC2bCH; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbjFSN4N (ORCPT + 99 others); Mon, 19 Jun 2023 09:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjFSN4M (ORCPT ); Mon, 19 Jun 2023 09:56:12 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D9419C for ; Mon, 19 Jun 2023 06:56:11 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-54fb3c168fcso2891075a12.0 for ; Mon, 19 Jun 2023 06:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687182970; x=1689774970; 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=Z4qVvgFOGP5lG2STwYbhhcifXhM7KwsnEag7M7GxbaU=; b=mqBC2bCHRGwRVWEnV4RRj7z2yEXrZ9c/s5jh971VamQHKXsP0jhqaODXkcNAWNzCh8 6x/z8RtMdkGhLp++g5mP2aCYUacSBXWlbt+KyZC+Bh8mKxQ+xbWcL5g8Qf8M56rc+Tbm OJNW2BeHirQzRyW2tN7JkUuLInZ2bC71StUbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687182970; x=1689774970; 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=Z4qVvgFOGP5lG2STwYbhhcifXhM7KwsnEag7M7GxbaU=; b=T5HDZue008YZnJU/NKpLrVBL+c5/FwFhazT976aR4ODXXgMdOoWrjvUvKtTVyQkRMh /zgd73UxJ5oqG3N1y5yB1YdP+8tH6WmPGQwqiSd7eOCaTXtNWAba/9w0Mds73ZAOxLom J9OmjbXZvSpbsOyuTLIj18/miJVbYO3DDJUjAS8B9GH/0FT0al2Biui4MbR8Gzo0bqg8 ryhF33wfOeWhT173z323OBMXahU6fHYWhMHonb7rbxhyROzgny0hH8QMBF3kWttWnucS Lf0qw4GCSfeXq/PYsd+vT0zZjXnQCgsiXBRnnNHOo5h/dqO8bCazcR6oUnmna1FKfq54 +tVA== X-Gm-Message-State: AC+VfDzcZuCFFGtjwiuzjD/Ke+E1E7tuSekBXx06HKE3Hh0p5xidufCU XSpuiPeQM5csnvoOfIgrGQd7DpXwVX3a238OEZIsww== X-Received: by 2002:a17:902:8c94:b0:1b1:a9e7:5d4b with SMTP id t20-20020a1709028c9400b001b1a9e75d4bmr9437925plo.22.1687182970381; Mon, 19 Jun 2023 06:56:10 -0700 (PDT) MIME-Version: 1.0 References: <20230615145607.3469985-1-revest@chromium.org> In-Reply-To: From: Florent Revest Date: Mon, 19 Jun 2023 15:55:58 +0200 Message-ID: Subject: Re: [PATCH bpf] bpf/btf: Accept function names that contain dots To: Eduard Zingerman Cc: 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, ndesaulniers@google.com, trix@redhat.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jun 19, 2023 at 1:20=E2=80=AFPM Florent Revest wrote: > > On Thu, Jun 15, 2023 at 7:05=E2=80=AFPM Eduard Zingerman wrote: > > > > On Thu, 2023-06-15 at 17:44 +0200, Florent Revest wrote: > > > An easy reproducer is: > > > > > > $ touch pwet.c > > > > > > $ clang -g -fsanitize=3Dkernel-address -c -o pwet.o pwet.c > > > $ llvm-dwarfdump pwet.o | grep module_ctor > > > > > > $ clang -fno-integrated-as -g -fsanitize=3Dkernel-address -c -o pwet.= o pwet.c > > > $ llvm-dwarfdump pwet.o | grep module_ctor > > > DW_AT_name ("asan.module_ctor") > > > > Interestingly, I am unable to reproduce it using either > > clang version 14.0.0-1ubuntu1 or clang main (bd66f4b1da30). > > Somehow, I didn't think of trying other clang versions! Thanks, that's > a good point Eduard. :) > > I also can't reproduce it on a 14x build. > > However, I seem to be able to reproduce it on main: > > git clone https://github.com/llvm/llvm-project.git > mkdir llvm-project/build > cd llvm-project/build > git checkout bd66f4b1da30 > cmake -DLLVM_ENABLE_PROJECTS=3Dclang -DCMAKE_BUILD_TYPE=3DRelease -G > "Unix Makefiles" ../llvm > make -j $(nproc) > > bin/clang -fno-integrated-as -g -fsanitize=3Dkernel-address -c -o > ~/pwet.o ~/pwet.c > bin/llvm-dwarfdump ~/pwet.o | grep module_ctor > # Shows module_ctor > > I started a bisection, hopefully that will point to something interesting The bisection pointed to a LLVM patch from Nick in October 2022: e3bb359aacdd ("[clang][Toolchains][Gnu] pass -g through to assembler") Based on the context I have, that commit sounds fair enough. I don't think LLVM does anything wrong here, it seems like BPF should be the one dealing with dots in function debug info.