Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (22 sloc) 0.973 kb
e375743 @nelhage Initial import
authored
1 NULLDEREF -- A module for playing with kernel NULL pointer dereferences
2
3 BUILDING
4 This module should build against any remotely recent 2.6 kernel. To
5 build, you'll need the kernel headers for your kernel installed. On
6 Debian or Ubuntu, try:
7 # apt-get install linux-headers-$(uname -r)
8 on Fedora, try:
9 # yum install kernel-devel
10
11 Once you've got those, just run 'make' to produce a 'nullderef.ko'
12 file.
13
14 USING
15
89af022 @mina86 Simplified module to use sysfs instead of debugfs
mina86 authored
16 nullderef uses sysfs to export its hooks. Simply
17 # insmod nullderef.ko
e375743 @nelhage Initial import
authored
18
89af022 @mina86 Simplified module to use sysfs instead of debugfs
mina86 authored
19 You shuld now have a /sys/module/nullderef/parameters/ directory,
20 containing two files, "read", and "call".
e375743 @nelhage Initial import
authored
21
89af022 @mina86 Simplified module to use sysfs instead of debugfs
mina86 authored
22 Reading from either of these files will result in a NULL pointer
23 dereference in the kernel. "read" will simply try to read a NULL
24 pointer. "call" will read a function pointer from the NULL address,
25 and then attempt to call through the resulting pointer.
e375743 @nelhage Initial import
authored
26
ba22f29 @nelhage Some small README fixes.
authored
27 Once you're done crashing your kernel, if your machine is still
a53edfc @nelhage Oops, spurious "q"
authored
28 stable, you can remove the module using:
ba22f29 @nelhage Some small README fixes.
authored
29 # rmmod nullderef
Something went wrong with that request. Please try again.