The world's worst kernel module

Overview

antipatterns.ko: the world's worst kernel module

caution: DO NOT LOAD THIS MODULE

This 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
Issues
  • Caveat question

    Caveat question

    Sorry, this is really minor, but shouldn't the caveat sound like this?

    Caveat: this is my first ever kernel module, so I may have committed less mistakes than I intended.

    opened by dmig 1
  • End-user sign bit overflow during fork()

    End-user sign bit overflow during fork()

    At the time of writing there are 4 forks of this repo on Github. This poses a problem: should downstream improvements to the module be classified as bugs, and changes that worsen it as fixes? Is the act of forking this project a form of resource leak?

    opened by imaami 1
Owner
David Malcolm
FLOSS developer at Red Hat, currently focusing on GCC
David Malcolm
A kernel module that patches Linux kernel "on-the-fly" to skip TASK_RSS_EVENTS_THRESH check in check_sync_rss_stat

split-rss-counting-patch A kernel module that patches Linux kernel "on-the-fly" to skip TASK_RSS_EVENTS_THRESH check in check_sync_rss_stat. Why? Read

Bao-Hiep Le 3 Mar 6, 2022
Linux kernel module to fight against police terror

protecc is a Linux kernel module that will shut down your computer when a predefined USB device is removed from the system.

null 21 Jun 24, 2022
Linux kernel module for Onion Omega2 to control WS2811/WS2812 LEDs

omega2-ws2811-lkm Linux kernel module for Onion Omega2 to control WS2811/WS2812 LEDs. It's using a bit-banging, so you can use any GPIO pin. Also, it

Alexey 'Cluster' Avdyukhin 15 Jun 7, 2022
Linux kernel module for RedPill

?? RedPill LKM THIS IS WORK IN PROGRESS There's nothing to run/see here (yet ;)). What is this? This is a major part of a tool which will be able to r

null 291 Aug 12, 2022
A simple Linux kernel module that kills ptrace tracer and its tracees

dont_trace dont_trace is a simple Linux kernel module that kills ptrace tracer and its tracees. This kernel module relies upon the Linux kernel task_s

null 5 Mar 31, 2022
Custom linux kernel module that re-enables fn-keys on the Gigabyte Aero 15 SB

aerofnkeys Custom HID Quirks Driver that fixes function keys not working in the Gigabyte Aero 15 SB on Linux. Works by intercepting non-HID compliant

null 5 Mar 11, 2022
Integration of Rust code with a C Kernel Module

Rust-Kernel-Mod Description Integration of Rust code with a C Kernel Module This project sets up a minimalistic Linux kernel module in C which it uses

Dylan Turner 1 Nov 1, 2021
The overlap type coredump kernel module.

faps-coredump The overlap type coredump kernel module. What the this? Overlaps with SceCoredump and outputs coredump at the same time as original core

null 3 Dec 6, 2021
Estudos sobre LKM - Linux Kernel Module.

Linux Kernel Module - Part 1 Explicação geral de toda estrutura do nosso LKM. Bom, temos aqui então todo nosso cabeçalho de includes de bibliotecas. V

0xi386 7 May 5, 2022
Loads a signed kernel driver which allows you to map any driver to kernel mode without any traces of the signed / mapped driver.

CosMapper Loads a signed kernel driver (signed with leaked cert) which allows you to map any driver to kernel mode without any traces of the signed /

null 120 Aug 12, 2022
NetHunter Kernel for the OnePlus 7 Series based on DragonHeart Kernel

Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel develop

cyberknight777 9 Mar 13, 2022
a unix inspired, non posix compliant micro kernel (more of a monolithic kernel for now though) that i am working on in my spare time

toy-kernel a unix inspired, non posix compliant micro kernel (more of a monolithic kernel for now though) that i am working on in my spare time prereq

czapek 13 Jun 14, 2022
A fast base64 module for React Native

react-native-quick-base64 A native implementation of Base64 in C++ for React Native. 4x faster than base64-js on an iPhone 11 Pro.

Takuya Matsuyama 200 Aug 6, 2022
This is a tool for software engineers to view,record and analyse data(sensor data and module data) In the process of software development.

![Contributors][Huang Jianyu] Statement 由于工具源码在网上公开,除使用部分开源项目代码外,其余代码均来自我个人,工具本身不包含公司的知识产权,所有与公司有关的内容均从软件包中移除,软件发布遵循Apache协议,任何人均可下载进行修改使用,如使用过程中出现任何问

HuangJianyu 34 May 5, 2022
USB to interfaces implementing MicroPython "machine" module functionalities on a computer.

u2if project u2if(USB to interfaces) is an attempt to implement some of the MicroPython "machine" module functionalities on a computer. The goal is to

null 93 Aug 14, 2022
An Xposed module to detect or reject applist requests

Hide My Applist About this module Although "It is incorrect to detect specific app's installation", yet not every app using root provides random packa

null 890 Aug 9, 2022
This project shows how to interface Nokia 5110 LCD with Esp32 module to show current prices of any cryptocurrency like Bitcoin, Dogecoin, etc

ESP32 Cryptocurreny Ticker Introduction This project shows how to interface Nokia 5110 LCD with Esp32 module to show current prices of any cryptocurre

Aniket Katkar 20 Jun 16, 2022
A test using a TTGO module (ESP32 + screen) which renders a 3d scene using pingo library

A simple 3D renderer tested and developed for the TTGO T-Display ESP32 board. The 3d renderer is: https://github.com/fededevi/pingo The 3D renderer is

fedevi 8 Apr 28, 2022
anthemtotheego 349 Aug 11, 2022