Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp648920pxv; Wed, 14 Jul 2021 12:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQl9xCgvq96s/8y+oihXUva3FC8ZIN4hodshClupD4Is9FHF6p+S3ZDvtnHyTRbM8MMtPE X-Received: by 2002:a92:660f:: with SMTP id a15mr8017092ilc.182.1626289539247; Wed, 14 Jul 2021 12:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626289539; cv=none; d=google.com; s=arc-20160816; b=XyTT0zOUtPf4Vs+6sU7HowzF6sVxXeoqFE4SHBNhkmXmg+A2jO16ZtBuriABsfEB9P vrBQAL1F4Sg71sceC81UwPoizHprwCLIimvAy1AxXyjAutKl7XfgJgK4f/UceVeOGqBh RTdQ5WfLJ2x00xzmpd3GbbfQ5ZFYizKMMBU74tUTvwZ5N3/Qg7yY3H7hLmH8iOC90tlJ fB1UX9AE8DWSfJ9EdiCmVOpovEdnTBeLI0aMMUXotdKnoHK8XdzQ3RndAuYQOA3M5UQn G0UGzW0e0CVWivsFZ34Xh983pRrQJFMK3EG/PFeIWzi/5OuUNfMZbFSp/q6yvmFduq0T KVug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5qboNP9wECqxtAQPwi4Gka7E9oHhS1YQMu+Q8JxA7ak=; b=Ka66Bgzo/q/3mom0DD5UwDNcXL3PgnuvWoKC/mXXnE/RtW7gvQziBMtAxUBBTkiq65 znw+IDDNHlN7b12EgSYOroM7xP4cJeCZj63tO6ijA4Sz7Opye89VVynq4cL2FxglAbVY +k5XoS8hQc5k+hKlVgvfBY+LXu+CJtnMIdPIDfybYad63SQhTVoiBQSTJsjETlMUQVq9 MiD3LtjmA0WqsNPe5vajIHi9T0e/T9pi2OCs5ySeMlGoBq1KOwaBAnZ8SxGaqU99bC37 oif6k8AngE0VnE179r8py3MLmCg+qE6McajJvLHBQJ3nNP2xDqu7/xuJr0OtXiPSKnIY 8rIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=glh504o9; 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 j23si3079839iok.60.2021.07.14.12.05.26; Wed, 14 Jul 2021 12:05:39 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=glh504o9; 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 S230239AbhGNTHU (ORCPT + 99 others); Wed, 14 Jul 2021 15:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbhGNTHU (ORCPT ); Wed, 14 Jul 2021 15:07:20 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED76AC06175F for ; Wed, 14 Jul 2021 12:04:27 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id f30so5434126lfj.1 for ; Wed, 14 Jul 2021 12:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5qboNP9wECqxtAQPwi4Gka7E9oHhS1YQMu+Q8JxA7ak=; b=glh504o9Z7GfM84TfN6a9e1MVve+NDS52G62Hq+T8wU2hET7iB2/LaVZ85dbskzDgh yAhIlfeW60S6JOo6yc3CQ/IrfJT+6DnE98rLe7dMWar89uMeZPDVQtzoII2b3yZofc4W nDIrMzgD5EdLgxaeyj2u+vGDFkWBSBw0uXR4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5qboNP9wECqxtAQPwi4Gka7E9oHhS1YQMu+Q8JxA7ak=; b=cm6ULPZAnRk9GLCPuo1APSPNmm8kENnB4ThynQjIfJvrByhzdcB4DswMkUu4rNaXnu rQND5ZwcH5yL6gZy7jSbL4kOnT4/g1/rkGiaRu6CEHHvwD2FvIXrnAHeptvqUb+3p1xo Wiawu6O9dwzXZm3O5JF3jMUqsYJSE2eWCMfLhdDUwqt+LWsBybQuyKVzeDEYM8JM38VG /KusneGDQVPcyb6Brsb/u0AeXdA2h7TURuZ2e+NiBT3ij1HHbE6zJQBRtiOKe+jSKSEN eyV/nB1z77cDsQIarszMRmIWebtwIRbyjkwYifq7/+Om0wPlqSYtFdYoU+K86zidE6af kM1g== X-Gm-Message-State: AOAM533DCXeAUINdYOlIjasV99gVL0etV/og+AefxUnhGjRu0neTafgX FEhIpJwlrIqLa7tMgGoWRKT5oSyZrk8yQ5wY X-Received: by 2002:ac2:4d12:: with SMTP id r18mr8280634lfi.51.1626289465779; Wed, 14 Jul 2021 12:04:25 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id t24sm328317ljj.97.2021.07.14.12.04.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 12:04:24 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id h9so4990275ljm.5 for ; Wed, 14 Jul 2021 12:04:24 -0700 (PDT) X-Received: by 2002:a05:651c:1798:: with SMTP id bn24mr10307687ljb.335.1626289464172; Wed, 14 Jul 2021 12:04:24 -0700 (PDT) MIME-Version: 1.0 References: <20210704202756.29107-1-ojeda@kernel.org> <20210704202756.29107-3-ojeda@kernel.org> In-Reply-To: From: Linus Torvalds Date: Wed, 14 Jul 2021 12:04:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/17] kallsyms: increase maximum kernel symbol length to 512 To: Nick Desaulniers Cc: Miguel Ojeda , Greg Kroah-Hartman , rust-for-linux , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 11:20 AM Nick Desaulniers wrote: > > Do we demangle rust symbols when printing a trace from a warn/panic? > That would be nice. I think it would be pretty much required. Otherwise stack traces are going to be very very painful. In fact, I'm starting to think that Willy is right: we should use hashes for the "real" symbol name, and have demangled names for printing, and at no point would the kernel actually want or need to have the nasty mangled names. (This wouldn't be rust-specific - using hashes for module linking sounds like a good diea for C code as well, even if the de-mangled names for printing are then the regular ones) Anybody interested in looking into that? It would make this "big kernel symbols" patch immaterial. Linus