Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5355139yba; Wed, 10 Apr 2019 17:57:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfFA1QlPhyMms6knJT5C6vMQnadvVu/s+o5DLZB9GabqYg5qH1DoBy5zZGdt8RJmFjpXi1 X-Received: by 2002:a63:dc50:: with SMTP id f16mr43845088pgj.396.1554944264796; Wed, 10 Apr 2019 17:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554944264; cv=none; d=google.com; s=arc-20160816; b=t3FPZlfgfKMEdagoEWLgk+q+3ZZEjc9Muxtf3uPOTSnNLzKY2hJAuL+YzQHtQV/Jxp gyyh1s2Cao7Pkl2C6ly0XciolglF5BD0AtGOeNd87FfIrAE76ViTwdzVwjwEB8iw1uVB yvb491/meJAjANW5jEV+pMqe9wbIRV9bfVvoD2o3TPDRKsDUNrd2tL1Vm6+PRSgVljqs q1mER4Jws8Irn2VjB7dE0OzySTxly4O17fxDefFtzWL1qjZNbpFEx6lLn4Fmu90PL2d+ Eo6HZ2ml++ZSr/6l5DbJmbNPF+KxsbSqdrOLL3CEfrDBeAMFa68lqpEDycmFapaaX/Mh 9vUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mWeeB17PzFlRMRo7PTkI5iiUEUWQZsRT7geMt69EZPY=; b=FWCCMJbR35x587YdLc5g0fhzv/5E5OSi7Gi7jIRpROaHHhta6AQfYAYM0DI7c+KG+J 25ls4Vq/SiIQxIErYaSP9BXxKs/DLv+C5yiVQ+l49G9XSaKT70WDNLMqR6PX9wLqe5iG pgF/FCRHn9EjcmPiOUa+26C+qs+varAj5s5BxxcgDZQ7gYeYrQb0Ndv1xWu2PruV7Xkc lZzswVbgA2/R2pY0ftABAntSfIEhhJfx6olJKxBbu+NpH0cc5zx2BHUch8S12qt/Tjb2 JWD92jlR6vjMQZiGXxJVyNZyTcgp63qaUn0d9JwFdA1puzaLPa65p+3k7cZ/9EPV/DQe FQBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LD4t0a48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si28304823pgt.35.2019.04.10.17.57.27; Wed, 10 Apr 2019 17:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LD4t0a48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfDKA4n (ORCPT + 99 others); Wed, 10 Apr 2019 20:56:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:33520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbfDKA4n (ORCPT ); Wed, 10 Apr 2019 20:56:43 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [23.96.42.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9FFF2133D; Thu, 11 Apr 2019 00:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554944202; bh=io5NEAQfgAvMGRdPDhryXPbaw+3JlIwYudWgeTMhcp8=; h=From:To:Cc:Subject:Date:From; b=LD4t0a48krGc3L2oc9vnK+7kJnQJdIQaKrEbsta/oH80dlZSQNOvQ0knWHwqIh3yJ xhjlzL/N1225mHbL9LkRXyDwiYKg9qgl7EZPi0edaRzFJBMEK+obt85934ynFGPlR4 3FC/FfZxU+S9U3VMQTmL9v6PIoSHTWC3CExrhNv8= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, Sinan Kaya , Kees Cook , Masahiro Yamada , Andrew Morton , "Peter Zijlstra (Intel)" , Johannes Weiner , Nicholas Piggin , Mathieu Desnoyers , Vasily Gorbik , Adrian Reber , Richard Guy Briggs , Andy Shevchenko , Petr Mladek , Joe Lawrence , Matthew Wilcox , Randy Dunlap , Mikulas Patocka , Robin Murphy , Tetsuo Handa , Changbin Du Subject: [PATCH v3] init: Do not select DEBUG_KERNEL by default Date: Thu, 11 Apr 2019 00:56:31 +0000 Message-Id: <20190411005634.8495-1-okaya@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_KERNEL is chosen but you can still choose CONFIG_EXPERT without CONFIG_DEBUG_KERNEL. Signed-off-by: Sinan Kaya Reviewed-by: Kees Cook --- 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