Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4800090pxk; Wed, 30 Sep 2020 12:01:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoQRf0nfu+RDRYlb6rgtB9hk6dudAkR6xvySucOvmMljxWFONb4M6pxv6MaZ9MxToYASW3 X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr4075548ejb.99.1601492486253; Wed, 30 Sep 2020 12:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601492486; cv=none; d=google.com; s=arc-20160816; b=yd0+4de1Zwgb7Viit6uM92wKOCpa1sV7y2wpelBmCqhaswuLBjAZ5zRB5r2G4dHYjl adCCI8adoEB+JpPMYaKJ+pknUk2dVJCxvxDu2ZfJ3/OWbjiW6Sb3XVv2tofwL4EZCbvV EOqThRxbrZIV2o6NLfepcVYWESPlctzJ6xZee58CyzptyFnIJhlY+xdUhvsu77uGN3SY v391X6CawaXJbepsbLyb5NzeXarodPbe5jls6NjfT44ZeLuEkLwOQu2UTvFOp/kPuNfp TaUQGLijPhYYaV0Egx5VospyOPuCSqUW+sXQMZWod9eMnKwxPC1N7FzhiopSW7ilHRMY t9EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ypeAQMbJsqxIZ1/XFKliorK0A9Emj5Iog6G/5y5VFCo=; b=kzZtJ5n3SXx/FQaJM/E6OAY9zVGy1etivne4ZVAiGQLJ64YzPIZw9EldwgJxBfYkoI cnRuIabZUf19uP1k4X1HS7VkTXqrGUXA78G/FNCcuOOr9r2iO34AzFExdfdxSFcwiFlY RsOWVKS6OI8t480A3BItODm89PJx1FSUAPZ7Q6+mZ8m6rqeOkDD9nNTvJklAJBf9ytog afiP2l9+8dLbAq/lyAPfR8GVyAIU3746EDKTNp6XhbF6uOC0ipcDl7oXUlLJJEsCrfY8 e9a/3NGJ76nS/8TspIS1nOewcP05Mzji2KWji8AEIXJIxri6dmLnT4vE6yGYYBpwndqU Bp3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si1689690edt.186.2020.09.30.12.01.03; Wed, 30 Sep 2020 12:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730668AbgI3S5G (ORCPT + 99 others); Wed, 30 Sep 2020 14:57:06 -0400 Received: from smtprelay0017.hostedemail.com ([216.40.44.17]:36204 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730263AbgI3S5E (ORCPT ); Wed, 30 Sep 2020 14:57:04 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id B102C2C9D; Wed, 30 Sep 2020 18:57:03 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 10,1,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:967:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2561:2564:2682:2685:2828:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4387:4470:5007:6119:7875:9025:10004:10400:10848:11026:11232:11473:11658:11914:12043:12297:12438:12555:12698:12737:12740:12760:12895:13069:13311:13357:13439:14096:14097:14157:14181:14659:14721:21080:21451:21627:21811:21939:21972:30029:30030:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: soap41_0b0aa1027195 X-Filterd-Recvd-Size: 2464 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Wed, 30 Sep 2020 18:57:01 +0000 (UTC) Message-ID: <133589afbe999347454dfcc46ae782897bf9e3a2.camel@perches.com> Subject: Re: [PATCH v2] srcu: avoid escaped section names From: Joe Perches To: sedat.dilek@gmail.com, Nick Desaulniers Cc: "Paul E . McKenney" , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Josh Triplett , Kees Cook , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, Clang-Built-Linux ML Date: Wed, 30 Sep 2020 11:57:00 -0700 In-Reply-To: References: <20200929192549.501516-1-ndesaulniers@google.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-09-30 at 18:41 +0200, Sedat Dilek wrote: > On Tue, Sep 29, 2020 at 9:25 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > The stringification operator, `#`, in the preprocessor escapes strings. > > For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how > > they treat section names that contain \". > > > > The portable solution is to not use a string literal with the > > preprocessor stringification operator. > > > > Link: https://bugs.llvm.org/show_bug.cgi?id=42950 > > Fixes: commit fe15b50cdeee ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules") > > Signed-off-by: Nick Desaulniers > > Puh, remember one year ago an overnight bisecting to catch the root > cause for "escaped section names". > > The two patches I see - this here and "export.h: fix section name for > CONFIG_TRIM_UNUSED_KSYMS for Clang" were new cases? > > Do we have a check-script to catch/avoid such cases (Joe Perches?)? Try the script that removes #S from #define __section(S) https://lore.kernel.org/lkml/0e582a7f5144a33f465978d97701f9b3dcc377f3.camel@perches.com/