Ken Thompson talked about compilers potentially injecting code in final programs in his Turing Award lecture [1]. That's why compilers need to be certified in order for the software built by these compilers also receive certification. It's a great step for Rust! [1]: https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_Ref...
The best defense against a trusting-trust-attack that I am aware of is Diverse Double-Compilation: https://dwheeler.com/trusting-trust/ It's a simple idea, but can be surprisingly tricky to get exactly the right. Basically, you bootstrap from multiple disconnected and diverse systems and then do pairwise binary comparisons of the bootstrapped program on each of those systems. (This only matters after you've checked t…
Open Sourcing Ferrocene
11–20 of 20 posts
Re: Open Sourcing Ferrocene
#12I would have thought the majority of safety critical systems are on bare-metal ARM32.
Re: Open Sourcing Ferrocene
#13Re: Open Sourcing Ferrocene
#14Interesting that they only support x86-64 and aarch64/ARM64. I would have thought the majority of safety critical systems are on bare-metal ARM32.
> For the first iteration we wanted to keep the set of supported targets small and focus on obtaining qualification, so 23.06 will include only support for ARMv8-A. Now that we achieved qualification though, we will work to expand support for other architectures and operative systems (including QNX).
and
> The current target is “bare metal” (aka without libstd) ARMv8-A.
Re: Open Sourcing Ferrocene
#15Hopefully the work on Ferrocene can contribute to the standardization of the Rust language. Tracking issue: https://github.com/rust-lang/rust/issues/113527
This is explicitly a non-goal. Ferrocene considers itself a certified downstream of the rust project and as such we certified the rust compiler as it was at 1.68. There's no effort or push to standardize the language from our side. As part of the certification efforts, we had to write a spec since some description of the language is required. But this spec is a descriptive spec, describing the intended behavior of th…
Re: Open Sourcing Ferrocene
#16Earlier quoted context omitted.
This is explicitly a non-goal. Ferrocene considers itself a certified downstream of the rust project and as such we certified the rust compiler as it was at 1.68. There's no effort or push to standardize the language from our side. As part of the certification efforts, we had to write a spec since some description of the language is required. But this spec is a descriptive spec, describing the intended behavior of th…
Is there any high-level description of the downstream changes in ferrocene and a roadmap of which changes could be upstreamed and which would probably "never" be acceptable upstream?
The list of relevant changes to the compiler is the empty set. We wanted to certify the compiler without forking it or restricting the supported language features.
We do build and test some targets to a higher tier level than upstream rust and do have support for custom proprietary targets which the rust project will never support (1), but that makes for a tiny change set. (Measured in literally tens of lines).
Most of Ferrocene is the LTS support and the qualification documentation, both of which upstream has no interest in providing. The documentation also describes our QA process and unless you’ll adopt our procedures, you’ll have to adjust the documentation and then re-certify.
(1) to a large extend because the rust project cannot sign an NDA and support proprietary hardware in its CI.
Re: Open Sourcing Ferrocene
#17Re: Open Sourcing Ferrocene
#18Should i use this instead of the normal Rust compiler?
Re: Open Sourcing Ferrocene
#19Re: Open Sourcing Ferrocene
#20Considering that Ferrocene has been open sourced (or at least, will be) and Adacore announced the (seemingly) closed source GNAT Pro for Rust, it looks to me that maybe the two organizations couldn't agree on a path forward regarding source availability and parted ways. Even this post mentions that the current version of Ferrocene needs to have some "proprietary partner work" scrubbed before a proper open source rele…
I just wanted to clarify all AdaCore products are open source. Including of course GNAT Pro for Rust.