Re: [PATCH v6 17/23] scripts: decode_stacktrace: demangle Rust symbols

Kees Cook
2022-05-07T17:09:37Z

On Sat, May 07, 2022 at 12:21:14PM +0200, Miguel Ojeda wrote:
> - If we replace the mangled symbol, then some tools may not expect
> e.g. whitespace or other characters (which Rust demangled symbols
> have); or if they handle them, they may be expecting actual symbols
> (like in the case above) because they use them later on to correlate
> them to some other data.

Yeah. I think this is the fundamental issue, and it requires just
leaving it up to userspace. I don't see any significant benefits to any
of the other solutions.

Maybe some day we'll want demangling visible in traces, etc, but it
doesn't make sense to try to design that now. The mangled version is
existing-parser-safe.

--
Kees Cook