Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5423826yba; Wed, 10 Apr 2019 20:04:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqy61hbdwJUHyx5berIco7GVcYMXCrYh7QGCcXcFDuOp8X+dFa/9tcOyOhyb3CjBk4209L3D X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr48362217plr.43.1554951893238; Wed, 10 Apr 2019 20:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554951893; cv=none; d=google.com; s=arc-20160816; b=ZVqvjZPz8dSLslnNBbvC3qIEP4qYdsS58QduwdtO9NTh0A7J1j89mfiK2dURK5bD8N EZ51XnFNmxPAJXoAc+Kfoxa1bj1izkDFe5RiNNpmXDFypJX9i/wWZgEXq2YvkIKk+PTq m1hwDEPyjXE7InFfVDzECKWHEVIzHOaEvCzCqgd0PFoIDEQCi1smmWtCfvSy8zbp+Q7m CgeU+zTVWRk2pxX3VKFEnS/LAzBv4TKMhT48cVVXFWLMB5OYj9mCNE4XSHD982tZcavR TWYwK7CKO3vbcUj0aeiymw6fIWbobhlIrhC2G+WsntHJ/Hkk+X8GuguFcSRURxw9+arw bvKQ== 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=Pu0j+J/ORGFEIPGlC6ljPPGgSpXwSP1FGzovtDzUDtA=; b=HJYvaTFQ3afrMolG4SxXrVYBOpW7H/5KYISJDVyxhpwQxa8BOEKPf4ZAayNIVdbjVa rvA2h8IQI+YJbutEILuyYrh98v1v+e7gCAkWZkRFFSkaA9WeZD13JzqBFNmq6RszIkkN aWG8cXbkqIqOlI1nygANrd+fnjFRV9nl5Xchi8IQJOfBhrENaqpNyBQ3P3zI573jsJcN JY6vx1nQhgu/mgX8xGnuiRenGylYFbRdmfv/7tuciDDHf93yhrBNkOkaFt+FaWZyNDlF 2VZEVfJIukgaekYk6SYedGn/KrSr1UIjKrExEB5NO73EwSoUWZhlMRgxrOMGXuhBQQnd x/AA== 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 c10si7365381pla.231.2019.04.10.20.04.36; Wed, 10 Apr 2019 20:04:53 -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 S1726730AbfDKDDA convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Apr 2019 23:03:00 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37797 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbfDKDDA (ORCPT ); Wed, 10 Apr 2019 23:03:00 -0400 X-Originating-IP: 66.87.113.127 Received: from ip-28-167-31-127.pools.spcsdns.net (ip-66-87-113-127.tacmwa.spcsdns.net [66.87.113.127]) (Authenticated sender: josh@joshtriplett.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 06D18240002; Thu, 11 Apr 2019 03:02:51 +0000 (UTC) Date: Wed, 10 Apr 2019 20:02:47 -0700 In-Reply-To: References: <20190410224213.20651-1-okaya@kernel.org> <135E84E9-F068-44CB-B4F6-A5AC2F4CDE3D@joshtriplett.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 CC: Sinan Kaya , 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: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On April 10, 2019 4:24:18 PM PDT, Kees Cook wrote: >On Wed, Apr 10, 2019 at 4:22 PM Josh Triplett >wrote: >> >> 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. > >See earlier in the thread: code generation depends on >CONFIG_DEBUG_KERNEL now unfortunately. Then let's fix *that*, and get checkpatch to help enforce it in the future. EXPERT doesn't affect code generation, and neither should this.