Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1127454rwb; Tue, 27 Sep 2022 08:46:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DQKTQKF4D/ESZeBa9u7FwW1VWE3fEDrKKQgjQLue9NX11WvRmKV12592tHR+7zoO35cdU X-Received: by 2002:a63:ec0d:0:b0:439:5dcd:2a3c with SMTP id j13-20020a63ec0d000000b004395dcd2a3cmr25557598pgh.358.1664293562448; Tue, 27 Sep 2022 08:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664293562; cv=none; d=google.com; s=arc-20160816; b=VPPCBeGHnfG2lIHZwxMt8YsMgVzmftAhBEs0Jw5Wg1f+EBNvt0qudNfBFHR7McTR6U +5vWikWIyrclsJvlfWu4ZHigxfaOMvcaLUDr7zzQS/OS1lxtAIBY/Ci2ps/OK+z0MLC0 sqcfniaZ7enBOL13eygd2RHlH8b6/HXEUdBdH2kccetWcZKdahnynB4hNwou+4hln1c9 RxSxQBS+jHOOeECapkcPiGHXeiCUfXSEt2ReRp4tfBMg9kqgTOo8addqAsSiR4sh6/hj RYNHwD5uCptDOWFelcW51RdJSZ+eTEPoq7w83mpm1lSVPucnYQdOLg2llt6hWAZ5Numg nx+g== 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:dkim-signature; bh=WIyqMsVOdaJPFrEXtvEigvV7yQV8u/wFq1iTOa6j1mQ=; b=uoqFJYMkZz0/4JZ0qxM3SELGBfzrhc1PvnIKO0F0irjWZkVkYN+JorAxEnkdWT6ys5 ZgSKkAkxiGN2xOmy35bPCaHJPN9tUCP5QzX4yxXylu3ZmN36tapt+kRwyA82bv6q1Yqa UoIKhzXblHa/QUwpX6ATBPxuUrWjUhkIYgZAVYpLjz/c3QL18FbVuMUKKss2FfDZfOqx YVuOrkoiibYgEN3EADjVYZi1lu1S7JKbThFXLt/+Ox5gq8gaVXfWwEkaRvRGHO7q7Sy9 B9DfpaHFGxrg/ux48mE0aBxlDSzVuAqdKdYBgm90Wv+dmji/h3n9rCqAdTV4/r56bwpX NV/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="A7t/c8uR"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s184-20020a6377c1000000b0043038865a46si2107286pgc.275.2022.09.27.08.45.50; Tue, 27 Sep 2022 08:46:02 -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=@linuxfoundation.org header.s=korg header.b="A7t/c8uR"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbiI0O4u (ORCPT + 99 others); Tue, 27 Sep 2022 10:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232514AbiI0O4T (ORCPT ); Tue, 27 Sep 2022 10:56:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA7EF979E8; Tue, 27 Sep 2022 07:55:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 566E2619E8; Tue, 27 Sep 2022 14:55:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 437E1C433C1; Tue, 27 Sep 2022 14:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664290524; bh=aUKfoGvdKDzMOXhk0hJy8k35gYHkpZkep32NjUanwCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A7t/c8uRme2jhzpK8riOPTNuNrQffCT9WLogKMaylDVTcRw2uwaNe2z7raw11OAbW d3NDCbdprubws4K+N2rONj6jjzvYjhi8c8B27jSsQz9r/eUpn7RZ5jIfMEO2Vm6lbh rFY/zJNfsPkN8mTEMjabMqTyDAH8m3a+U5iZolPU= Date: Tue, 27 Sep 2022 16:55:22 +0200 From: Greg Kroah-Hartman To: Miguel Ojeda Cc: Linus Torvalds , 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: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-5-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927131518.30000-5-ojeda@kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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 > --- > kernel/kallsyms.c | 26 ++++++++++++++++++++++---- > scripts/kallsyms.c | 29 ++++++++++++++++++++++++++--- > 2 files changed, 48 insertions(+), 7 deletions(-) Reviewed-by: Greg Kroah-Hartman