Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5553563imb; Thu, 7 Mar 2019 19:19:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzHMzTcGi63mEZ0+JRP2DoL74mlA8O6N3POo2PNRQVrGa+h+HCfX2QXYQwpNxqLPyQQTSm/ X-Received: by 2002:a62:4793:: with SMTP id p19mr16603568pfi.76.1552015150730; Thu, 07 Mar 2019 19:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552015150; cv=none; d=google.com; s=arc-20160816; b=zuZ/F8/kBt/ctnqU+usfPm6qoc2RtH6daijm8ophDjIz2Pe7Lh1NC0uRIqAUVZwq3Y SL4g4vsOPFuq5fh4+w6nDQbzKQOfl85APuLnHUygHrA/g8XsOGdIaSIepClcAPuM0QcG tqXwrin8HMbJ+wyTmsKMuLgKLAebJxYBoYAiCMAmpUpXrFORqCqolfQF7LJ/5eNdiw+b BabiXwabvgs1qS1+a+oT0JJKi8IOM0noDUszjFqpB8kuQfaq0DWh/V4wlrMm1DGgQJeR Q7T4aEmACCyQXh9J7Gdil6WPexxJjV5DHFBYU1L4P6OHSC1ZCzL+EZivM5R/XfCMyGYs NFxQ== 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=P6BnX6q8Q7uCLbDnlfvpLIMBNcO1CjPWFYfVb8zYwEY=; b=RYiLtFHm4Aas3R+NDGBcCb04zI9cHqks0B3vyp6OvfcNg6fD+MRF0iJGV+dg/dXiHj jn3jafeM9RnWurMz203yV2yfl/RKSGVxd4VC5MNdPbvTMBl3BJ8UkBARzrHDAcTLF3oX zUV5bzY/k1F/P3Cnk4JaZ5Zdnu+G6yJzNl8DWnxadSRi/W0bvG9NFbbaQQzMFH58dmzR FMc79HwNKVwOsHO+DM6bjiZ4A3rEy7AQXAl/3WsOyyNXu00tQRtzL3b04JKcQ4+aJBzm 4Na7eLpB1Y+F20fh9Hoz/l4ObNtidjtHXONjtKsGu4fF/uOEy2XsotmUYu8t2tVA4Pom DqwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=PJK0HI7k; 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 l187si5815746pfc.43.2019.03.07.19.18.54; Thu, 07 Mar 2019 19:19:10 -0800 (PST) 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=PJK0HI7k; 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 S1726520AbfCHDQ0 (ORCPT + 99 others); Thu, 7 Mar 2019 22:16:26 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43204 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbfCHDQ0 (ORCPT ); Thu, 7 Mar 2019 22:16:26 -0500 Received: by mail-qt1-f194.google.com with SMTP id d16so1676461qtn.10 for ; Thu, 07 Mar 2019 19:16:25 -0800 (PST) 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=P6BnX6q8Q7uCLbDnlfvpLIMBNcO1CjPWFYfVb8zYwEY=; b=PJK0HI7kkgv4qbex9w+rGyKZswQTqIzMfn0Xum3GJheRgFSgj1qvx4S16xZ3GWQWmR W0LYYNBGM3LuZLgaLMSfnpVlQvmkwy3c0L3QIv2vEOrqJ+DWKKfZtnTNjNOks1OlkOPf 3OcUXXNTVe4rFirGvmeQzrPP+pKiW5HYVZ5cA= 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=P6BnX6q8Q7uCLbDnlfvpLIMBNcO1CjPWFYfVb8zYwEY=; b=F3bI/7QZXK9JopCV6b6EGemRjgG7m6C4KVWb4HMCWh2LFfdwPXNmayp0BALWi4yPxC Q5+VzKHCPrf2oYjhYrdKgGKoygLXyCBPHZrCsdNbF7vBnjEZZYG8rf/bP5DNUoaKOnYI jghETe4DN6aQwoSLStIS4zp5lJlwoD0SHl1Okf9HKVspLiq0F7xEVMjEORVaFkJBiXm7 HxU0WUapVf6jBQXVqmq3U1GUCPJ7R3+pvTLjFkSg2WDTtlHq83fGlqUDZx8+J+NpTrXI Qgf3Qf97RBE01PUIqo75hBLJo1kDB7CRI+8qkU0wLf9lGUQOkYD5XgBQ+5fDgZeutfpY 2L0g== X-Gm-Message-State: APjAAAWFj6Jjno0RcXECbL7U0sH908FRfToK2qGEwZvEsjhFVebyJg9D yfCGoD8cyl9GCs4T4r5fErNNEA== X-Received: by 2002:aed:22d6:: with SMTP id q22mr13056831qtc.171.1552014985215; Thu, 07 Mar 2019 19:16:25 -0800 (PST) Received: from localhost ([2620:0:1004:1100:cca9:fccc:8667:9bdc]) by smtp.gmail.com with ESMTPSA id d80sm3276700qkg.83.2019.03.07.19.16.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 19:16:24 -0800 (PST) Date: Thu, 7 Mar 2019 22:16:23 -0500 From: Joel Fernandes To: hpa@zytor.com Cc: "Enrico Weigelt, metux IT consult" , Greg KH , Daniel Colascione , Pavel Machek , linux-kernel , Andrew Morton , ast@kernel.org, atish patra , Borislav Petkov , Ingo Molnar , Jan Kara , Jonathan Corbet , Karim Yaghmour , Kees Cook , kernel-team@android.com, "open list:DOCUMENTATION" , Manoj Rao , Masahiro Yamada , Paul McKenney , "Peter Zijlstra (Intel)" , Randy Dunlap , rostedt@goodmis.org, Thomas Gleixner , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , yhs@fb.com Subject: Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel Message-ID: <20190308031623.GA129529@google.com> References: <754146f0-8b57-8644-81c1-528b5ca7dba1@zytor.com> <0c46ab5f-8bd6-6916-fc4a-b6f00d456011@metux.net> <5ebec282-57b0-6ebe-0876-ce0dd7b0c11c@metux.net> <20190307205505.GB30028@kroah.com> <5e558126-9038-1ca5-4519-7b5864ca9fa1@metux.net> <20190307231207.GA51897@google.com> <6773AB0F-C197-4465-80D2-3F7DA28EF790@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6773AB0F-C197-4465-80D2-3F7DA28EF790@zytor.com> 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, Mar 07, 2019 at 03:40:37PM -0800, hpa@zytor.com wrote: > On March 7, 2019 3:12:07 PM PST, Joel Fernandes wrote: > >Enrico, > > > >On Thu, Mar 07, 2019 at 11:11:22PM +0100, Enrico Weigelt, metux IT > >consult wrote: > >> On 07.03.19 21:55, Greg KH wrote: > >> > >> > Ick, no, no more squashfs please, let's just kill that mess once > >and for > >> > all :) > >> > >> okay, then: s/squashfs/whatever_fs_image_or_archive_you_like/; > >> > >> > Again, putting this in a simple compressed tar image allows anyone > >to do > >> > whatever they need to with this. If they want a full filesystem, > >> > uncompress it and use it there. If they just want it in-memory > >where > >> > they can uncompress it and then discard it, that works too. > >> > >> And let me stress the point: doesn't need any kernel changes at all, > >> when it's just a file in the same place where the .ko's live. > > > >Yes, but you're missing the point that some people would also opt to > >build it > >into the kernel during their development/debugging (Config=y). For such > >folks, they don't want to update the FS with anything during debug runs > >either. Your "whole same place where the .ko lives" doesn't address > >Daniel's > >usecase. You may say "initrd", but this is a much cleaner solution to > >that > >IMO. There is no initrd needed and the path to the header files will be > >at a > >standard location that is already pre-decided by the kernel. > > > >As Greg said, you are welcome to keep it disabled for yourself if you > >don't > >want it. This doesn't affect anyone else who doesn't use it. > > You do know that initrd can be built into the kernel, right? Yes of course, Hans. I meant the proposed solution is cleaner than the initrd (built-in or otherwise). The proc file location is fixed and all tools can just refer to it than worrying about where in the initrd are the headers located. thanks! - Joel