Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0B83C61DA4 for ; Mon, 6 Mar 2023 13:39:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbjCFNjF (ORCPT ); Mon, 6 Mar 2023 08:39:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjCFNjD (ORCPT ); Mon, 6 Mar 2023 08:39:03 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472B01DB81; Mon, 6 Mar 2023 05:39:01 -0800 (PST) Received: from dggpemm500006.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PVfkb1QnxzKq07; Mon, 6 Mar 2023 21:36:55 +0800 (CST) Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 6 Mar 2023 21:38:58 +0800 Subject: Re: [PATCH 1/2] kallsyms: add kallsyms_seqs_of_names to list of special symbols To: Arnd Bergmann , CC: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Greg Kroah-Hartman , Kees Cook , Miguel Ojeda , Boqun Feng , Luis Chamberlain , , Arnd Bergmann References: <20230306101451.375844-1-arnd@kernel.org> From: "Leizhen (ThunderTown)" Message-ID: <15ae14de-f73b-7dd0-b54d-b029e7fc7d16@huawei.com> Date: Mon, 6 Mar 2023 21:38:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20230306101451.375844-1-arnd@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/6 18:14, Arnd Bergmann wrote: > From: Arnd Bergmann > > My randconfig build setup ran into another kallsyms warning: > > Inconsistent kallsyms data > Try make KALLSYMS_EXTRA_PASS=1 as a workaround > > After adding some debugging code to kallsyms.c, I saw that the recently > added kallsyms_seqs_of_names symbol can sometimes cause the second stage > table to be slightly longer than the first stage, which makes the > build inconsistent. > > Add it to the exception table that contains all other kallsyms-generated > symbols. Reviewed-by: Zhen Lei Maybe we can do a sanity check in output_label(). Or dynamically add the new symbol into ignored_symbols[], in this way, manual maintenance is not required. > > Fixes: 60443c88f3a8 ("kallsyms: Improve the performance of kallsyms_lookup_name()") > Signed-off-by: Arnd Bergmann > --- > scripts/kallsyms.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c > index 8a68179a98a3..a239a87e7bec 100644 > --- a/scripts/kallsyms.c > +++ b/scripts/kallsyms.c > @@ -119,6 +119,7 @@ static bool is_ignored_symbol(const char *name, char type) > "kallsyms_markers", > "kallsyms_token_table", > "kallsyms_token_index", > + "kallsyms_seqs_of_names", > /* Exclude linker generated symbols which vary between passes */ > "_SDA_BASE_", /* ppc */ > "_SDA2_BASE_", /* ppc */ > -- Regards, Zhen Lei