· via Hacker News – Front Page (hnrss.org)
nvdriver: clean-room Rust kernel driver claims drop-in replacement for NVIDIA's Linux module
A clean-room Rust Linux kernel driver called nvdriver claims to be a drop-in replacement for NVIDIA's proprietary kernel module, running unmodified CUDA and NVENC userspace — verified so far only on Tesla V100 hardware.
A project called nvdriver, which reached the Hacker News front page on 30 November 2026, claims a first for the Linux GPU stack: a clean-room, open-source kernel driver for NVIDIA hardware, written in Rust, that works as a direct substitute for NVIDIA's proprietary kernel module. According to the project's GitHub repository, the driver ships as nvidia_rs.ko and runs completely unmodified NVIDIA userspace, including CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi and the NVENC/NVDEC video encode and decode libraries.
The compatibility approach
Rather than reimplement NVIDIA's entire software stack, nvdriver implements only the kernel side of the interface that the closed userspace libraries expect. The README states that it also bridges to NVIDIA's stock companion modules — nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko — through exact CONFIG_MODVERSIONS symbol versioning, so existing userland keeps working unchanged. An install script handles module installation and supports signing for Secure Boot with a machine owner key.
The code is written as no_std Rust, statically linked into a minimal C shim. The project claims strict kernel hygiene: a 10/10 kernel ABI audit covering zero GOT relocations, no SIMD or x87 instructions, no memcpy, memset or memmove calls, no unwind sections, and every stack frame capped at 1,024 bytes. It builds for both x86_64 and ARM64, with explicit non-coherent DMA cache synchronisation for ARM64 PCIe boards such as the RK3588, Ampere Altra and Apple Silicon Linux systems.
What is actually verified
This is where the caveats start. According to the project's own documentation, only Volta hardware has been tested on physical silicon: eight Tesla V100-SXM2-32GB cards, benchmarked against the stock NVIDIA 580.178.04 driver. On that setup the project reports 77 of 77 checks passing in a CUDA parity suite, 8-GPU PyTorch and NCCL AllReduce at 59.71 GB/s bus bandwidth with zero numerical error, NVLink 2.0 at 25.781 Gbps, working H.264 and HEVC encode and decode, and S3/S4 suspend and resume.
Maxwell and Pascal support, spanning GTX 750 through the 1080 Ti and the Tesla P-series, is described as implemented and verified offline in emulation. Turing through Rubin — RTX 20 through 50 series, A100, H100, B200 and beyond — routes through NVIDIA's GSP-RM firmware with new memory-management layers, and is likewise described as verified offline while awaiting real-hardware testing. In other words, everything beyond Volta is, by the project's own account, untested on actual chips.
The V100 performance claims
The headline numbers come with a straightforward explanation: the driver raises GV100 HBM2 memory clocks from the stock 877.5 MHz cap to 1107 MHz, the factory specification of the V100S, which is a 26.2% bandwidth increase. The project credits hardware research by arikamidotnet and the FBR-ROM and FBR-RAM-Downloader tools for making this possible, and says clock changes include per-partition lock verification, automatic rollback on error and a 1 Hz on-die thermal guard.
Reported results against 580.178.04 in identical virtual machines include PyTorch STREAM Triad at 1,041.72 GB/s versus 821.85 GB/s, a 26.8% gain; device-to-device copies up 23.8%; FP16 tensor-core GEMM up 9.7%; llama.cpp prompt processing up 12.3%; and full parity on pinned PCIe host transfers. Across eight V100s the project reports 8.33 TB/s of aggregate memory bandwidth. Much of the improvement therefore comes from running the memory subsystem at V100S-spec clocks rather than from any architectural difference.
Software gates the driver removes
The README's more provocative argument is that NVIDIA's driver enforces product segmentation in software, and that nvdriver simply does not implement those checks. The listed unlocks include peer-to-peer transfers over PCIe and BAR1 across consumer and datacenter GPUs, Resizable BAR1 enabled by default, GPUDirect RDMA, unrestricted NVENC sessions, vGPU and SR-IOV without GRID licensing, a full compute unlock on CMP mining cards, unprivileged hardware profiling for ncu and nsys, and ECC toggling without a reboot. What the published material does not address is whether bypassing these gates conflicts with support agreements, warranties or licensing terms.
Why it matters
If the claims survive independent scrutiny, nvdriver would be a rare thing: practical, kernel-level control over NVIDIA hardware without the proprietary module. That matters on three fronts. GPU computing features such as P2P and RDMA are gated to datacenter products today, and opening them would change what smaller labs can do with consumer cards. Hardware longevity is another angle, since Maxwell, Pascal and Volta are exactly the generations that NVIDIA's own open-source kernel modules do not cover, as those support Turing and newer. And a no_std Rust driver with this level of ABI discipline is a strong demonstration of Rust's suitability for kernel work beyond the small in-tree efforts so far.
The open questions are equally significant. The source material contains no independent verification, only Volta has run on real silicon, and a small project must now track NVIDIA's frequent userspace updates to keep its parity claims true. Independent reproduction on V100, and eventually on a Turing or newer card, will decide whether this is a milestone or a promising prototype.
- #open-source
- #rust
- #linux
- #nvidia
- #gpu