fishinabarrel/linux-kernel-module-rust
View on GitHub ↗ ★ 1,337 Rust archived
Framework for writing Linux kernel modules in safe Rust
13 mentions on Hacker News by 4 people: 0 stories, 13 comments · first 2019-08-30 · latest 2021-07-08
20082026
-
…supports many more architectures than LLVM does, and rustc doesn't even support all of those ( https://github.com/fishinabarrel/linux-kernel-module-rust/is... is where things were last time I looked in detail), and without some answer for…
comment by geofft · 2021-07-08 · in Rust GCC back end was officially accepted into the compiler -
…shipping out-of-tree modules that they didn't want to keep having to push security updates for. https://github.com/fishinabarrel/linux-kernel-module-rust was out-of-tree and we tried to keep compatibility with kernels 4.4 onwards. But it…
comment by geofft · 2021-07-06 · in Linux Rust Support -
…to be written in Rust. [1] - https://lore.kernel.org/lkml/CAK8P3a2VW8T+yYUG1pn1yR-5eU4jJX... [2] - https://github.com/fishinabarrel/linux-kernel-module-rust/is... [3] - https://rust-gcc.github.io
comment by nindalf · 2021-03-09 · in Debian Running on Rust Coreutils -
Architectures supported by Linux kernel but not supported by Rust are tracked at https://github.com/fishinabarrel/linux-kernel-module-rust/is... . It currently lists 14 architecutres (as opposed to 10 supported architectures), so it's less…
comment by sanxiyn · 2020-09-01 · in Supporting Linux kernel development in Rust -
…code in ATS? I think that, empirically, we have built something that works. You can check it out ( https://github.com/fishinabarrel/linux-kernel-module-rust - see tests/* in particular). I'd be delighted to see folks who are excited about…
comment by geofft · 2020-08-31 · in Supporting Linux kernel development in Rust -
…support, and that's one of the things I want to get out of the Plumbers session this upcoming week. https://github.com/fishinabarrel/linux-kernel-module-rust/is... is a chart of Linux architectures and whether Rust and LLVM support them.
comment by geofft · 2020-08-22 · in Moreutils – Unix tools that nobody thought to write (2012) -
…my reply to a sibling comment for what I mean by hiding memory allocations. Here's my plan for RCU: https://github.com/fishinabarrel/linux-kernel-module-rust/is...
comment by geofft · 2020-07-12 · in Linux kernel in-tree Rust support -
…Cargo wired up in our prototype, which can let you link modules against no_std crates on crates.io: https://github.com/fishinabarrel/linux-kernel-module-rust Probably one good end state is if the core kernel exposes appropriate safe…
comment by geofft · 2020-07-11 · in Linux kernel in-tree Rust support -
Answering myself here: of course someone else already did that. :) https://github.com/fishinabarrel/linux-kernel-module-rust
comment by black_puppydog · 2020-05-28 · in New fuzzing tool finds USB bugs in Linux, Windows, macOS, and FreeBSD -
…for posting this! For more details, see our GitHub (there's a link to the slides in the README): https://github.com/fishinabarrel/linux-kernel-module-rust Most of the exciting examples are in the tests/ directory, I'd recommend looking…
comment by geofft · 2019-10-02 · in Linux Security Summit 2019: Writing Linux Kernel Modules in Safe Rust -
…only choice is to panic (Rust panic, i.e., unwind, maybe BUG() and kill the current thread). See https://github.com/fishinabarrel/linux-kernel-module-rust/is... for some discussion. If by "stability" you mean interface stability, the Rust…
comment by geofft · 2019-08-30 · in Linux kernel drivers in Rust might become an option in the future -
Feedback is definitely welcome! Re cstr see https://github.com/fishinabarrel/linux-kernel-module-rust/is... and https://github.com/fishinabarrel/linux-kernel-module-rust/pu... . What we have now is definitely better than b"foo\0" but not…
comment by geofft · 2019-08-30 · in Linux kernel drivers in Rust might become an option in the future -
We're working on it: https://github.com/fishinabarrel/linux-kernel-module-rust Check out the demo in PR #122, which lets you create three boolean sysctls and a character device that prints the state of those sysctls in JSON (using serde).…
comment by geofft · 2019-08-30 · in Linux kernel drivers in Rust might become an option in the future