A blog about programming topics, mostly JVM, Linux kernel, and x86 related things.

Saturday, February 9, 2008

kmemcheck: valgrind for the Linux kernel

Vegard Nossum released a new version of kmemcheck yesterday. You can think of kmemcheck as valgrind for the native kernel. While user-mode Linux already supports valgrind, it's not really helpful for finding bugs in drivers where the kernel has most bugs. The current version detects the use of uninitialized memory but I have been talking with Vegard how to extend kmemcheck to detect use-after-free errors also which would be really awesome.

Overall, I think the infrastructure provided by kmemcheck will help us a lot in finding hard to debug kernel bugs before users hit them in production.

No comments: