linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] init: Do not select DEBUG_KERNEL by default
@ 2019-04-10 22:42 Sinan Kaya
  2019-04-10 22:58 ` Kees Cook
  0 siblings, 1 reply; 11+ messages in thread
From: Sinan Kaya @ 2019-04-10 22:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sinan Kaya, Masahiro Yamada, Andrew Morton, Kees Cook,
	Peter Zijlstra (Intel),
	Johannes Weiner, Nicholas Piggin, Mathieu Desnoyers,
	Vasily Gorbik, Adrian Reber, Richard Guy Briggs, Petr Mladek,
	Andy Shevchenko, Matthew Wilcox, Joe Lawrence, Randy Dunlap,
	Mikulas Patocka, Robin Murphy, Tetsuo Handa, Changbin Du

We can't seem to have a kernel with CONFIG_EXPERT set but
CONFIG_DEBUG_KERNEL unset these days.

While some of the features under the CONFIG_EXPERT require
CONFIG_DEBUG_KERNEL, it doesn't apply for all features.

It looks like CONFIG_KALLSYMS_ALL is the only feature that
requires CONFIG_DEBUG_KERNEL.

Select CONFIG_EXPERT when CONFIG_DEBUG is chosen but you can
still choose CONFIG_EXPERT without CONFIG_DEBUG.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 init/Kconfig      | 2 --
 lib/Kconfig.debug | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index 4592bf7997c0..37e10a8391a3 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1206,8 +1206,6 @@ config BPF
 
 menuconfig EXPERT
 	bool "Configure standard kernel features (expert users)"
-	# Unhide debug options, to make the on-by-default options visible
-	select DEBUG_KERNEL
 	help
 	  This option allows certain base kernel options and settings
           to be disabled or tweaked. This is for specialized
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 0d9e81779e37..9fbf3499ec8d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -434,6 +434,7 @@ config MAGIC_SYSRQ_SERIAL
 
 config DEBUG_KERNEL
 	bool "Kernel debugging"
+	default EXPERT
 	help
 	  Say Y here if you are developing drivers or trying to debug and
 	  identify kernel problems.
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-11 22:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10 22:42 [PATCH v2] init: Do not select DEBUG_KERNEL by default Sinan Kaya
2019-04-10 22:58 ` Kees Cook
2019-04-10 23:22   ` Josh Triplett
2019-04-10 23:24     ` Kees Cook
2019-04-11  3:02       ` Josh Triplett
2019-04-11  3:13         ` Sinan Kaya
2019-04-11 22:16           ` Josh Triplett
2019-04-11 22:21             ` Kees Cook
2019-04-11 22:27               ` Sinan Kaya
2019-04-11 22:34                 ` Josh Triplett
2019-04-11  3:44         ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).