linux-xiaomi-chiron/tools/testing/selftests
Eric Biggers 23756e551f selftests: kmod: test disabling module autoloading
Test that request_module() fails with -ENOENT when
/proc/sys/kernel/modprobe contains (a) a nonexistent path, and (b) an
empty path.

Case (b) is a regression test for the patch "kmod: make request_module()
return an error when autoloading is disabled".

Tested with 'kmod.sh -t 0010 && kmod.sh -t 0011', and also simply with
'kmod.sh' to run all kmod tests.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jeff Vander Stoep <jeffv@google.com>
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: NeilBrown <neilb@suse.com>
Link: http://lkml.kernel.org/r/20200312202552.241885-5-ebiggers@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-04-10 15:36:22 -07:00
..
android SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
arm64
bpf SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
breakpoints
capabilities
cgroup SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
clone3 SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
cpu-hotplug
cpufreq
dmabuf-heaps
drivers SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
efivarfs
exec
filesystems kselftest: introduce new epoll test case 2020-04-07 10:43:44 -07:00
firmware
ftrace New tracing features: 2020-04-05 10:36:18 -07:00
futex
gpio
ia64
intel_pstate
ipc
ir
kcmp
kexec
kmod selftests: kmod: test disabling module autoloading 2020-04-10 15:36:22 -07:00
kselftest
kvm SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
lib
livepatch
lkdtm
locking
media_tests
membarrier
memfd SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
memory-hotplug
mount
mqueue
net SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
netfilter
nsfs
ntb
openat2
pid_namespace
pidfd threads-v5.7 2020-04-04 10:08:18 -07:00
powerpc powerpc updates for 5.7 #2 2020-04-09 11:01:42 -07:00
prctl
proc
pstore
ptp
ptrace SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
rcutorture SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
resctrl
rseq
rtc
safesetid
seccomp SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
sigaltstack
size
sparc64
splice
static_keys
sync
sysctl
tc-testing SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
timens SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
timers
tmpfs
tpm2
uevent
user
vDSO
vm userfaultfd: selftests: add write-protect test 2020-04-07 10:43:40 -07:00
watchdog
wireguard SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
x86 SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
zram
.gitignore SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
gen_kselftest_tar.sh
kselftest.h
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
lib.mk linux-kselftest-5.7-rc1 2020-04-01 16:09:12 -07:00
Makefile threads-v5.7 2020-04-04 10:08:18 -07:00