Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5301470yba; Wed, 10 Apr 2019 16:23:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1GNGPGBwVWX/Cx2J3llsVfgoBFerR0hct5cRJ5LcJGhXfcvS+LwEW8BQFQJ+ofm/pMp7m X-Received: by 2002:a62:415d:: with SMTP id o90mr46316196pfa.236.1554938618329; Wed, 10 Apr 2019 16:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554938618; cv=none; d=google.com; s=arc-20160816; b=idAsvoDd31Wo+i34UWHebmUwRLDT3j7SxNpEQtIHw2vIzmsiVRWMBbhngs238F7PqT 1tAYtnEtgv7uXNm7PqrqKmhE3Hsi2CSRUCnCQmOoMyVIN1C6Ew9uTWB8bWYOArdRUrTO x95fd2843FajLwlwYabISieDUjpD++a8lyxNBpT3gwUDM3+YjEfjSv7W2QGA3xKNEVTy 87IsZzWqKv6cZzn4tm7wICVwXwY52lF5+7JwkL+SdFbnTtwwKqC+gq6AxLzg86/gJ2Me V2JkJtYbgDuLGeRLyLIUMIBRtLpWtFxEaJY5fM8BcjCASLh7dR/dWhrb6U3tbPg7BzU0 mFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date; bh=DNL1KYPY6kjDarKuQGILO070G79mVq8vz+W/iWSu/CA=; b=FOThHtja8EwNF3kB5lCX6JCMTxb02XCjEy2cR7CO2YeZG6w6f6MeRZvpg6CHsg64Y0 OAi72edeBv+fpxPIhuX6MWzw8Ej8E3XkHbBmicdAfVgjVgQsDbYq63AS1BGBYrmmQocg qanTNhIpINP9RPOYft2lZ0xnyOykd3gOJVdfA8aCjAh2KCXztiPb6Ks4AxsExYDuwENK sfk4OKJybWV2W7pyWfPjUqsRSV2D59kns9OgujGkgb1misUSuPCD/nSQgU31ieABTw2d u8rSw5A+IuEwMl9V1KbEzgfjsyWw0c2e7aG/p+dik1aCu6mo5NNMTbIDjJpiUHSi/ZUF tjtA== ARC-Authentication-Results: i=1; mx.google.com; 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 x7si3502839plr.247.2019.04.10.16.23.21; Wed, 10 Apr 2019 16:23:38 -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; 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 S1726564AbfDJXWp convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Apr 2019 19:22:45 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43007 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfDJXWp (ORCPT ); Wed, 10 Apr 2019 19:22:45 -0400 X-Originating-IP: 172.56.42.226 Received: from [IPv6:2607:fb90:8063:d541:dd67:a354:e9bb:effe] (unknown [172.56.42.226]) (Authenticated sender: josh@joshtriplett.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 719E224000A; Wed, 10 Apr 2019 23:22:35 +0000 (UTC) Date: Wed, 10 Apr 2019 16:22:29 -0700 In-Reply-To: References: <20190410224213.20651-1-okaya@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH v2] init: Do not select DEBUG_KERNEL by default To: Kees Cook , Sinan Kaya CC: LKML , Masahiro Yamada , Andrew Morton , "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 , Frederic Weisbecker , Sam Ravnborg , Ingo Molnar From: Josh Triplett Message-ID: <135E84E9-F068-44CB-B4F6-A5AC2F4CDE3D@joshtriplett.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On April 10, 2019 3:58:55 PM PDT, Kees Cook wrote: >On Wed, Apr 10, 2019 at 3:42 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 is chosen but you can > >Typo: CONFIG_DEBUG_KERNEL > >> still choose CONFIG_EXPERT without CONFIG_DEBUG. > >same. > >> >> Signed-off-by: Sinan Kaya > >But with those fixed, looks good to me. Adding Josh (and others) to CC >since he originally added the linkage to EXPERT in commit >f505c553dbe2. CONFIG_DEBUG_KERNEL shouldn't affect code generation in any way; it should only make more options appear in kconfig. I originally added this to ensure that features you might want to *disable* aren't hidden, as part of the tinification effort. What specific problem does having CONFIG_DEBUG_KERNEL enabled cause for you? I'd still prefer to have a single switch for "don't hide things I might want to disable", rather than several. This would also need checking to make sure it doesn't grow tinyconfig.