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
..
lib/842
lib/fonts
lib/lz4
lib/lzo
lib/mpi
lib/raid6
lib/reed_solomon
lib/xz
lib/zlib_deflate
lib/zlib_inflate
lib/.gitignore genksyms: migrate parser to implicit rules
lib/Kconfig
lib/Kconfig.debug
lib/Kconfig.kasan
lib/Kconfig.kgdb
lib/Kconfig.kmemcheck
lib/Makefile scripts/genksyms: clean lex/yacc generated files
lib/argv_split.c
lib/asn1_decoder.c
lib/assoc_array.c
lib/atomic64.c
lib/atomic64_test.c
lib/audit.c
lib/bcd.c
lib/bch.c
lib/bitmap.c
lib/bitrev.c
lib/bsearch.c
lib/btree.c
lib/bug.c
lib/build_OID_registry
lib/bust_spinlocks.c
lib/check_signature.c
lib/checksum.c
lib/clz_ctz.c
lib/clz_tab.c
lib/cmdline.c
lib/compat_audit.c
lib/cordic.c
lib/cpu-notifier-error-inject.c
lib/cpu_rmap.c
lib/cpumask.c
lib/crc-ccitt.c
lib/crc-itu-t.c
lib/crc-t10dif.c
lib/crc16.c
lib/crc32.c
lib/crc32defs.h
lib/crc7.c
lib/crc8.c
lib/ctype.c
lib/debug_info.c
lib/debug_locks.c
lib/debugobjects.c
lib/dec_and_lock.c
lib/decompress.c
lib/decompress_bunzip2.c
lib/decompress_inflate.c
lib/decompress_unlz4.c
lib/decompress_unlzma.c
lib/decompress_unlzo.c
lib/decompress_unxz.c
lib/devres.c
lib/digsig.c
lib/div64.c
lib/dma-debug.c
lib/dump_stack.c
lib/dynamic_debug.c
lib/dynamic_queue_limits.c
lib/earlycpio.c
lib/extable.c
lib/fault-inject.c
lib/fdt.c
lib/fdt_empty_tree.c
lib/fdt_ro.c
lib/fdt_rw.c
lib/fdt_strerror.c
lib/fdt_sw.c
lib/fdt_wip.c
lib/find_bit.c
lib/flex_array.c
lib/flex_proportions.c
lib/gcd.c
lib/gen_crc32table.c
lib/genalloc.c
lib/glob.c
lib/halfmd4.c
lib/hexdump.c
lib/hweight.c
lib/idr.c
lib/inflate.c
lib/int_sqrt.c
lib/interval_tree.c
lib/interval_tree_test.c
lib/iomap.c
lib/iomap_copy.c
lib/iommu-common.c
lib/iommu-helper.c
lib/ioremap.c
lib/iov_iter.c