Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3162293yba; Tue, 16 Apr 2019 06:07:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ/V0m+S8rNvQus0tRjo2zQGXI4I7Zs7riVee02X47hPvHINEQibG1J7STBZIFB7grA6r7 X-Received: by 2002:a62:1d0d:: with SMTP id d13mr82884867pfd.96.1555420061324; Tue, 16 Apr 2019 06:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555420061; cv=none; d=google.com; s=arc-20160816; b=Fzc3Jh9q6hlPByOzTo2TexRNQ7smTYALfaF6eJdscbRiqkY+hYoT/YmOtGLqi2vP/H jp+NCKxaszDVlsAepdAEsvj1w2iTm8+TO6mht8qPA+kzR0Y+yXJJLVmJ09bc+lGjkGND v+o4Ycg1Sdwr2aQ9dj+PTjKTuifotzO/JYNzAtig2KP5/oee3XSWhKJbG6QIiu/s84A0 f4ZfaQ0iwxRcmqsoaO1khE0ZSMVTQKFqjpjdojwCGCzHEOevCIPsEg7trVJO0zsEiTPg G0Rs+n21WRR1+uCDtja+WfKmgr/vI7ZrZM2o1Dd32gqHEA1Nn1s6FPVmNvpz5BffxX7p ecrQ== 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=dyyODE0ttOiq2JOet6neCffQ3LW3uGHaT76cMdNhKQU=; b=XBXO88zkIoYZzO+qvt/YdSK0B9tqqinTDe4/WIp6m0LVnWBpVypuMdm2PCDOfBs3A5 uHfGP/t3JByRS+R8jevp02LftJZ3cVdZ0RGAPCnCb+PvTIwlpNTpXYrktO3Y6CnJT/Tt mKjZE5uf0SqS+4+pqfQk8qyuTATTUgXtwBtvuu1W+/QXH/7LURHsjK1OurNCLXmxAdIV p8IAD0UYLcqEO2IEo7lqsPEKcYuDWMCksXEkeRzNWDaYQkBgmNUgIshCWFkuGa4VB0VZ 4uF37JpJS5QEtkxw3KpfhR280Zk1PrR+DQdZ5PcznqiK8X9yFpidnDKisoz7yKUVve/R ikww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=eMBoAjAK; 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 31si25023306plz.315.2019.04.16.06.07.22; Tue, 16 Apr 2019 06:07:41 -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=@joelfernandes.org header.s=google header.b=eMBoAjAK; 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 S1729268AbfDPNEq (ORCPT + 99 others); Tue, 16 Apr 2019 09:04:46 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:39206 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbfDPNEq (ORCPT ); Tue, 16 Apr 2019 09:04:46 -0400 Received: by mail-qt1-f195.google.com with SMTP id t28so23132068qte.6 for ; Tue, 16 Apr 2019 06:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dyyODE0ttOiq2JOet6neCffQ3LW3uGHaT76cMdNhKQU=; b=eMBoAjAKEC2QPSkTtDC6zvFgkqallSe5jceNRkvWTHVIv0/CzW/7FA1R+eGoa7gVTr k8Mz1DmnuNoJN4ufsTxFiCwyOYbxTT1yYgm7cnF4SIi17fgl7gYwV3YF1xyyqZXdfI4f SGbGuBkJ8D2PgdfISiUuWqNPS1+V6K83Kjkm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dyyODE0ttOiq2JOet6neCffQ3LW3uGHaT76cMdNhKQU=; b=DLjqjhkg/Z3IApLGdOIblPX46tA2u4g/8C39nYmZhpvsGwPhTcJ/ecLk0/QP2VoYSJ 0+5IAc05fXKpowf9YtHb78LLfWUWw5hoX3/bUacFm4bf7/k4ir4wjq7TJvbjSkzsuy1a 8pYxhfAylBn7ZxHB+r4KfLbx/gl1doyfMFm6uDqiO1J9y6T4A4/SqSI4ofCwBOcmhSYu kBTmOY1XdJBco+4u7mdfzz3roy2EBGI0hraHo+AvGdOJmgdb0MBn/w6Vj2mUKH/YaF+E YdNHFWsLNnYQZZRznSlvKQdh7xdg5ehuiTOqhluN8FVjxtkdd8r7N9VA4K2Mp7On6AFC ZWbw== X-Gm-Message-State: APjAAAV8QfDtD0HM/xRWNnuujEBv6tjLABcES494/g903VD1uPQWnnZH AuyoaYHKv0bALBWPNeLWkcj5tQ== X-Received: by 2002:a0c:b5d0:: with SMTP id o16mr65052800qvf.187.1555419884823; Tue, 16 Apr 2019 06:04:44 -0700 (PDT) Received: from localhost ([2600:1003:b45e:46c8:3e5b:dc27:4ea5:df4a]) by smtp.gmail.com with ESMTPSA id x28sm34955986qtx.71.2019.04.16.06.04.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 06:04:43 -0700 (PDT) Date: Tue, 16 Apr 2019 13:04:40 +0000 From: Joel Fernandes To: Greg Kroah-Hartman Cc: Steven Rostedt , Kees Cook , Olof Johansson , Alexei Starovoitov , 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: <20190416130440.GA7944@localhost> References: <20190408203601.GF133872@google.com> <20190411031540.ehezr6kq7ouobpzx@ast-mbp.dhcp.thefacebook.com> <20190415104109.64d914f3@gandalf.local.home> <20190416083306.5646a687@gandalf.local.home> <20190416124939.GB6027@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416124939.GB6027@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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 02:49:39PM +0200, Greg Kroah-Hartman wrote: > 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. > I am ok with the suggestion of /sys/kernel for the archive. That also seems to fit well with the idea that the headers are kernel related and probably belong here more strictly speaking, than /proc. thanks, - Joel > thanks, > > greg k-h