Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6107786imb; Fri, 8 Mar 2019 09:24:44 -0800 (PST) X-Google-Smtp-Source: APXvYqy4TuRMnUfLHtn45JL3IoVPANa8eR/JLCw/iHAmApwespefmHt2JrEcoTJxA/fzVE77pFMi X-Received: by 2002:a17:902:bd87:: with SMTP id q7mr19458828pls.227.1552065884246; Fri, 08 Mar 2019 09:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552065884; cv=none; d=google.com; s=arc-20160816; b=Qw+iZkzcPr7WkN6iPU6ezreV3fKaI5Vsu7CRFXEf8zQrsgjPl/bPYI3CMCy8mUqOhP FV47j7A7M9fzpY2KeBbOVbPCoKgArNAihDobjA6XBvnnJkEFGR0PD+ROUO8DUBSjV6h3 JYXhHVbe4iyPuCUDulhrK+tD1eEXsETc9Ds0WIzPjoXLn3Yi1v1w0NOkIIrFq/B9PWFh /aZLJDO5V+u3IC7f5JPDEz+JIh/0E/PLZqrsy7+h0kvSVgUbyNnH0qY5vaLeygVDofOt GgZdDCiqhp7fCQG+/CdgAWE3GdAamQG1n3AGU4d+TS4fiBC7Qn7ulgyB8WhW/FjTR+Gf LOTQ== 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=ZZFjr3i+pohBo1Cq/ZOzvG7GXUUjZ0n4he0gcI5tuAM=; b=RE3WrI27guCihePU2TezMUMcP0i78qYxAjWR79yS+0LrDWGOughxhz8tC6JsNWtjJZ 74JshzpjcIAWSl/nQqoqKp0N8sR+3KhxnKwdxZ322MKMp4C5pL4puFt9eCjtYVBo7mB4 dYDOxml7vXKBeZW9KrAtY4AQvVgn55Pnxx27PciC30OoHEZuhDqlq0TSqJQOiR34XRJt yoUcuqawvT9ajMIVqy7Nn5hdBeV2Y+kpIZDWQNQ/mKTNCnucFacmZxOy9RylaLlxBqtH oaIrtVFQKUqWwkauYz6hBxcv4aj9EA723z2d6vsrH3kOzfdDzj05slw2Hhc7e64uNVm4 iicA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FosBzl01; 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 f11si7219826plo.96.2019.03.08.09.24.28; Fri, 08 Mar 2019 09:24:44 -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=@kernel.org header.s=default header.b=FosBzl01; 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 S1728109AbfCHRFC (ORCPT + 99 others); Fri, 8 Mar 2019 12:05:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:47748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfCHRFB (ORCPT ); Fri, 8 Mar 2019 12:05:01 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 B6D142146F; Fri, 8 Mar 2019 17:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552064700; bh=0KmKBB5hUOmbSa2Z0IuEZtfFdYqKhcvEQl3K1X8k4/w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FosBzl01qp/vRSugyk2U2vOFOjmJrmb1Pc14HKnsjkXtN/YgiYOvhpZIM9FsXShhy ma+sOnUx5t9VPKpw5KnFsaypJv5qEMtXUQV2sY+Iw9KlKjZakt3mUTEz85cUc8gOHg WEFcYFy9REp/YrJqvh0dheWDCjvPSUq4EW+xp2yA= Date: Fri, 8 Mar 2019 15:04:49 +0100 From: Greg KH To: "Enrico Weigelt, metux IT consult" Cc: Joel Fernandes , Geert Uytterhoeven , LKML , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Dietmar Eggemann , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Kees Cook , Android Kernel Team , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Manoj Rao , Masahiro Yamada , Masami Hiramatsu , Qais Yousef , Randy Dunlap , Steven Rostedt , Shuah Khan , Yonghong Song Subject: Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel Message-ID: <20190308140449.GD25768@kroah.com> References: <20190301160856.129678-1-joel@joelfernandes.org> <20190307150343.GB258852@google.com> <05942dfd-b05d-0a26-f8e4-85e2a73b8feb@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05942dfd-b05d-0a26-f8e4-85e2a73b8feb@metux.net> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 08, 2019 at 02:57:24PM +0100, Enrico Weigelt, metux IT consult wrote: > On 08.03.19 14:42, Joel Fernandes wrote: > > Hi folks, > > > That sounds like it could be useful. I don't see any reason off the > > top why that would not be possible to add to the list of archived > > files in the future. The patch allows populating the list of files > > from Kbuild using ikh_file_list variable. > > It seems the whole thing's going into a direction where a whole own > subtopic is coming up: compressed built-in filesystem. > > Haven't had a deeper thought about it yet, whether or not existing > filesystems like squashfs, initramfs, etc are the right thing for that, > or something new should be invented, but a generic mechanism for > compiled-in compressed (ro) filesystems could also be interesting > for very small devices, that perhaps even dont need any persistence. > > Some requirements coming up in mind: > > 1. it shall be possible to have any number of instances - possibly by > separate modules. > 2. it shall be possible to use an bootloader/firmware provided image > (so it can serve as initrd) > 2. data should stay compressed as long as possible, but uncompressed > data might be cached - do decompression on-demand > 3. only needs to be ro (write access could be done via unionfs+friends) > 4. it shall be swappable (if swap is enabled) > > In that scenario, these in-kernel headers would just one consumer, > I can imagine lots of others. I too want a pony :) Until then, I think this feature should not be bikeshedded to death. It fits a real need, is simple (modulo the Kbuild interactions), and is optional for those that do not wish to waste the memory. thanks, greg k-h