Kselftests augmented: running kernelspace tests from userspace
summary
Proposal implements a proof of concept kernel feature that lets kernel code register tests as a ktest object (function, name, parameter size) and exposes a simple userspace API with four endpoints to list tests, trigger one with a parameter buffer, and poll results. It compiles behind a config flag disabled by default, registers tests at runtime, and already runs in prototype form. It targets extending kselftests to set kernel preconditions and invoke specific kernel functions while noting overlap with KUnit/Kfuzz prior art and security risks.
AI-written summary · about
chapters (5)
- 0:00Introduction and motivation
- 1:25Problem and proposed solution
- 6:11Demo and use cases
- 8:45Discussion and alternatives
- 12:48Feedback and next steps
related talks
30mKernel Testing with KUnit: Bridging the Gap
34mLinux Kernel Testing: Providing Better Results to the Upstream Community
19mChecking your work: Linux kernel testing and CI
23mExperiences and lessons we learned using kselftest and pote
44mKUnit - Unit Testing for the Linux Kernel
45mKUnit: Past, Present, and Future
34mLinux Kernel Testing: Providing Better Results to the Upstream Community
28mKVM-unit-tests: When "KVM" Doesn't Mean KVM
