linux/Documentation
Albert van der Linde 2c739ced58 lib, include/linux: add usercopy failure capability
Patch series "add fault injection to user memory access", v3.

The goal of this series is to improve testing of fault-tolerance in usages
of user memory access functions, by adding support for fault injection.

syzkaller/syzbot are using the existing fault injection modes and will use
this particular feature also.

The first patch adds failure injection capability for usercopy functions.
The second changes usercopy functions to use this new failure capability
(copy_from_user, ...).  The third patch adds get/put/clear_user failures
to x86.

This patch (of 3):

Add a failure injection capability to improve testing of fault-tolerance
in usages of user memory access functions.

Add CONFIG_FAULT_INJECTION_USERCOPY to enable faults in usercopy
functions.  The should_fail_usercopy function is to be called by these
functions (copy_from_user, get_user, ...) in order to fail or not.

Signed-off-by: Albert van der Linde <alinde@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20200831171733.955393-1-alinde@google.com
Link: http://lkml.kernel.org/r/20200831171733.955393-2-alinde@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-10-16 11:11:22 -07:00
..
ABI dmaengine updates for v5.10-rc1 2020-10-15 14:33:52 -07:00
accounting
admin-guide lib, include/linux: add usercopy failure capability 2020-10-16 11:11:22 -07:00
arm As hoped, things calmed down for docs this cycle; fewer changes and almost 2020-10-12 16:21:29 -07:00
arm64 As hoped, things calmed down for docs this cycle; fewer changes and almost 2020-10-12 16:21:29 -07:00
block
bpf docs/bpf: Remove source code links 2020-09-14 18:46:54 -07:00
cdrom
core-api XArray: add xas_split 2020-10-16 11:11:15 -07:00
cpu-freq
crypto crypto: af_alg - add extra parameters for DRBG interface 2020-09-25 17:48:52 +10:00
dev-tools linux-kselftest-next-5.10-rc1 2020-10-15 15:14:32 -07:00
devicetree dmaengine updates for v5.10-rc1 2020-10-15 14:33:52 -07:00
doc-guide docs: Document cross-referencing between documentation pages 2020-09-16 11:09:51 -06:00
driver-api drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
fault-injection lib, include/linux: add usercopy failure capability 2020-10-16 11:11:22 -07:00
fb drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
features
filesystems Driver Core patches for 5.10-rc1 2020-10-14 16:09:32 -07:00
firmware-guide
firmware_class
fpga
gpu drm/amdgpu: Add initial kernel documentation for the amd_ip_block_type structure. v3 2020-09-22 17:37:38 -04:00
hid
hwmon - New Drivers 2020-10-14 15:56:58 -07:00
i2c
ia64
ide
iio
infiniband
input
isdn
kbuild kbuild: doc: describe proper script invocation 2020-10-13 18:38:26 -07:00
kernel-hacking
leds
litmus-tests
livepatch
locking
m68k
maintainer
mhi
mips dt: Remove booting-without-of.rst 2020-10-13 13:33:16 -05:00
misc-devices
netlabel
networking SPDX patches for 5.10-rc1 2020-10-14 16:19:42 -07:00
nios2
nvdimm
openrisc
parisc
PCI Documentation: better locations for sysfs-pci, sysfs-tagging 2020-10-09 09:33:23 -06:00
pcmcia
power
powerpc Devicetree updates for v5.10: 2020-10-14 15:31:58 -07:00
process docs: programming-languages: refresh blurb on clang support 2020-10-05 09:44:11 -06:00
RCU
riscv
s390
scheduler
scsi SPDX patches for 5.10-rc1 2020-10-14 16:19:42 -07:00
security
sh dt: Remove booting-without-of.rst 2020-10-13 13:33:16 -05:00
sound
sparc
sphinx docs: Add automatic cross-reference for documentation pages 2020-09-16 11:09:51 -06:00
sphinx-static
spi
staging
target
timers
trace kernel-clone-v5.9 2020-10-14 14:32:52 -07:00
translations Documentation: Chinese translation of Documentation/arm64/amu.rst 2020-09-28 15:24:24 -06:00
usb
userspace-api drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
virt Char/Misc driver patches for 5.10-rc1 2020-10-15 10:01:51 -07:00
vm docs/vm: fix 'mm_count' vs 'mm_users' counter confusion 2020-10-13 18:38:32 -07:00
w1 docs: w1: w1_therm: Fix broken xref, mistakes, clarify text 2020-10-08 09:47:15 +02:00
watchdog
x86 Devicetree updates for v5.10: 2020-10-14 15:31:58 -07:00
xtensa
.gitignore
asm-annotations.rst
atomic_bitops.txt
atomic_t.txt
Changes
CodingStyle
conf.py
COPYING-logo
docutils.conf
dontdiff
index.rst
Kconfig
logo.gif
Makefile
memory-barriers.txt
SubmittingPatches
watch_queue.rst