Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6272362yba; Thu, 11 Apr 2019 16:07:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNG+Ogs5qwHZzIk8ZSofsU1cvm8wWkGI8d9guR0OoaC6HuO/AnMO8Lz0NWCkNrZfZAuicR X-Received: by 2002:a17:902:8bc3:: with SMTP id r3mr54406930plo.53.1555024028402; Thu, 11 Apr 2019 16:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555024028; cv=none; d=google.com; s=arc-20160816; b=eOtoAXnPmwb0/FKzJ6tGy9GmhNaQkgfYB/SNIM7bICEoDEPdIxMNTIbFIQFdocrb1E AcsTgs1KxxwAioF3z23l5Xuhb9gdNzN3iav5F+eXJwaEWGhKA4mTvV9RU8j8JbedqODD znvE1tSgnVbE7QrnSJgRHyCVjBkoJhGTYONwRFi5fTYDRffgbaq9ZqPeJwDj+VG4Um37 8AaTNez8vfMnz3WQXbiproqCaoj5HrEJ09SG7tbgYGbG80YVzLwHGtrs56dWwz2iJaCE vIgEF5o1KAXcoSAq7UrNxyCRQl88CmEshl+xzI8CMVD6jdLIAsWqXK/Fg9wfszRxnS9J 9zDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YMGgjTWph3NIvLbheuvGCqpJJRhXsKqBuXTEgH/si6M=; b=cbmHX2amHO0WivWybiOgvSVnkYtpKi0MRZI+IKwXWLidYeMToFuXQ0eJlOdldbcirZ Kq6TK4irbIc4+Yo3WepDMmzEVEMQmJBrmxHbtljRjePJ7kP3BSKGwejZztjPfIt6jt03 tAFrnJ0BTO1elnNms1ZVYrrewXqfft5sVhvEZNx505il5TS8mLIF3Qtz7SNdUNM78PVe tEqN+eOh954Ydbgfn/EariaaQCBDbjquDs1HE8r9axqUdlH7bOW0DFa8PfVyRmtvksSl mjmTFB/jIYCKkKkqX5RYyht8n7EyALwcwGhYgr2fgzkQTSnwbtgRz9k/w7k1ESqXRgfL bgmg== 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 3si21638109plo.300.2019.04.11.16.06.52; Thu, 11 Apr 2019 16:07:08 -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 S1726895AbfDKWS5 (ORCPT + 99 others); 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.