Windows Kernel Programming with Rust
summary
Concrete how-to: Rust produces a working Windows kernel driver using official WDK bindings (Microsoft added them in 2023), Cargo build scripts, automatic binding generation with llvm, and driver signing via an included make task that emits a test certificate. Examples include a loadable hello world DLL, serial and debug-print logging with a kernel_log crate, a custom global allocator for page-aligned or physical memory, VM-based WinDbg debugging, and a practical caveat: heap copies can overflow a three‑page kernel stack (example shows a six‑page copy).
AI-written summary · about
chapters (11)
- 0:00Rust kernel drivers intro
- 3:08What is a kernel driver
- 5:15Rust kernel setup
- 7:43Basic Rust driver
- 10:36Debugging drivers
- 14:11Custom allocators
- 17:27Memory and stack limits
- 18:09Manual API imports
- 20:19Rust vs C++ for kernel
- 22:48Rust limits and future
- 25:17Conclusion & Q&A
related talks
51mRust in the Linux kernel
01h 02mDeveloping Kernel Drivers with Modern C++
14mKeynote: Rust in the Linux Kernel, Why?
18mKeynote: Rust and Linux: How the Rust Language is Going to Help Linux Succeed in the Future
10mKeynote: Rust in the Linux Kernel: A New Era for Cloud Native Performance and Security
35mRUST Meets Embedded Linux: Build Memory Safe and Reliable Kernel Modules, Applications
27mRust in the Linux kernel
39mFrom C to Rust: Bringing Rust Abstractions to Embedded Linux
