Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5501431yba; Wed, 10 Apr 2019 22:33:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8pxiDkYW9hFR+Aj4FL1bsZLrAHGNSdoT6MvpFuNaiasNMgR/vO+78o5ypEODTvFmUf7/T X-Received: by 2002:aa7:8251:: with SMTP id e17mr30049210pfn.147.1554960820059; Wed, 10 Apr 2019 22:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554960820; cv=none; d=google.com; s=arc-20160816; b=LWK3DNMYrWRnT8HaaoXFgLa/Yi8NR2juGhydPBDt1Ir9irbwvSvmHNbdLZMQFTc9Zv AlMulFEjF6Hs6I+Cld7GY/wFQzLM3RpN8140BzNwFv0egbIa0JHI2qr+nOZoFCywiKVl /cB916o2DcHiLNu4hTVhLY01yP9AxBKOeLns9LCTlmDxMCWQXDkC1CkQDGEc26m/5Rcs e56JgjqInOobY3wcVI4SFB1AqIp8OS2neViGrj8JwsbUxVx2wT3r2GypbnpQ7mDODJuI JaZHYfXjz7xAvYOzdVAif7FJgl5n8xIMiSuIplT8wm2EJn84E0opzp1z8W1YPDz+50R1 EXjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=jXlFVG4S2JW5MRoJEjXHRxG1pxHks11F7LB4CFGFPxo=; b=A4OtunN+lnnYQZyYOtlWhhJb9Nz7q95PUb/mMcIufnXzVAKGRRLkqRivMQJhzM/wuL D5IHciabSSPE2XUTqa+er77d5pWYScm0DWc7QZitf2y5vBHO3t5xmf3RuFtV+xt6WWkG S/wSGMFbICehRwpiTC03+6yFeH0ORmR8mDSlk4xCA/vyjfX43BRJeptpx4sqddmrbJCQ x3OGVmmRNMQQS7ZGVuRqsf/1ZV+Z/3Zsem80CcvGFyYRKaEiW/86Zde9JR9zcNrzQovs GEskQYjuiTSLSmotZ53pJzdc+l9PV7PE+Qmaz5iD49mub7BDxSEOtfvwFdRdK9yQ3x2h n0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CKK7J7rj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l190si19527598pgd.146.2019.04.10.22.33.24; Wed, 10 Apr 2019 22:33:40 -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=@nifty.com header.s=dec2015msa header.b=CKK7J7rj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbfDKFcU (ORCPT + 99 others); Thu, 11 Apr 2019 01:32:20 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:17299 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfDKFcU (ORCPT ); Thu, 11 Apr 2019 01:32:20 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x3B5WFeX025608 for ; Thu, 11 Apr 2019 14:32:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x3B5WFeX025608 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554960736; bh=jXlFVG4S2JW5MRoJEjXHRxG1pxHks11F7LB4CFGFPxo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CKK7J7rjQMivDAsCLJrjrTJUv5HhaXi+gwqmkC2B1g/uHWiUP08ukzschapvN+fLU z6Yo56CW4wL+494ssrBd5AGVw+JPqwxGY24Q74j1UuJXlt9AjN/VASbcX9byKiDfe0 evsmEQIJsXDXqdZRxx1IycLoJGgrVwKaDvgimTbRjia3ApAPG3jRHVtK9hYPhslR77 7Z1ZePZKILuBUwi+cgL8Nyw4p7HDmn+03n9vFCaBKjdA3m4ZaAQL7SZPcF1Tn6ehyV bqJOzql0yZPHIYFDKSiaFQv7jnPF1GQtuEdVc4157qzg/aTWKGC3ELfT9BPytd6LJ4 WBNtjOkgwjdng== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id l17so1613430uar.4 for ; Wed, 10 Apr 2019 22:32:16 -0700 (PDT) X-Gm-Message-State: APjAAAWicfAfb1DU2eJQTA4UmcEhbNAMv+XvtNC8F+ioJAhyESWt2PNQ ZfYKElKW1DXlqhI4nAP8zpK6AVo5fMYjarAdbgQ= X-Received: by 2002:ab0:65c7:: with SMTP id n7mr25201260uaq.3.1554960735124; Wed, 10 Apr 2019 22:32:15 -0700 (PDT) MIME-Version: 1.0 References: <20190411005634.8495-1-okaya@kernel.org> In-Reply-To: <20190411005634.8495-1-okaya@kernel.org> From: Masahiro Yamada Date: Thu, 11 Apr 2019 14:31:38 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] init: Do not select DEBUG_KERNEL by default To: Sinan Kaya Cc: Linux Kernel Mailing List , Josh Triplett , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 11, 2019 at 9:59 AM Sinan Kaya wrote: > > 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. Which part of KALLSYMS_ALL code 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 > -- Best Regards Masahiro Yamada