Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2165282imc; Tue, 12 Mar 2019 08:16:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTqHWk+sl6IzbRoNccbWfF/hEFr4+cZFAhp+TZgjIMZY1HP+5k+Z/81MwnNoWoY1hKNrYb X-Received: by 2002:aa7:9310:: with SMTP id 16mr39110928pfj.84.1552403794803; Tue, 12 Mar 2019 08:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552403794; cv=none; d=google.com; s=arc-20160816; b=Gii9JzgaUTY6yhyWi3mJP5vlVPRsXjW8e+nkuE/lXaHX0umlXXCtQUv1nsRWKj2ewq ndKhKYWn4x7L26KAkCsIKkUPzM2AC9VTTL/QAlGXLNac8XBIjYPQQaWzYMqvP9xZMyxU 7+bpUgD4vrLI3apSvcwNPeHKJ9tK4KmgZB9S86KMpPrbw6Ny1zss2KJ9Y5UPMx9QmqDg GaKFj6LD//rWqr3mzF4i1cztis8FBwgwIo+TvnrZaD9bRWJX+Q+fwQcYPGRlDySsq1s+ K1hoCfCSU8VDE2DOiLHTHA8EPx29QZP+D3jS7h7fSwc1emxi0sBBETU2YePNTrgvTE5G Nqiw== 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=FZ2NM1YKpyJJZYoLdhw2cHDKJcHkXzpSBjLOhSn/aJ8=; b=CdSXXFK7sFACm4eRlH6hJLG5hqy0NJt9HVLKfWvNnXfVBrMvqQUbiroO1ijoCE5Gm/ 5lNd3/mnkwNfz6EXzTMZ2SZDPgI0yLFjhT8X2GWfMOfTJq62pilONGuN+rSj9nD5pGcF PItv9krQ2Y/ocITIZpF+fX3w/9CMQwYMpfhB2ppRe6DLgi3i8zPoKah6xNEfbMv9zyHz o+3KYJsXxr0nF8/xTPdIpJfIYJtA63oJ9LlRXMEM8iryZHq4POS30VvmY1xUYNzfauSG pd6V9UNXRjBPK1/7pHW1pjbvkvzbttMSn47sU8vOKoGxELunWl8oQRc9dqlYnoIgcU5m byZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@opersys-com.20150623.gappssmtp.com header.s=20150623 header.b=nBwSQar2; 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 r27si7870168pgl.316.2019.03.12.08.16.18; Tue, 12 Mar 2019 08:16:34 -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=nBwSQar2; 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 S1726904AbfCLPPa (ORCPT + 99 others); Tue, 12 Mar 2019 11:15:30 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35641 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfCLPP3 (ORCPT ); Tue, 12 Mar 2019 11:15:29 -0400 Received: by mail-pg1-f196.google.com with SMTP id e17so2080273pgd.2 for ; Tue, 12 Mar 2019 08:15:28 -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=FZ2NM1YKpyJJZYoLdhw2cHDKJcHkXzpSBjLOhSn/aJ8=; b=nBwSQar2U7UBxqKU5ysnwQdbngSqBwZbx1rLquE03XH+omIkIDB/JnSPamjEmZev/6 JI6bOCKtGC3hFMEenZfucVjnnjSwD0Qt0Xku47b+dix0VocOH6n89PF4Of68ylHzVXBU aSMTmgASqJuDc4w/eESpgd3+6SAAbEuNrEXN+3cWNM+XUFINWJJGGrrMBCTv3CxJZAR6 cFriTPjIdxJ+sDWHTdfWWveGNmcrC9Ko2SrfRMkZRKM3Kx/a8NjwCrSqBLM68sdIjhio HH692zCjPrS6ANpYeA4JZrTU+sp+Ahq0GqE02zJWz293STCr+lmb9kjEyIJDYTlYRgXj fH2w== 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=FZ2NM1YKpyJJZYoLdhw2cHDKJcHkXzpSBjLOhSn/aJ8=; b=riojpnkvsyhV38Dzc3/AfcNl5vztu8LW0DUyofNMa2sxHLQ3jtKSJX9pb0vGhqNP31 MPxz62sdmdlqEMvYblH7GxwkJ2uJAXw20EJbmNaURHGKw0LBHk2+ksWCYBS5d6hy3GFq u/4U32Vt4bPcUYT1i3JmDzl/HDq3aMvwrQV4wY427rnFuRY4lus2jGosMRPngf/E+ZFn jC+XHhSbNPkk5mXw2ETnqJdqzichn26XIP11RP4+A0geO3Zojd51k47eFhiErdHOBKvD Wh0GIc0x24kuiSIhLIUrp7v+iUFi2YZAGzafXBCiX3x/yOQgIT77WPCoyeJqgw2gvAE3 vQug== X-Gm-Message-State: APjAAAUs66ySkXHXjr3OES60dSFWOWGDpa/Siaf4j3CIGeKCXdKyuVkE ZrrQ1nCZLUzJmc68c27nyoYkTQ== X-Received: by 2002:a63:e952:: with SMTP id q18mr34355385pgj.156.1552403728323; Tue, 12 Mar 2019 08:15:28 -0700 (PDT) Received: from [192.168.1.101] (mobile-166-171-249-100.mycingular.net. [166.171.249.100]) by smtp.googlemail.com with ESMTPSA id a24sm12226917pfo.160.2019.03.12.08.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 08:15:27 -0700 (PDT) Subject: Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel To: Geert Uytterhoeven Cc: Greg KH , Joel Fernandes , LKML , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Dietmar Eggemann , Guenter Roeck , Jonathan Corbet , 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 References: <20190301160856.129678-1-joel@joelfernandes.org> <20190307150343.GB258852@google.com> <20190308140251.GC25768@kroah.com> <20190309071648.GE3882@kroah.com> <20190309121141.GA30173@kroah.com> <3e84e1ef-e266-e983-5874-6c26ac7f38b8@opersys.com> From: Karim Yaghmour Message-ID: Date: Tue, 12 Mar 2019 08:15:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: 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 Hi Geert, On 3/11/19 4:03 AM, Geert Uytterhoeven wrote: [ snip ] > OK. > > Now about the actual solution: what is your opinion on embedding e.g. > a squashfs image in the kernel instead, which would be a more generic > solution, not adding more ABI to /proc? I'm not familiar enough with the intricacies of squashfs to have an educated opinion, but I hear that it's got its quirks (need for user-space tools, etc.) and possibly security issues. Also, I wonder whether it's a generalized solution that still kicks the ABI can down the road -- ultimately the kernel would still have a path/format/foo for making kheaders available in that squashfs image and that convention would become ABI. The only "benefit" being that said ABI wouldn't appear under /proc, and, tbh, I'm not sure that that's actually a benefit or is even idiomatic since kconfig.gz is already under /proc. To an extent, the precedent set by kconfig favors kheaders to also be available in the same location using a similar mechanism ... i.e. bonus points for consistency. But that's my hand-wavy gut-reaction response to your question. I'm sure others on this thread have far more informed opinions about the specifics than I could have. My priority was to clarify the basis for the need being addressed. Cheers, -- Karim Yaghmour CEO - Opersys inc. / www.opersys.com http://twitter.com/karimyaghmour