News for hackers. Stuff that matters.
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by jabedude on Wednesday March 31, 2021 @11:36AM (#26648606)
The Android IPC driver (binder) is also being re-written in rust. It takes advantage of the upcoming kernel driver rust support in Linux. It is an obvious choice for a memory safe re-write since all android processes (including sandboxed ones) have access to binder
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by xleviator on Wednesday March 31, 2021 @09:02PM (#26655462)
Hello,

I'm actually one of the main binder userspace maintainers in my day job there (opinions are my own), and I haven't heard about this. Do you have a reference? What has happened is that there is a userspace shim over libbinder called libbinder_rs which provides Rust support for binder, but AFAIK, the kernel driver and main userspace lib is remaining in C++. Still, would be cool.

Your Friend, Steven Moreland

Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by jabedude on Thursday April 01, 2021 @10:06AM (#26660661)
Hi! Not a Google employee, but I'm volunteering on the Rust-for-Linux project which is bringing Rust bindings to the upstream linux kernel. A Google engineer is working on porting binder to Rust and is contributing as he implements it. See his comments here[0] and here[1].

[0] https://github.com/Rust-for-Linux/linux/pull/145 [1] https://github.com/Rust-for-Linux/linux/pull/130

Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by bestorworse on Thursday April 01, 2021 @10:23AM (#26660838)
Outch! Thanks for the refs.
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by bestorworse on Thursday April 01, 2021 @10:20AM (#26660804)
Thanks! I searched for this rewritten version and couldn't find anything.
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by pjmlp on Wednesday March 31, 2021 @12:01PM (#26648910)
Now we need safer NDK APIs, even C++ bindings would be better than nothing.

Additionally exposing some NDK only APIs to ART would also be welcomed from security point of view.

And since we are at it, support Rust on the NDK LLVM toolchain.

Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by dblohm7 on Wednesday March 31, 2021 @11:46AM (#26648737)
This is a big f'n deal for Android, IMHO
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by adkadskhj on Wednesday March 31, 2021 @01:21PM (#26650104)
In the "big deal" sense, i'm always curious in what way. Eg is it a source of constant problems? Where not only a rewrite, but specifically a rewrite in Rust, would prevent a lot of issues?

Or is it more of a "What if" thing? Ie there's not many problems currently, but the liability is a huge deal?

to be clear i work in Rust, use it for all my projects, etc - i'm a fanboy, but i also recognize there's a lot of hype. I'm always keeping an eye out for the Rewrite It In Rust (RIIR?) meme vs actual needs.

Which isn't to say that i think people _need_ to have a reason to use Rust, i use it for everything because i (and my team) prefer it - but i think the meme is destructive.. so i'm always looking for it heh.

Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by dblohm7 on Thursday April 01, 2021 @12:01PM (#26662249)
Binder has been the source of a number of Android security vulnerabilities.