https://github.com/torvalds/linux
Revision a4412fdd49dc011bcc2c0d81ac4cab7457092650 authored by Steven Rostedt (Google) on 21 November 2022, 15:44:03 UTC, committed by Linus Torvalds on 01 December 2022, 21:14:21 UTC
The config to be able to inject error codes into any function annotated
with ALLOW_ERROR_INJECTION() is enabled when FUNCTION_ERROR_INJECTION is
enabled.  But unfortunately, this is always enabled on x86 when KPROBES
is enabled, and there's no way to turn it off.

As kprobes is useful for observability of the kernel, it is useful to
have it enabled in production environments.  But error injection should
be avoided.  Add a prompt to the config to allow it to be disabled even
when kprobes is enabled, and get rid of the "def_bool y".

This is a kernel debug feature (it's in Kconfig.debug), and should have
never been something enabled by default.

Cc: stable@vger.kernel.org
Fixes: 540adea3809f6 ("error-injection: Separate error-injection from kprobe")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 355479c
History
Tip revision: a4412fdd49dc011bcc2c0d81ac4cab7457092650 authored by Steven Rostedt (Google) on 21 November 2022, 15:44:03 UTC
error-injection: Add prompt for function error injection
Tip revision: a4412fd
File Mode Size
blocklayout
filelayout
flexfilelayout
Kconfig -rw-r--r-- 6.4 KB
Makefile -rw-r--r-- 1.3 KB
cache_lib.c -rw-r--r-- 3.8 KB
cache_lib.h -rw-r--r-- 1.0 KB
callback.c -rw-r--r-- 10.2 KB
callback.h -rw-r--r-- 5.3 KB
callback_proc.c -rw-r--r-- 19.2 KB
callback_xdr.c -rw-r--r-- 27.1 KB
client.c -rw-r--r-- 35.0 KB
delegation.c -rw-r--r-- 39.8 KB
delegation.h -rw-r--r-- 3.5 KB
dir.c -rw-r--r-- 84.3 KB
direct.c -rw-r--r-- 25.6 KB
dns_resolve.c -rw-r--r-- 10.4 KB
dns_resolve.h -rw-r--r-- 859 bytes
export.c -rw-r--r-- 4.1 KB
file.c -rw-r--r-- 22.2 KB
fs_context.c -rw-r--r-- 39.7 KB
fscache.c -rw-r--r-- 9.4 KB
fscache.h -rw-r--r-- 4.3 KB
getroot.c -rw-r--r-- 4.4 KB
inode.c -rw-r--r-- 67.8 KB
internal.h -rw-r--r-- 28.1 KB
io.c -rw-r--r-- 4.1 KB
iostat.h -rw-r--r-- 1.8 KB
mount_clnt.c -rw-r--r-- 12.7 KB
namespace.c -rw-r--r-- 9.4 KB
netns.h -rw-r--r-- 1006 bytes
nfs.h -rw-r--r-- 1.0 KB
nfs2super.c -rw-r--r-- 610 bytes
nfs2xdr.c -rw-r--r-- 25.9 KB
nfs3_fs.h -rw-r--r-- 1.1 KB
nfs3acl.c -rw-r--r-- 8.2 KB
nfs3client.c -rw-r--r-- 3.2 KB
nfs3proc.c -rw-r--r-- 26.4 KB
nfs3super.c -rw-r--r-- 690 bytes
nfs3xdr.c -rw-r--r-- 55.8 KB
nfs42.h -rw-r--r-- 2.3 KB
nfs42proc.c -rw-r--r-- 36.9 KB
nfs42xattr.c -rw-r--r-- 25.4 KB
nfs42xdr.c -rw-r--r-- 41.4 KB
nfs4_fs.h -rw-r--r-- 22.9 KB
nfs4client.c -rw-r--r-- 34.6 KB
nfs4file.c -rw-r--r-- 11.2 KB
nfs4getroot.c -rw-r--r-- 1011 bytes
nfs4idmap.c -rw-r--r-- 20.1 KB
nfs4idmap.h -rw-r--r-- 2.7 KB
nfs4namespace.c -rw-r--r-- 13.8 KB
nfs4proc.c -rw-r--r-- 286.5 KB
nfs4renewd.c -rw-r--r-- 4.5 KB
nfs4session.c -rw-r--r-- 16.9 KB
nfs4session.h -rw-r--r-- 5.2 KB
nfs4state.c -rw-r--r-- 72.1 KB
nfs4super.c -rw-r--r-- 6.9 KB
nfs4sysctl.c -rw-r--r-- 1.4 KB
nfs4trace.c -rw-r--r-- 1.0 KB
nfs4trace.h -rw-r--r-- 68.3 KB
nfs4xdr.c -rw-r--r-- 201.2 KB
nfsroot.c -rw-r--r-- 9.7 KB
nfstrace.c -rw-r--r-- 428 bytes
nfstrace.h -rw-r--r-- 45.0 KB
pagelist.c -rw-r--r-- 37.3 KB
pnfs.c -rw-r--r-- 88.0 KB
pnfs.h -rw-r--r-- 27.7 KB
pnfs_dev.c -rw-r--r-- 10.1 KB
pnfs_nfs.c -rw-r--r-- 29.5 KB
proc.c -rw-r--r-- 19.4 KB
read.c -rw-r--r-- 11.3 KB
super.c -rw-r--r-- 37.2 KB
symlink.c -rw-r--r-- 1.9 KB
sysctl.c -rw-r--r-- 1.3 KB
sysfs.c -rw-r--r-- 4.3 KB
sysfs.h -rw-r--r-- 506 bytes
unlink.c -rw-r--r-- 14.3 KB
write.c -rw-r--r-- 57.4 KB

back to top