Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp787435imj; Fri, 15 Feb 2019 06:50:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IZeefIirQGmJP51B4JK7zs/prhIuLYVsZssoxRx+aQuBw7X64hiSCgGiSWQjU/SVbLS9UXm X-Received: by 2002:a17:902:b494:: with SMTP id y20mr10847611plr.178.1550242239044; Fri, 15 Feb 2019 06:50:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550242239; cv=none; d=google.com; s=arc-20160816; b=Ba8h0s2HuxMBVQcbilK4H+Xu2cAi0S5RxZlSOifeyPwz35z7GuA61FBhce7iU54ImG h9skVi+5w6XBTl4Q0ADBBgrF5LRQXWXvg60Ow3xAkt9rORDo+J6tpddbv4fHgMi1mvrL ndNcJgDQBNwaNJvZMcdl8F0SCBBIhFh84fW+eLyJXVnTNybnGGkXCdlD61hGHikS1zPl JWSatuE61JBov7GuntQm2goIHrACbYIACqiktuoZ0IqZLsl5YM2xPkPm7xNVuLmq1LE0 ZFL0x7JAoPtV8g+LDukM+oHulbA/NR4fqyQiQAW372rPEvDkg7lAOOVj8A+ofG1JKmU1 wDIw== 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=wE+3Ji0lIUUtQUWa2u/PMxfoCPxtSZUNLG8hQWwDVrU=; b=DKZS/QSHewCE1Lek2gVsGD1UbsvmSD7tKpQH0bmg+X69Uq6th8izw+0rdAeIBzqOWh 0KYZl2loXTYtJOjoTJwII5PaH6mtD4jxXHaJcLmiRhM9QAYl0P5rJMKRcxgzTj638MNE bR31ryvHVX4Dqh1pAyExtz2peDiqoyCeQ1U38x5kQC2TVdjv2t3xCQhBaVtLv3xfND9t HKzHFEgX3d57cDdHE37UqS7BpR7d+Ma1WMozjeVU9a+O/VcvJdKJ1GyD1+UcpaGfuvmP kzL7pxNcK6o4zpYb5brYXnSdfU0I6vuR57tqJWWJM+vFetTtQZ5I4It/E0kMtfmekEOc Kd/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=yqwZX+ej; 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 e67si5512802pfa.15.2019.02.15.06.50.23; Fri, 15 Feb 2019 06:50:39 -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=yqwZX+ej; 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 S1730727AbfBODrZ (ORCPT + 99 others); Thu, 14 Feb 2019 22:47:25 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41589 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728870AbfBODrY (ORCPT ); Thu, 14 Feb 2019 22:47:24 -0500 Received: by mail-qt1-f193.google.com with SMTP id v10so9466205qtp.8 for ; Thu, 14 Feb 2019 19:47:23 -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=wE+3Ji0lIUUtQUWa2u/PMxfoCPxtSZUNLG8hQWwDVrU=; b=yqwZX+ejnGADwhi7L7vco3QTMSii8Q3pAbe5w6fs/vt1zjo0KwozAapaVPNC7EFUgI oYFkb9JNH5woya8yeq9RxISahyqKFMzo1eTImHyv4ggkOR8jr3ehndWm2acJJZZqKnmr lT6SOWdnCiVpt9pjFq25YrjphGxEphPj6GMp8= 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=wE+3Ji0lIUUtQUWa2u/PMxfoCPxtSZUNLG8hQWwDVrU=; b=Z5ScShhD9RPeOmEb/orbuAGv1/1hqvSYLhF/adW7ou2KTvHlZjhBFFXv9GpBgrK8fq fcY7RWOr69yIB+gELmn5RuPQ3g/3vZUC8l90Tb53oymZQcPr6trUdMRC516j40M83J0C r0ydOC1biaB4SnbA+uG5YKZj6Yt2qr4BR45UWIrsdjWcFawYR3VjcDNBqqG2ff77Bak5 qozF3Ha+3kckq11IvvnHHhmj8ttMTrPthIs8s2c8BUcsK0DFkJ8BB7NPa8zXXudZyBVp +zeTCc9I9XFMstrekCP+nFngiR/slhELCrxOH8emNjmopXF1FlShGSeQdhcCKUv39i1B FA9w== X-Gm-Message-State: AHQUAuY3GvI4FqGsnZmtvfwfCEp7CgYcwo2FxB96feHjCiBFf6QXPu/2 54BY8GciAqh1tvMFqxsjECrLaw== X-Received: by 2002:ac8:67d3:: with SMTP id r19mr5786483qtp.196.1550202442794; Thu, 14 Feb 2019 19:47:22 -0800 (PST) Received: from localhost ([2620:0:1004:1100:cca9:fccc:8667:9bdc]) by smtp.gmail.com with ESMTPSA id o5sm2172644qkb.66.2019.02.14.19.47.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 19:47:21 -0800 (PST) Date: Thu, 14 Feb 2019 22:47:20 -0500 From: Joel Fernandes To: Alexei Starovoitov Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , ast@kernel.org, atishp04@gmail.com, dancol@google.com, Dan Williams , gregkh@linuxfoundation.org, Jonathan Corbet , karim.yaghmour@opersys.com, Kees Cook , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Manoj Rao , Masahiro Yamada , paulmck@linux.vnet.ibm.com, "Peter Zijlstra (Intel)" , rdunlap@infradead.org, rostedt@goodmis.org, Shuah Khan , Thomas Gleixner , yhs@fb.com Subject: Re: [PATCH v2 1/2] Provide in-kernel headers for making it easy to extend the kernel Message-ID: <20190215034720.GA230433@google.com> References: <20190211143600.15021-1-joel@joelfernandes.org> <20190215031926.ljzluy2cfxp64u6o@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190215031926.ljzluy2cfxp64u6o@ast-mbp> 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, Feb 14, 2019 at 07:19:29PM -0800, Alexei Starovoitov wrote: > On Mon, Feb 11, 2019 at 09:35:59AM -0500, Joel Fernandes (Google) wrote: > > Introduce in-kernel headers and other artifacts which are made available > > as an archive through proc (/proc/kheaders.txz file). This archive makes > > it possible to build kernel modules, run eBPF programs, and other > > tracing programs that need to extend the kernel for tracing purposes > > without any dependency on the file system having headers and build > > artifacts. > > > > On Android and embedded systems, it is common to switch kernels but not > > have kernel headers available on the file system. Raw kernel headers > > also cannot be copied into the filesystem like they can be on other > > distros, due to licensing and other issues. There's no linux-headers > > package on Android. Further once a different kernel is booted, any > > headers stored on the file system will no longer be useful. By storing > > the headers as a compressed archive within the kernel, we can avoid these > > issues that have been a hindrance for a long time. > > The set looks good to me and since the main use case is building bpf progs > I can route it via bpf-next tree if there are no objections. > Masahiro, could you please ack it? > Yes, eBPF is one of the usecases. After this, I am also planning to send patches to BCC so that it can use this feature when compiling C to eBPF. Thanks! - Joel