Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7945988rwd; Tue, 20 Jun 2023 08:13:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Z6NJnIQlHVvrQbQ4Y6jJSWX7dUYr/Vml3aPyo6ddPMFFObRTdpHwjJvDVezU1PvI5U6gA X-Received: by 2002:a17:902:da88:b0:1ae:10b3:61e9 with SMTP id j8-20020a170902da8800b001ae10b361e9mr14679701plx.65.1687273981979; Tue, 20 Jun 2023 08:13:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687273981; cv=pass; d=google.com; s=arc-20160816; b=hA6FdwzVeGvp6oftxNIPtQyxYtKCHL6tM9EvOxjN1WtaVJmW8bCF7+kJekf9Fc0jcZ iyo32eFiyHdIl/5ZeiToHhZNAxhdtuwKyfAs7qckyJykaZcLpT6INa4nwsBU+s7eLZGM GAtEd002f4IhmIYZutPXnohQwcrfuE2ZFN/7m/WtYy7aP+BX+Wvvb03djj8XlnEGRD8T E1qX/ykZMGcQ+DZpLiyP47n+MMfjL9WGzzZYJVeg7x3ouAkc3c+ZwfhJjT9zm52R27y7 vEC0TUYjq/fMKz9wWp/2c1YSgOA9UIsGWfFcQHJ60dUktBO483+l7l4GdF9Lu5yyWoUp Gv7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=MRMxToDpyjMoFISGOlDOXWkl35fqaC//qvBAJ1fkJoM=; b=xxF0H8UhydoqLsi5No++GXeE4HmGzqe1Zl6IHx8dChDJcZE4FRnDaCYD015oPBe0kN F+frIIM2B6/9RTKukzbDFDB8OljZv1YJ5aY/BcCFvjw4S6FFsrx547AzStwLArtssau8 Eb6Xs9lC76pqLJGsjXqpYAUOsW03XPJnbcN9UlHNXZNvtEytNwmd5z0HkOBEwB5sfKQE qOljL55aAJ0sm3CmAqYW4ykKAJgviz60gDa3AHbdaLCx5/R1nEiMO1oor6RskhyWO8fi zgYhogry0HT76TSOdArrgrJ/ksOZmeitDHGLF3LghjYJJoLZ4KirmEeS27oOGVAPvIbo mg2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=CPFAC5Gz; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); 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=meta.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a17090311d000b001b045d65af0si2244523plh.76.2023.06.20.08.12.48; Tue, 20 Jun 2023 08:13:01 -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=@meta.com header.s=s2048-2021-q4 header.b=CPFAC5Gz; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); 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=meta.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233002AbjFTOyF (ORCPT + 99 others); Tue, 20 Jun 2023 10:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbjFTOyC (ORCPT ); Tue, 20 Jun 2023 10:54:02 -0400 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F14495; Tue, 20 Jun 2023 07:54:01 -0700 (PDT) Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35KE0E1I021700; Tue, 20 Jun 2023 07:53:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=s2048-2021-q4; bh=MRMxToDpyjMoFISGOlDOXWkl35fqaC//qvBAJ1fkJoM=; b=CPFAC5GzTPrQQN0qocuHZKV1bH5nbY79U2yLP1LwtsnkDRPkPegbBX6omrDfP2D1Aqd5 H77a0MZQ9v8lSOSSZ/Cv3mPk/1R84HUbNkQAdcl1hlflYk/ijh/GRrOWKDPuw6v2L/Y9 QNMa0Hz7qAR4ogGT1GW0sG5aaQlM65F3tdHpUjZVzzVetb9BAFmPADE8P2a3nGGvqCGk zsrrRgllVVHXvQIJ7ueN+r6Jv0sO3xRDF/N/pwJ9KD8sXy91LGSqD7mq7FMK1nGPw/ia Mv95pYEjz9k0YJbEBED4EyWk7/sNu5O8N4+jYgcOlA9X+9SFCPYY8yYksDdGVDSQbJ3U pA== Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2100.outbound.protection.outlook.com [104.47.70.100]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3rb1cy4t7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Jun 2023 07:53:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F8k9RzYudAetA7M3oTQOT4rK9zYEyMratLY5ExsX2IUV32nk1KEnKPwv75bM+S1y+BCxt5NU90Vjh2D0BXGV6poESspaxzzZYdYvZKP9BIqToGqbrQg56Cy7Fn698I6+dLugk5PQCV+yB7Jht33WDIiTdXYwD1mw23/aKgTwZiKOX/wbd4vUPhr0mDPsjYSSG7MqctNL7/BGTtrZKvUHdrNKB+ZIFRF3Y2HdOFgocxBSOYEPwcUmKLZEdvwZA22sJSRez48x54R2zn38wizqIGaV8EbPyDB01EuLhMnPnYiGxCTLqVZEdzVYIUF324Q9foupx8RB+46+3Gy0J9ZJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MRMxToDpyjMoFISGOlDOXWkl35fqaC//qvBAJ1fkJoM=; b=O4azG7dqv4bI+rHmZKaODRNDTeqbrxQD38nI7oUlGW83f7GpOBbz+4QS3oDCJadmLd2RMhtRVZvGx5W+AlTX0gb7OUhXYzJ+OfN1KDOKKJFbFR9RG2dXU13M8uS5kt2/mFWuRFhJ10zOMilgbFbfcnUGoNyAJxLj4Wt5UC9LzNxLrGLD/o4Nbs+XgXfEL2TBwnMCWNeKaCPE9NIczNCtjQ86PLwHOmnrIJVZ3ZnISbqOSGRHqL15VN9rBGKb7Jz7iPD9Z+BNDjF25Un/qUAp8w1QuGucl1Jryrb7N2neXrJRSr8G65MDGirQTGQGHl6KUw+xAPm/6ZmaWHRwLWwKtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none Received: from SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) by PH0PR15MB5165.namprd15.prod.outlook.com (2603:10b6:510:14a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Tue, 20 Jun 2023 14:53:33 +0000 Received: from SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::428f:acec:2c1f:c812]) by SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::428f:acec:2c1f:c812%6]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 14:53:32 +0000 Message-ID: <6b63301f-96b2-74b9-c156-3a34fb5ad346@meta.com> Date: Tue, 20 Jun 2023 07:53:28 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH bpf] bpf/btf: Accept function names that contain dots Content-Language: en-US To: Nick Desaulniers 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 References: <20230615145607.3469985-1-revest@chromium.org> From: Yonghong Song In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BYAPR01CA0017.prod.exchangelabs.com (2603:10b6:a02:80::30) To SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR1501MB2064:EE_|PH0PR15MB5165:EE_ X-MS-Office365-Filtering-Correlation-Id: f03b62d4-d6d7-4d51-c49b-08db719e1e03 X-FB-Source: Internal X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3CxrEy+1NDFsZIh80ztiqgq4QEJKWTFSjhcGxqWhWs5Q6b9fHVaYCXp7jIgFChJ9PrL8LbMjtRZCHhSM+IO9Ukg24uLzJ4kBGs/wCNaG28Xpij6KjlQUOBEAaVaD4ZNcCUEGGjbdepUOfKM1aDfO6yQW9SkmVp3zwwW/d6aoY1lklOsgZM1QUKEnFQ+LAcxgixA8a3XkgcY30C8XKnoom3vIRimy9xrhUL5fFLsUTYrrGIH9akqP0WzOO/MNvJ1xpUZe8qM7Up+ireJ59sUrft/1XqyldokG3/70p6AfppCe8sHC5e5AeMzc9oBqDSaMlQWxVdDE98vS0h1SItSSKzzc5Xz+TpouOuIu2DsbxAXyKchyGpnpZPL3A2x+Gpfp1AnY5tXr6DcD0PGcEbcIvATYF2asW87cGXlxbuhqQesNRw0xlzdWAT4SiX+WcY8qd2ltFRcs//3ejRKfS7EAjeQ01VS/hodQsMkv+Rxg97P+HmFWGb7XF4m6VtNlNBLZ2o4STv9FEzvbcJv2DeS4LK29dTJM6qq7bVbfqJ/5X1s/Rg1eTWFC8FaPLN1NmMv0IBiUC5OnOQ5mHEw7Lw2kXEGaOrRxiNpyyLf71FiiMTAsA3AR7Uhsly5pB85BM54TM7ul0kj261f1OzVilWwZJA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR1501MB2064.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(451199021)(7416002)(31686004)(83380400001)(2616005)(31696002)(86362001)(2906002)(54906003)(5660300002)(66476007)(8676002)(186003)(66946007)(8936002)(66556008)(4326008)(478600001)(36756003)(41300700001)(38100700002)(53546011)(6916009)(6512007)(6506007)(6666004)(316002)(6486002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UXBpbHVBK1N6WjdWbXNFVWY5MlM2ejBBZTFyWmJPQ2hBais3dmhuZytBTVNm?= =?utf-8?B?T05iakZEY0VvSjUzWEp3QlFQTnJTZ3pvL002cG9ib2dR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nZUp2d1h0L2V6MGNON00vVlc5cmFVMXZlQXBVQmdtN0ZtQ0ZvemF5SVky?= =?utf-8?B?cXhpRkpzd25CMHRxUlNkc2YrNCtsRG5WSERyeTJCOEo3MDFCdnNUby9hMnJL?= =?utf-8?B?ZGt2dEFCeHc4SlpuRTR5R3prcW1SVzFWcmZkR2FRUTRPUkFTYVB0VnUwNkdh?= =?utf-8?B?WW5sN0JCTERrY2Z4MDhyQlQvZHVPYmZlWkc3RmVqNDdyU1VhTXpTUDlHS083?= =?utf-8?B?SWhrcDc1WG1xYVA1YjZndGN3eHBsVUxSRU4rd2xQUTdPZVpKUmlJUFJWY2FH?= =?utf-8?B?R3c9PQ==?= X-OriginatorOrg: meta.com X-MS-Exchange-CrossTenant-Network-Message-Id: f03b62d4-d6d7-4d51-c49b-08db719e1e03 X-MS-Exchange-CrossTenant-AuthSource: SN6PR1501MB2064.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 14:53:32.6677 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DNkIF54Rinj9Heznz6y6A2aUNYKYgbiRdGxlJSzffLbuPW4MBXv4Mp8qK6YAEsXp X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR15MB5165 X-Proofpoint-ORIG-GUID: Lgzu7zW_0iCuI-VX6jBb81qooeztpBHw X-Proofpoint-GUID: Lgzu7zW_0iCuI-VX6jBb81qooeztpBHw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-20_10,2023-06-16_01,2023-05-22_02 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 6/20/23 7:38 AM, Nick Desaulniers wrote: > On Mon, Jun 19, 2023 at 2:17 PM Yonghong Song wrote: >> >> How many people really build the kernel with >> LLVM=1 LLVM_IAS=0 >> which uses clang compiler ans gcc 'as'. >> I think distro most likely won't do this if they intend to >> build the kernel with clang. >> >> Note that >> LLVM=1 >> implies to use both clang compiler and clang assembler. > > Yes, we prefer folks to build with LLVM=1. The problem exists for > users of stable kernels that predate LLVM_IAS=1 support working well > (4.19 is when we had most of the assembler related issues sorted out, > actually later but we backported most fixes to 4.19). > >> >> Using clang17 and 'LLVM=1 LLVM_IAS=0', with latest bpf-next, >> I actually hit some build errors like: >> >> /tmp/video-bios-59fa52.s: Assembler messages: >> /tmp/video-bios-59fa52.s:4: Error: junk at end of line, first >> unrecognized character is `"' > > Probably because: > 1. CONFIG_DEBUG_INFO_DWARF5=y was set or > CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y and you're using a version > of clang which implicitly defaults to DWARFv5. > 2. you're using a version of GAS that does not understand DWARFv5. > 3. you did not run defconfig/menuconfig to have kconfig check for > DWARFv5 support. Yes, I am using llvm17 which I think the default dwarf is v5, and indeed I have CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y My gas is 2.30, probably too old to support dwarf 5. Yes, I didn't run defconfig/menuconfig. > > 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 unrecognized >> 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 unrecognized >> character is `"' >> /tmp/wakemain-88777c.s:6: Error: junk at end of line, first unrecognized >> character is `"' >> /tmp/wakemain-88777c.s:7: Error: junk at end of line, first unrecognized >> character is `"' >> /tmp/wakemain-88777c.s:8: Error: junk at end of line, first unrecognized >> 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 arbitrary >> 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. 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=0 or >> hack the kernel source itself. > > >