Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3188616yba; Tue, 16 Apr 2019 06:35:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxxpl0RXtmPQalem1kHmwB67xyQ4uG157fBX/JemWv/jFBKnlOmAfrIYB0A93/VlGmZvsK X-Received: by 2002:a17:902:d705:: with SMTP id w5mr545908ply.200.1555421703495; Tue, 16 Apr 2019 06:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555421703; cv=none; d=google.com; s=arc-20160816; b=fqK9SZBPqebfjyWZ8Rp8kH1QgQx3R45XKlAzEaRb1WTwqI+cUfObN4QY+QTS4EbBoZ R9QlP3+YJ7O1V4aHtevv/R1HYI+7LMpeuLfiD20/YOt1++tigSjZh52VuxHzZzAkz2rC Xi6P4jLiJ3kIZrMkxswisyKO7/rS7yDKRPFdI8l/3Bj2fJ1ryDbqbBPISCs8m9fVCzIb 1qU4cqFPAwglw3xpJRgFQgFRJFMK1XI2AavwFxWNubPP9z/YgOS4a+NfjfoTTjMPlox0 gQ6lStX8dZP7c4LQR1fYziQ7m19zsJku+CdK7WlNWixUGfAlCETm28UGJQgtCus3HnVi 198g== 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=odSzkSdVVDMrp1iglvGJ98S0QhuDfS3FFnuPWo+DzR0=; b=skR0Kf4hWihNjo1DX3wYSicrpRWLbTf7Ss1AfQUqKpd5VUUBhspSaFHaqiUxYXaUc9 kdE6kBjkA1VPYz4EbzP8AebppbzYCzL4aCUdjA4ePxDEmJaBJnMMhDB5qcDTK3CRCN+2 9Cyxu7dAJdHu/KnAwnkEEEgoPM1CcCSJVyYEgMfxFc8knC5wVJLsWMO9Krb/zE2bEwBR 5T/J6G42De9lnmLORNffPs6lar4V2XLXT7e3hNyO3Y3UFgUhw0D+OYsSzmnRQxuFnejF yRNyU9wreR1iSd3OtI87w6mV9LOf+ggsbP4r0mE8Tr+pNY2SzJoaFuM1OGh9w/xlTl0S 7I+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@opersys-com.20150623.gappssmtp.com header.s=20150623 header.b=K4yJeduj; 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 s20si37335845pgs.509.2019.04.16.06.34.47; Tue, 16 Apr 2019 06:35:03 -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=@opersys-com.20150623.gappssmtp.com header.s=20150623 header.b=K4yJeduj; 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 S1727569AbfDPNco (ORCPT + 99 others); Tue, 16 Apr 2019 09:32:44 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39729 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfDPNcn (ORCPT ); Tue, 16 Apr 2019 09:32:43 -0400 Received: by mail-qt1-f193.google.com with SMTP id t28so23249538qte.6 for ; Tue, 16 Apr 2019 06:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opersys-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=odSzkSdVVDMrp1iglvGJ98S0QhuDfS3FFnuPWo+DzR0=; b=K4yJedujazT2+D+W9M8CKJXdHM9f/3FSMY6OheDldEQWbCObFCvm4Lf6AbI8QTSCbq ubogMNCLIohdc6raGbdJjeDzggOf3HizDPVW7OEqVTMwDaXikLuOq3UKF+xhH/jVpBG7 c2FVfY4WOzt/qr0EaKtvmFLYW4iF/b/RWrLIXHBIJiQxvLzfLFVaamkesPNQZJEH+o0S wqCSnzi9E5yObzyn0vk7AFkTt+pQHWJJsiAah5HnAShVVG9LoGp6kD1RUU23vXnkFU23 Ki8czyDVGTxkNqNGQog0ImEXt7+hiinfsqtxwKjdF9vCoq15Py5ThddHvK5+trJCsPIg 24Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=odSzkSdVVDMrp1iglvGJ98S0QhuDfS3FFnuPWo+DzR0=; b=JBo5bYZ7g4diKd02Kbs2o+IQhcj+LINE1MWDeWK2ge5Jwk1B5OyB4rFkKbHGyhpIdD ZcRk6PWpLL+cAFWTTPzqMtPpYmpfjmjZPTayq3p3wwVZU247M2WRzmyahfbYJz0EeLH1 WCyvGVzRka7vGgWvjLqIF9QIdn2z31eN9J91TFOT+tNnlcEhKVg+6asZT+FDa+U0IoBM qV/QWpyTh6PeMc4kCaruBsOYVpVLa7KIuKJUCoZsvP/88caT7y7NnQmlSZ+p9EFBZbIT 05hgNlDJWKk1w51xVzdr61s/qR5HgCagTua6LGwZzz1I5n0K1jmc7Tuvh33SYa6bqCOD vndQ== X-Gm-Message-State: APjAAAVDBPj3Tbr5sY92IRTDA7s0Wz60adLbZqY/K5nzR4LAz0wF3QZN a1OO++JGj7ahs61gBDdrL05SDA== X-Received: by 2002:ac8:1c2c:: with SMTP id a41mr67533327qtk.292.1555421561844; Tue, 16 Apr 2019 06:32:41 -0700 (PDT) Received: from [192.168.202.103] (modemcable170.15-70-69.static.videotron.ca. [69.70.15.170]) by smtp.googlemail.com with ESMTPSA id n41sm37858449qtf.63.2019.04.16.06.32.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 06:32:39 -0700 (PDT) Subject: Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier To: Joel Fernandes , 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 , 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 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> <20190416130440.GA7944@localhost> From: Karim Yaghmour Message-ID: Date: Tue, 16 Apr 2019 09:32:37 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190416130440.GA7944@localhost> Content-Type: text/plain; charset=utf-8; format=flowed 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/16/19 9:04 AM, Joel Fernandes wrote: > 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. This makes sense. And if it alleviates concerns regarding extending /proc ABIs then might as well switch to this. Olof, what do you think of this? -- Karim Yaghmour CEO - Opersys inc. / www.opersys.com http://twitter.com/karimyaghmour