Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp856398rwj; Sat, 29 Oct 2022 12:05:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6448ZgLy15VrgnfSrhqwlqbDaRCjv6Ab3vuzjWCsMAun86XfnmccuSgxGoRUcHGl9/aqwc X-Received: by 2002:a17:902:784d:b0:186:e377:f4e1 with SMTP id e13-20020a170902784d00b00186e377f4e1mr5764403pln.8.1667070324148; Sat, 29 Oct 2022 12:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667070324; cv=none; d=google.com; s=arc-20160816; b=RnFWxJiKYwRuaSLDtmqaruWxIyvM5iEWXm9m+ckvgmOQ8xNHpR6URQqWsR7NaXDcvD s53EJVtaXBqHQgsQcnPmMwuZb+v7WbowAy9pCaA6xqUh1njDDPJ9C02dv+kCLWXYmCzO sPx7wF9syXQnSIIthLpsBebUUApMjZvZ5yPcWvEoZcYPp4g/ZNv3KqIQcSSo3XJzta8s cDyuVWGndd9Cx32vlytZqcVrohWyp4Q4BqUIP0zkZL1+MykJj2ti7wlSh5RFzN3j2CL9 /GyuqU9yIg9P+r6cZhHN1SsAsAC8M3Bra/9pH279N83/wvzNct9pfidSodOZTT+x7i+B ofhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=gxoLAPS+9Ecu1s/8uDx34AXuA9lpWU9Z2smUFzhiANI=; b=faoErnzpNAcOj4ydGAV50bfCZvd7Bh726X62PHTl1Qzr88gzTvYoUB1RH8BwlRXg8X JbXlLbXzFCnbxgMA4rO6SnGDj/G8pht7Rwy0GF5drzvg2X3J4RLMyZD/NaMlrlJm+5AY 0xmM45fEq21/zdUq68tH5Tyg90clUE35R2KNX808/bGOHHS6iPNXCEEIRsBYGt2i/XZn U1ey1kOsOhsYdemAQwUuHQ3JJP/Yws4hKDK+9o6C2G6x5u4hrQMuPtdB8wzL3UywKv03 BNEJoE5gxLCOMymti/I+8xY3C8XKeRv8fgeaZmwesQHt/DGJKYa+l8Po6eR2wHfHhEFi Qcgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FK30Xs8F; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a056a00140800b0056c37608f45si2811023pfu.348.2022.10.29.12.05.10; Sat, 29 Oct 2022 12:05:24 -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=@gmail.com header.s=20210112 header.b=FK30Xs8F; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbiJ2SXf (ORCPT + 99 others); Sat, 29 Oct 2022 14:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJ2SXe (ORCPT ); Sat, 29 Oct 2022 14:23:34 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42D52A954; Sat, 29 Oct 2022 11:23:33 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id r187so9289438oia.8; Sat, 29 Oct 2022 11:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=gxoLAPS+9Ecu1s/8uDx34AXuA9lpWU9Z2smUFzhiANI=; b=FK30Xs8FfjGtUVZ701Q/u/E0K1xxm8c9h+UkHm2O3zOMPKAqIQn1h9Fmk1DzlhrNJY D7nWbR/fOZYEbLnPP7FF9oqz45BfN6sv37CKqyeFH55U2nsdbY0CjDWVTPjRpMyEmKIh Us53b1zCHyMg2DKt150e1V7XHIkZ3EumCqwi4vLSOlTGCXsIc1BPCim2stkACt/yxYPm YUHk86gUYe83QNj8MsHauRHwUBuMyApRY3sDucRtN5TxSY+LkX+yHn9IEe9wWkGe+7FG f5iO2owRwcStzOsTjw22iwgAfHfngVPKZdB/wf2LS16SruDIaHSC76qIoD3Y3cXkIMiE DmBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gxoLAPS+9Ecu1s/8uDx34AXuA9lpWU9Z2smUFzhiANI=; b=7KppWvzAf2WKhTjR5btObqvg51X3vqxhPf61kWKJAH4hEstorrp0SJOsqFAsaBqsUz z8wRZgm30TWs6xNB8j7ibrJoa7K2GAH0zG2ryyjxXgIOJI3N0X9tKRVmsnrYcrQGBcQ9 eIXgRdJ0BnbSlpe6kkILRVc5NGNeTH38ofAMEoYXaYUVZzGcm7SsiD7J+Zkph+8VOwIN BkMDMSGkcy4Iu11i4GUIBQEjJbUs8ZGNQWniICDBz4ilRX3Wbekqu3eACYwLJA+Wi0ar ODkXfNGt0YpTsNcM/JCVu9prjrn3R8TwZwciNb4mbgF6otOcg+HCorZt3LT4ijY4bqG4 oxpw== X-Gm-Message-State: ACrzQf1Z69UtycEJ6vnuys+3Di4/NvocWaIrAOEzk2g4eZaQuFXU/VBk GT+YfgyECXnQSo86ij5QW9k= X-Received: by 2002:aca:3d55:0:b0:355:1ced:909f with SMTP id k82-20020aca3d55000000b003551ced909fmr10680391oia.60.1667067813195; Sat, 29 Oct 2022 11:23:33 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id o4-20020acabe04000000b0035494c1202csm712709oif.42.2022.10.29.11.23.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 11:23:32 -0700 (PDT) Sender: Guenter Roeck Date: Sat, 29 Oct 2022 11:23:31 -0700 From: Guenter Roeck To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Kees Cook , Alex Gaynor , Wedson Almeida Filho , Gary Guo , Boqun Feng , Matthew Wilcox Subject: Re: [PATCH v10 04/27] kallsyms: support "big" kernel symbols Message-ID: <20221029182331.GA3324354@roeck-us.net> References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-5-ojeda@kernel.org> <20221029174147.GA3322058@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221029174147.GA3322058@roeck-us.net> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Sat, Oct 29, 2022 at 10:41:49AM -0700, Guenter Roeck wrote: > On Tue, Sep 27, 2022 at 03:14:35PM +0200, Miguel Ojeda wrote: > > Rust symbols can become quite long due to namespacing introduced > > by modules, types, traits, generics, etc. > > > > Increasing to 255 is not enough in some cases, therefore > > introduce longer lengths to the symbol table. > > > > In order to avoid increasing all lengths to 2 bytes (since most > > of them are small, including many Rust ones), use ULEB128 to > > keep smaller symbols in 1 byte, with the rest in 2 bytes. > > > > Reviewed-by: Kees Cook > > Co-developed-by: Alex Gaynor > > Signed-off-by: Alex Gaynor > > Co-developed-by: Wedson Almeida Filho > > Signed-off-by: Wedson Almeida Filho > > Co-developed-by: Gary Guo > > Signed-off-by: Gary Guo > > Co-developed-by: Boqun Feng > > Signed-off-by: Boqun Feng > > Co-developed-by: Matthew Wilcox > > Signed-off-by: Matthew Wilcox > > Signed-off-by: Miguel Ojeda > > Reviewed-by: Greg Kroah-Hartman > > --- > > kernel/kallsyms.c | 26 ++++++++++++++++++++++---- > > scripts/kallsyms.c | 29 ++++++++++++++++++++++++++--- > > 2 files changed, 48 insertions(+), 7 deletions(-) > > > > This patch results in the following spurious build error. > > Building powerpc:allnoconfig ... failed > -------------- > Error log: > Inconsistent kallsyms data > Try make KALLSYMS_EXTRA_PASS=1 as a workaround I should have added: KALLSYMS_EXTRA_PASS=1 does not help. Guenter > > Symbol file differences: > 10c10 > < 00009720 g .rodata 00000000 kallsyms_relative_base > --- > > 0000971c g .rodata 00000000 kallsyms_relative_base > 12,16c12,16 > < 00009724 g .rodata 00000000 kallsyms_num_syms > < 00009728 g .rodata 00000000 kallsyms_names > < 00022628 g .rodata 00000000 kallsyms_markers > < 000226c0 g .rodata 00000000 kallsyms_token_table > < 00022a2c g .rodata 00000000 kallsyms_token_index > --- > > 00009720 g .rodata 00000000 kallsyms_num_syms > > 00009724 g .rodata 00000000 kallsyms_names > > 00022618 g .rodata 00000000 kallsyms_markers > > 000226b0 g .rodata 00000000 kallsyms_token_table > > 00022a1c g .rodata 00000000 kallsyms_token_index > > This is the only difference. There are no additional symbols. > > Reverting this patch fixes the problem. > > Guenter