Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5446100yba; Wed, 10 Apr 2019 20:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6xni4SNNlapsbP6OBJp3Iw+DbgbRh2Ug9AZx4E2IuVWTiB1nUzdqYt9++FwUDx0NX4L1/ X-Received: by 2002:a17:902:1123:: with SMTP id d32mr29381696pla.213.1554954527953; Wed, 10 Apr 2019 20:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554954527; cv=none; d=google.com; s=arc-20160816; b=tzmMfzhv/2HlzX1EAHwsW6OoHqkXlnRpziBq1ECfiz8qdEHHl5JqiJnzpPkjGnjelY CR2YMRciClmMwfS+bskFaffVNDJu/VM6Hvd5Q8miUn1zEwtrfM8K3Zyz2TSGViM+1aMv 5RcCmU/kmzfPgIoa4Ad5UeynOQL4XKb0l0SEA/fDb94aWnfP6bT5DHpCtyfc7Q9EwCP9 eXs9dz6JVMYH3pU7+B/L8oW6uJ8CDK3asimoivo3eTv9ziO/MjV0DO7U57tGmSPimU2S 2QISFcTN51ZROLt+ct+1S9gBX4cc0X15pcTBgKRM1UvLW4dWbcI7OWVFb9A/wHYSyzgZ IrhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uKfRStAyrP58fhGtk2XSLwMywPdjGRfGVFF6P6t+7cs=; b=y6ut+AmdaDUtw5UlgClfVnEoJly01AlwZpaxBP59GB4Pix7mXtHfou8NFcYXuCH/Nw EU4ILI2+ny0l6kpbfuTk25yMUoOrQWvTw+RiELX8ZGSxIrMSWAGe7A4UsO7yEeEKZV/K Nx2Q8iqYQ5/7Wujn+nNvQ7nI/P5F80+GJD4AC8d2mqMYwCAqn8XOnJsm55QBDBauJS9O kAqmBdUEXkj3Z+PwIoMoKSaHQb8KBps0G11LTLE83d4W0AkWqdXQTaYgyLae0PzbZfuS 44tTSB3odyfYPKLKpq78apLfSkSsetG4YY/9snENF495AlCEB3sAjLBAPxLph+lCqXVu jsVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jlAnuO3f; 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 n15si34028218pgg.308.2019.04.10.20.48.30; Wed, 10 Apr 2019 20:48:47 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jlAnuO3f; 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 S1726689AbfDKDqa (ORCPT + 99 others); Wed, 10 Apr 2019 23:46:30 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59994 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfDKDqa (ORCPT ); Wed, 10 Apr 2019 23:46:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uKfRStAyrP58fhGtk2XSLwMywPdjGRfGVFF6P6t+7cs=; b=jlAnuO3f3hip6CyPfh3KqSSD9y hicJm6QXXI55iLK2eLLFkRUkBZv5Q6zpXTy6KwYQ3vfUr49qcq3T4W9+ivpJrAbZlJN7sIhBjgwuc UVy21ln9uhd9DhLrJyLQN5VT2iHbJTb+Kapd8BZmnbw9E6DpjbCLXd1sWB/00FkaZsMPKww1XRkJ2 hKOOaHUZOE0ruZS5bSMBPaAzDqe2c6qxEIVC87xa3qaHPB34zM9gcEOc8rKw1J+QJJCvJTzFXFMwP Q/tr8DHYtUvu7/naeO9J8BJ0PAqGNZj/cxDX9WnAEr1ORe6eIJG1JNdVnVhOIyZuSi64GiOFnaHSV mc/aAfBA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEQdY-0006Ue-9z; Thu, 11 Apr 2019 03:44:28 +0000 Subject: Re: [PATCH v2] init: Do not select DEBUG_KERNEL by default To: Josh Triplett , 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 , Mikulas Patocka , Robin Murphy , Tetsuo Handa , Changbin Du , Frederic Weisbecker , Sam Ravnborg , Ingo Molnar References: <20190410224213.20651-1-okaya@kernel.org> <135E84E9-F068-44CB-B4F6-A5AC2F4CDE3D@joshtriplett.org> From: Randy Dunlap Message-ID: Date: Wed, 10 Apr 2019 20:44:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/19 8:02 PM, Josh Triplett wrote: > 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. > checkpatch is not an enforcer. It takes maintainers to do that. -- ~Randy