Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3153181yba; Tue, 16 Apr 2019 05:58:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDy9740x6Nnw9padNG3ZoBdH88K3ouapN6hiJL0SNc72X2oquQ7B0eaSeXQkgS44l0MPW6 X-Received: by 2002:a63:2045:: with SMTP id r5mr61770691pgm.394.1555419535078; Tue, 16 Apr 2019 05:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555419535; cv=none; d=google.com; s=arc-20160816; b=HworiNhk7fOkdLlpO88i3YRDyNGMBUYzl6lPJqrRSHsGKoM53Ybp8FGSRKU4HAtGyj lIPysM053Cl7q4UAMV8egOtrMtn9o8TsEsOtvqDcBzZsvXdj2fCR6GXv0iXWoV62UuUO V4eB1KYGaXl0mxkFoeGH3wiqPlzMu0xmWs3SfUYqaR3b5pyrG/9aOONfkaKiBAEX4Y8J Vb29UV9D19ZatgyInEZu04kN0kkW/xbH9jcqwW0o4z6+UYO2mEGmHpjTqMi3kTjokXTi tAdC8wIRSmJ4foYsmTNRR6OKFmAJwNPrOmRSr8FcYSi3aBp00jR1Ugfl6Yxn4255aWZx Rt1A== 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:dkim-signature; bh=tzWfH79SmjnjIbDOOegRdANbD4YmH2P7EZ1FCu+XTnE=; b=Fb7etcseFRsIsmRlFkilTCLMhpqSnTsguTAQ5f8AopV/wDjzgOwDZcBcOiC/TIBOen IqiyBRUM5TuC/thKjlTgJGepMx1XQ3Nuw4VVSKBknFlLV4zD9pxwKzTQ1IP7yc/h7zuC skw9us43krNONg6dWLm+5GXL6xHpGHZaOJDDeNL1ApC3S9j1p9BG5N+zBdXejbx1KH7J g88/bOQsIPNQoWsbzJOPHmrIEVVp0Jg8USBNqqVIvGnNUJajjNnTQHNezBI3anqFbLF7 lIxU+oj/u2OiOFd1ZcsaBO9sqTEm0HLNH0MQIv876ipKEV7ug49fRbllqYJCforPJa1f 6eIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oZLyDtCi; 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 f64si17583987plf.258.2019.04.16.05.58.39; Tue, 16 Apr 2019 05:58:55 -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=@kernel.org header.s=default header.b=oZLyDtCi; 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 S1728613AbfDPM5r (ORCPT + 99 others); Tue, 16 Apr 2019 08:57:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727228AbfDPM5r (ORCPT ); Tue, 16 Apr 2019 08:57:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5EC8D20693; Tue, 16 Apr 2019 12:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555419466; bh=rVFCT/7z1dzUEfDYIvNbTwLF1jFDrW1MAhnZvh3Jdeg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oZLyDtCiZ6BkEYojHRFqfEzInZTRtGs37eozEhc8I8nLzYa089ssVXIbH8pwU1B0H JOgmy8sCFg+Euy4yxfqVtb0nRPnw0jZ4PN/QqGdoITe07d9MtLTLXaVh2+FbQSiCqh i1f3Tf1eD6D+tis/myQY7bzSZFKMymIachlO94HE= Date: Tue, 16 Apr 2019 14:49:39 +0200 From: Greg Kroah-Hartman To: Steven Rostedt Cc: Kees Cook , Olof Johansson , Alexei Starovoitov , Joel Fernandes , Joel Fernandes , Linux Kernel Mailing List , Qais Yousef , Dietmar Eggemann , Manoj Rao , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Android Kernel Team , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Masahiro Yamada , Masami Hiramatsu , Randy Dunlap , Shuah Khan , Yonghong Song Subject: Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier Message-ID: <20190416124939.GB6027@kroah.com> References: <20190408203601.GF133872@google.com> <20190411031540.ehezr6kq7ouobpzx@ast-mbp.dhcp.thefacebook.com> <20190415104109.64d914f3@gandalf.local.home> <20190416083306.5646a687@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416083306.5646a687@gandalf.local.home> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 08:33:06AM -0400, Steven Rostedt wrote: > On Mon, 15 Apr 2019 22:50:10 -0500 > Kees Cook wrote: > > > On Mon, Apr 15, 2019 at 9:41 AM Steven Rostedt wrote: > > > I agree with this assessment. We shouldn't use config.gz as precedence > > > for this solution. config.gz should have been in debugfs to begin with, > > > but I don't believe debugfs was around when config.gz was introduced. > > > (Don't have time to look into the history of the two). > > > > I don't agree with this: /proc/config.gz is used by a lot of tools > > that do sanity-check of running systems. This isn't _debugging_... > > it's verifying correct kernel builds. It's a fancy version of checking > > /proc/version. > > > > Then we should perhaps make a new file system call tarballs ;-) > > /sys/kernel/tarballs/ > > and place everything there. That way it removes it from /proc (which is > the worse place for that) and also makes it something other than debug. > That's what I did for tracefs. As horrible as that suggestion is, it does kind of make sense :) We can't put this in debugfs as that's only for debugging and systems should never have that mounted for normal operations (users want to build ebpf programs), and /proc really should be for processes but that horse is long left the barn. But, I'm willing to consider putting this either in a system-fs-like filesystem, or just in sysfs itself, we do have /sys/kernel/ to play around in if the main objection is that we should not be cluttering up /proc with stuff like this. thanks, greg k-h