rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
To: se iro <seiro22@mailfence.com>
Cc: rust-for-linux@vger.kernel.org
Subject: Re: leaky info and kernel modules
Date: Wed, 7 Apr 2021 23:50:54 +0200	[thread overview]
Message-ID: <CANiq72nWvusyKf_N2N8i+de5HA-UZYfFPUrp9taRFbXya5h18w@mail.gmail.com> (raw)
In-Reply-To: <1802230489.25122.1617805363569@ichabod.co-bxl>

Hi Se Iro,

On Wed, Apr 7, 2021 at 11:03 PM se iro <seiro22@mailfence.com> wrote:
>
> saw post on reddit and github issues where rust compiler adds username and systems paths/info to **release** mode compile bins. also its pkg mgr cargo does the same with registry paths. otherwise its extra strings bloating output that not needed and strip command doesnt work. also not working is compiler opts described
>
> does this impact chat of rust in linux since rust team seems to be ignoring the issue?

Yeah, Rust is adding few strings with paths (at least ~4 KiB from a
quick test in my case); while a non-Rust kernel, in-tree build without
`DEBUG_KERNEL` does not seem to contain any absolute paths (although
please note that kernels typically contain your username/host anyway
unless you tweak `KBUILD_BUILD_*` etc.).

So while I don't think it is that critical at the moment, any bloat
that can be reduced (e.g. those paths could be relative) is always a
good idea. It is also good for improving reproducibility of builds
etc.

I will create a quick issue about this.

Thanks!

Cheers,
Miguel

  parent reply	other threads:[~2021-04-07 21:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07 14:22 leaky info and kernel modules se iro
2021-04-07 16:50 ` Geoffrey Thomas
2021-04-07 21:50 ` Miguel Ojeda [this message]
2021-04-07 22:12   ` Miguel Ojeda
2021-04-08  2:38   ` se iro
2021-04-08  6:35     ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANiq72nWvusyKf_N2N8i+de5HA-UZYfFPUrp9taRFbXya5h18w@mail.gmail.com \
    --to=miguel.ojeda.sandonis@gmail.com \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=seiro22@mailfence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).