Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2020 (6)
20082026
  1. …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…
  2. …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
  3. …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
  4. 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…
  5. …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…
  6. …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.
  7. …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
  8. …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
  9. Answering myself here: of course someone else already did that. :) https://github.com/fishinabarrel/linux-kernel-module-rust
  10. …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…
  11. …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…
  12. 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…
  13. 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).…