GitHub - davidmalcolm/antipatterns.ko: The world's worst kernel module
source link: https://github.com/davidmalcolm/antipatterns.ko
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
antipatterns.ko: the world's worst kernel module
caution:DO NOT LOAD THIS MODULEThis kernel module contains numerous security vulnerabilities.
It is intended purely as a testbed for vulnerability detection tools.
The idea is to provide a collection of kernel code that looks plausible, but actually contains vulnerabilities.
Caveat: this is my first ever kernel module, so I may have committed more mistakes than I intended.
This code is intended to permanently stay out of the main kernel tree, so that if anyone does insmod it, the "taint" flag will be set.
See also:
samples/kmemleak/kmemleak-test.c
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK