An error occurred while fetching folder content.
net: add support for netdev notifier error injection
Nikolay Aleksandrov authored
This module allows to insert errors in some of netdevice's notifier
events. All network drivers use these notifiers to signal various events
and to check if they are allowed, e.g. PRECHANGEMTU and CHANGEMTU
afterwards. Until recently I had to run failure tests by injecting
a custom module, but now this infrastructure makes it trivial to test
these failure paths. Some of the recent bugs I fixed were found using
this module.
Here's an example:
 $ cd /sys/kernel/debug/notifier-error-inject/netdev
 $ echo -22 > actions/NETDEV_CHANGEMTU/error
 $ ip link set eth0 mtu 1024
 RTNETLINK answers: Invalid argument

CC: Akinobu Mita <akinobu.mita@gmail.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: netdev <netdev@vger.kernel.org>
Signed-off-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
02fff96a
Name Last commit Last update
..
842 crypto: 842 - Add CRC and validation support
fonts fonts: Add 6x10 font
lz4 lz4: fix system halt at boot kernel on x86_64
lzo lzo: check for length overrun in variable length encoding.
mpi Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
raid6 md/raid6: delta syndrome for ARM NEON
reed_solomon lib: Remove unnecessary inclusions of asm/semaphore.h
xz lib/xz: enable all filters by default in Kconfig
zlib_deflate zlib_deflate/deftree: remove bi_reverse()
zlib_inflate zlib: clean up some dead code
.gitignore X.509: Implement simple static OID registry
Kconfig lib/Kconfig: ZLIB_DEFLATE must select BITREVERSE
Kconfig.debug net: add support for netdev notifier error injection
Kconfig.kasan mm, slub, kasan: enable user tracking by default with KASAN=y
Kconfig.kgdb kdb: Allow access to sensitive commands to be restricted by default
Kconfig.kmemcheck kmemcheck: depend on HAVE_ARCH_KMEMCHECK
Makefile net: add support for netdev notifier error injection
argv_split.c argv_split(): teach it to handle mutable strings
asn1_decoder.c ASN.1: Handle 'ANY OPTIONAL' in grammar
assoc_array.c assoc_array: Include rcupdate.h for call_rcu() definition
atomic64.c atomic: Provide atomic_{or,xor,and}
atomic64_test.c atomic: Add simple atomic_t tests
audit.c syscalls: implement execveat() system call
bcd.c usb/core: use bin2bcd() for bcdDevice in RH
bch.c lib: add shared BCH ECC library
bitmap.c
bitrev.c
bsearch.c
btree.c
bug.c
build_OID_registry
bust_spinlocks.c
check_signature.c
checksum.c
clz_ctz.c
clz_tab.c
cmdline.c
compat_audit.c
cordic.c
cpu-notifier-error-inject.c
cpu_rmap.c
cpumask.c
crc-ccitt.c
crc-itu-t.c
crc-t10dif.c
crc16.c
crc32.c
crc32defs.h
crc7.c
crc8.c
ctype.c
debug_info.c
debug_locks.c
debugobjects.c
dec_and_lock.c
decompress.c
decompress_bunzip2.c
decompress_inflate.c
decompress_unlz4.c
decompress_unlzma.c
decompress_unlzo.c
decompress_unxz.c
devres.c
digsig.c
div64.c
dma-debug.c
dump_stack.c
dynamic_debug.c
dynamic_queue_limits.c
earlycpio.c
extable.c
fault-inject.c
fdt.c
fdt_empty_tree.c
fdt_ro.c
fdt_rw.c
fdt_strerror.c
fdt_sw.c
fdt_wip.c
find_bit.c
flex_array.c
flex_proportions.c
gcd.c
gen_crc32table.c
genalloc.c
glob.c
halfmd4.c
hexdump.c
hweight.c
idr.c
inflate.c
int_sqrt.c
interval_tree.c
interval_tree_test.c
iomap.c
iomap_copy.c
iommu-common.c
iommu-helper.c
ioremap.c
iov_iter.c