[PATCH 3/3] tweak: Add option for selecting tweak options for syzkaller's testing

From: Tetsuo Handa
Date: Sat Apr 18 2020 - 10:12:16 EST


When a kernel developer adds a kernel config option, they will not go
and update configs on all external testing systems. This problem is also
common for "enable all boot tests that can run on this kernel", or
"configure a 'standard' debug build". Currently doing these things
require all of expertise, sacred knowledge, checking all configs
one-by-one as well as checking every new kernel patch and that needs to
be done by everybody doing any kernel testing.

In order to reduce the burden of maintaining kernel config options, this
patch introduces a kernel config option which will select tweak options
when building kernels for syzkaller's testing.

Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
---
lib/Kconfig.tewak | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/lib/Kconfig.tewak b/lib/Kconfig.tewak
index a1d038bcc2a5..95020a56bbfc 100644
--- a/lib/Kconfig.tewak
+++ b/lib/Kconfig.tewak
@@ -10,6 +10,12 @@ menuconfig TWEAK_KERNEL_BEHAVIOR

if TWEAK_KERNEL_BEHAVIOR

+config TWEAK_FOR_SYZKALLER_TESTING
+ bool "Select all tewak options suitable for syzkaller testing"
+ select TWEAK_DISABLE_KBD_K_SPEC_HANDLER
+ help
+ Say N unless you are building kernels for syzkaller's testing.
+
config TWEAK_DISABLE_KBD_K_SPEC_HANDLER
bool "Disable k_spec() function in drivers/tty/vt/keyboard.c"
help
--
2.18.2