From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58A9AC10F13 for ; Thu, 11 Apr 2019 22:18:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25C002146F for ; Thu, 11 Apr 2019 22:18:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbfDKWS5 (ORCPT ); Thu, 11 Apr 2019 18:18:57 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:53983 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbfDKWS5 (ORCPT ); Thu, 11 Apr 2019 18:18:57 -0400 Received: from localhost (unknown [134.134.139.76]) (Authenticated sender: josh@joshtriplett.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 846A7240003; Thu, 11 Apr 2019 22:18:47 +0000 (UTC) Date: Thu, 11 Apr 2019 15:18:45 -0700 From: Josh Triplett To: Kees Cook Cc: Masahiro Yamada , Andrew Morton , Sinan Kaya , LKML , "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 Subject: Re: [PATCH v3] init: Do not select DEBUG_KERNEL by default Message-ID: <20190411221844.GB8692@localhost> References: <20190411005634.8495-1-okaya@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 10:00:24AM -0700, Kees Cook wrote: > On Wed, Apr 10, 2019 at 10:34 PM Masahiro Yamada > wrote: > > > > On Thu, Apr 11, 2019 at 11:47 AM Kees Cook wrote: > > > > > > On Wed, Apr 10, 2019 at 5:56 PM 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. > > > > > > > > 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 > > > > > > Masahiro, should this go via your tree, or somewhere else? > > > > > > I think somewhere else. > > Okay. Andrew, can you take this? Echoing my comment from the previous thread: this does not seem like the right solution to me and it introduces a new problem. Please see my response to v2 for a quick alternative that would address the underlying bug, which is that some code generation depends on DEBUG_KERNEL.