All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Hindborg <nmi@metaspace.dk>
To: Daniel Wagner <wagi@kernel.org>
Cc: Boqun Feng <abstractionfbq@gmail.com>,
	"rust-for-linux@vger.kernel.org" <rust-for-linux@vger.kernel.org>
Subject: ABI stability and Rust
Date: Wed, 02 Apr 2025 18:44:10 +0000	[thread overview]
Message-ID: <87iknmv1xs.fsf@metaspace.dk> (raw)

Hi Daniel,

I just wanted to mention that we discussed ABI stability in our
bi-weekly rust subsystem meeting today [1].

Two solutions were discussed:

a) Ship a blessed toolchain for each kernel image you ship. Users
   building out-of-tree modules must use this toolchain.

b) If users cannot use the blessed toolchain, they must link all rust
   code into their module and ensure no rust symbols in vmlinux are called.

Outside of those options, I don't think there are any other solutions. I
would not hedge my bets on rustc getting ABI stability, ever.


Best regards,
Andreas Hindborg



[1] https://hackmd.io/PbZOPV1HTwe0hjZTlDGnmA?view#ABI-compatibility-for-Rust



             reply	other threads:[~2025-04-02 18:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-02 18:44 Andreas Hindborg [this message]
2025-04-02 19:00 ` ABI stability and Rust Miguel Ojeda
2025-04-07 11:17   ` Daniel Wagner
2025-04-02 19:12 ` Greg KH
2025-04-07 11:23   ` Daniel Wagner

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=87iknmv1xs.fsf@metaspace.dk \
    --to=nmi@metaspace.dk \
    --cc=abstractionfbq@gmail.com \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=wagi@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.