Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5302648yba; Wed, 10 Apr 2019 16:25:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaEmWnoLZ0mkF+3mKnIP+ZfpaHEH5Xh243NDJTEzwLusxAUFMiYi3vI8J0dIUqaZP6khyi X-Received: by 2002:a65:64d3:: with SMTP id t19mr43534940pgv.57.1554938737466; Wed, 10 Apr 2019 16:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554938737; cv=none; d=google.com; s=arc-20160816; b=I2UqbcX0hb1EU9pnR1x7GJmhAhUUy/kUb8El0yNwd0uHoIo3pSkDE4ZhMWF/cMR/vl qZEg/DfKIOUAJDS9M1mWHmBA/+L9v5uaHnQ567P6ASwLllRIAQADU4tbCS8dLIGNwiBT pjpbeoaQQFzkHHA5h/mw/O6so7kdGVxohZq73dcd6tCQschB+f7dlPp4QUqPvT6tpSqT 48maoxHI2ZQMlukPiYga43D5E/b0w54lcvUTXUzeVaxipj8Vaz9wcxP+xMvv7UwJAgn6 Y3gpMvLuOExaARch7dDgL+zrwY7Dfc+kSksVC4kEA1V0Oax/RXQbDvhcPwYA3R6Q5FAl FDxg== 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; bh=XMdRKn3t3H36AxpYfbOfyxvAGjXlvqO7f6OfKCgDBOs=; b=0tSZJmliznJU5qmZgZ025pLloT1AsL5LOu8uIPEP7+pThAPI5hRel5sFnBaWv+BveZ X/PlAVHjTnyVTi1nPSTvigGiTHjJ9fSpbR2HtKqI4qi3J2tivceofxmQW8H34eqqReg3 +aTF6uu4A8a6VJ6TRRFcuMC+s73JDt80CVzNxcaq8cboGIkEYAARUFhDqrADhypFaQOa CVDFji/5I95IXmiUnKLYjWIwI7FLZnrJnKIjnsPObiE9fYLENdi/0ILQwc7XDhArimyF 9c3ihcmdyWfiFrMZCXqayvKsVbI6V4v0OJMVYbl/MFkw8R0B6T+KvbZ4Sj/nlFpZk/5c vY8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=N8eqtqo1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si32235716plt.179.2019.04.10.16.25.21; Wed, 10 Apr 2019 16:25:37 -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=@chromium.org header.s=google header.b=N8eqtqo1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbfDJXYd (ORCPT + 99 others); Wed, 10 Apr 2019 19:24:33 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:42873 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfDJXYc (ORCPT ); Wed, 10 Apr 2019 19:24:32 -0400 Received: by mail-vs1-f67.google.com with SMTP id f15so2393229vsk.9 for ; Wed, 10 Apr 2019 16:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XMdRKn3t3H36AxpYfbOfyxvAGjXlvqO7f6OfKCgDBOs=; b=N8eqtqo1pGrtDLoEUN6e6a2nDm0Rlc4+JhBF+/z1R9sXTZsoDpqshRmf4UJ1vKKEqm aVcM3IG6fkyf1g6AWYUHes0FRKLg2FG3H+IMk3qHTRsZirKgL1MhHIJybSIfgcycveJ7 5beOhG6aDjjFtzpDuNj/WN0sAX7Q1Dy1ZMQBE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XMdRKn3t3H36AxpYfbOfyxvAGjXlvqO7f6OfKCgDBOs=; b=sOdsXdvw1z8eV7Xh+RSQWWS2WB1OkMHHUmrNDqg6y1oVtZS0+vVLI/f/1QbG84H5bC oYQ2ixwGK+ZSON53INtg6pkq99dws3Miff2PIegUW7L5jVfaOgAJMzFrPdIbSRQTazrJ cvPRGJ9Uy/LSPortFtmlicGIhUSgIBDJKIYrIWWRl0KJdbB9ecoAW6z6QnehxM47jhMH fukJZLHjImGSxsQ+9/P+H/6Jx1Glp1uEarP85DQqEoeUkP09SkDuya6UVK35/taDSocc 20/zZTvpD1KjIZIWKRN5kcOlSVfzrjpbu/sNOKd+3jku+zrDaqwkoOfhmjNc/Mq1BreX LaAw== X-Gm-Message-State: APjAAAU5y4iVcp6PBbXSIoiPT8Z21wwhx8YAOA0iwBaeZm6UU3sADbvI SVOrtQbTlvczG3TpE9TzeJnz+7yHdd4= X-Received: by 2002:a67:f843:: with SMTP id b3mr26434707vsp.152.1554938671520; Wed, 10 Apr 2019 16:24:31 -0700 (PDT) Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com. [209.85.217.51]) by smtp.gmail.com with ESMTPSA id j71sm29920067vsd.0.2019.04.10.16.24.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 16:24:30 -0700 (PDT) Received: by mail-vs1-f51.google.com with SMTP id f15so2393189vsk.9 for ; Wed, 10 Apr 2019 16:24:29 -0700 (PDT) X-Received: by 2002:a67:f04e:: with SMTP id q14mr26387737vsm.133.1554938669436; Wed, 10 Apr 2019 16:24:29 -0700 (PDT) MIME-Version: 1.0 References: <20190410224213.20651-1-okaya@kernel.org> <135E84E9-F068-44CB-B4F6-A5AC2F4CDE3D@joshtriplett.org> In-Reply-To: <135E84E9-F068-44CB-B4F6-A5AC2F4CDE3D@joshtriplett.org> From: Kees Cook Date: Wed, 10 Apr 2019 16:24:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] init: Do not select DEBUG_KERNEL by default To: Josh Triplett 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 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 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. -- Kees Cook