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
Tip revision: a4412fdd49dc011bcc2c0d81ac4cab7457092650 authored by Steven Rostedt (Google) on 21 November 2022, 15:44:03 UTC
error-injection: Add prompt for function error injection
error-injection: Add prompt for function error injection
Tip revision: a4412fd
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 366 bytes |
advise.c | -rw-r--r-- | 2.1 KB |
advise.h | -rw-r--r-- | 316 bytes |
alloc_cache.h | -rw-r--r-- | 1.1 KB |
cancel.c | -rw-r--r-- | 7.2 KB |
cancel.h | -rw-r--r-- | 579 bytes |
epoll.c | -rw-r--r-- | 1.5 KB |
epoll.h | -rw-r--r-- | 213 bytes |
fdinfo.c | -rw-r--r-- | 6.5 KB |
fdinfo.h | -rw-r--r-- | 100 bytes |
filetable.c | -rw-r--r-- | 4.4 KB |
filetable.h | -rw-r--r-- | 2.1 KB |
fs.c | -rw-r--r-- | 6.6 KB |
fs.h | -rw-r--r-- | 929 bytes |
io-wq.c | -rw-r--r-- | 33.4 KB |
io-wq.h | -rw-r--r-- | 2.0 KB |
io_uring.c | -rw-r--r-- | 106.1 KB |
io_uring.h | -rw-r--r-- | 10.0 KB |
kbuf.c | -rw-r--r-- | 13.2 KB |
kbuf.h | -rw-r--r-- | 3.6 KB |
msg_ring.c | -rw-r--r-- | 4.1 KB |
msg_ring.h | -rw-r--r-- | 178 bytes |
net.c | -rw-r--r-- | 35.8 KB |
net.h | -rw-r--r-- | 2.2 KB |
nop.c | -rw-r--r-- | 498 bytes |
nop.h | -rw-r--r-- | 168 bytes |
notif.c | -rw-r--r-- | 1.8 KB |
notif.h | -rw-r--r-- | 896 bytes |
opdef.c | -rw-r--r-- | 11.9 KB |
opdef.h | -rw-r--r-- | 1.3 KB |
openclose.c | -rw-r--r-- | 6.1 KB |
openclose.h | -rw-r--r-- | 596 bytes |
poll.c | -rw-r--r-- | 27.3 KB |
poll.h | -rw-r--r-- | 1006 bytes |
refs.h | -rw-r--r-- | 1.2 KB |
rsrc.c | -rw-r--r-- | 31.4 KB |
rsrc.h | -rw-r--r-- | 4.5 KB |
rw.c | -rw-r--r-- | 27.1 KB |
rw.h | -rw-r--r-- | 705 bytes |
slist.h | -rw-r--r-- | 3.0 KB |
splice.c | -rw-r--r-- | 2.9 KB |
splice.h | -rw-r--r-- | 306 bytes |
sqpoll.c | -rw-r--r-- | 9.5 KB |
sqpoll.h | -rw-r--r-- | 753 bytes |
statx.c | -rw-r--r-- | 1.6 KB |
statx.h | -rw-r--r-- | 217 bytes |
sync.c | -rw-r--r-- | 2.7 KB |
sync.h | -rw-r--r-- | 460 bytes |
tctx.c | -rw-r--r-- | 7.2 KB |
tctx.h | -rw-r--r-- | 992 bytes |
timeout.c | -rw-r--r-- | 16.6 KB |
timeout.h | -rw-r--r-- | 1.2 KB |
uring_cmd.c | -rw-r--r-- | 4.0 KB |
uring_cmd.h | -rw-r--r-- | 494 bytes |
xattr.c | -rw-r--r-- | 5.5 KB |
xattr.h | -rw-r--r-- | 654 bytes |
Computing file changes ...