Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp937561pxp; Wed, 16 Mar 2022 21:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlvcawApN910lVLvZ9w+Q4aRIoNwp8r/xlQfnz+oBXOvneb3lgSZH75aAbEGEPCrWs+cyq X-Received: by 2002:a63:ea51:0:b0:380:7c35:188e with SMTP id l17-20020a63ea51000000b003807c35188emr2220258pgk.607.1647493068993; Wed, 16 Mar 2022 21:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647493068; cv=none; d=google.com; s=arc-20160816; b=o8B66qbjrJOSZ8k7VGfPTUsLac3SLca6HdP2q/5AUJPZG6nZZUqHyoyRze8KvfpDPq cIgW/96DwOGt8P7kzXZaDrC3yQ8oyIkcZfe945c1Hvo2asgO5jfhWWZLdfKN2dj17tMY ai134OYjr+7ECuVLSb0y+WU+6xcGsPh2G8I7oTecKUgk/89wP7yHOJvAbHUDDUpldCwT oJ73TjFrhkuCPKpiz+UuEIE7a/VDhcu+TeeE8bwLzkAOx+Z2In7rY5ZuF71pZMKDAXzC QLyF9DdQBXZkHR5um756n6eUxifdnDXZrvGRTaZqr7LiekyMrDLDZLFDSdAdIiDLoK85 nEzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=nKjQkzPzNXMCrBv5rZd2TPMn58+ud5Ed8qE7Xp7qsjw=; b=kZ4ma85eeKn1UtBFcNIyqhD6JlTgcMLtO25WmSkfHvVPjHPFidFOoJRwOnvlk8TjtJ xG1SN5fpLYhcF3mII9en0IaDHecU01YlzSl0wLSKWe/ZKdvpwofsdbdhqjnjC04ZeHOE +MeepKUbMvAK/QxbSYYXFmtqIFfmnnC7O/H/I9EY4SkwwSRgMgbMyiAN0eDFAxuRwqYj I3JpSs+0L5KsHPTRJAg+84jEvwSRxT9uPdJW/KLmMlTP0DFp1V8khilr5Qym9YKy8jhz IEpn3wTmGdhvkb0DypWnV2ilKw7FEpu4XMMz84HxWTbjQR45PtveeZ3RKcjoTcYXq7eI 1LNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=I6RTIHk8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Pv2ucQTI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g5-20020a056a001a0500b004f7090d5e3csi4008398pfv.123.2022.03.16.21.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=I6RTIHk8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Pv2ucQTI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9922C181B26; Wed, 16 Mar 2022 21:13:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352519AbiCOXL0 (ORCPT + 99 others); Tue, 15 Mar 2022 19:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239447AbiCOXLY (ORCPT ); Tue, 15 Mar 2022 19:11:24 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51B8B52E6C; Tue, 15 Mar 2022 16:10:11 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B4A963201FDA; Tue, 15 Mar 2022 19:10:08 -0400 (EDT) Received: from imap42 ([10.202.2.92]) by compute4.internal (MEProxy); Tue, 15 Mar 2022 19:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=nKjQkzPzNXMCrBv5rZd2TPMn58+ud5Ed8qE7Xp 7qsjw=; b=I6RTIHk8Zsx3TPDaTGo0z9yk1uNeRZu6rXreRrxDzhJGmVF6j4Zebc sOX3Fqp5Hftz91zOgnwWWc5OZtD+0r1DurynvAZx7NwmBQxVcLUIVPzGjAmPkImL ZLF03vNpZdgRBO2qkfZphUPw/u09eBJRIM22kAPvbzqTfwd0qFaJDRpn/YsOE4UY MALX+yza10fyv1tranZKcofbu8EmviCW7eTtgFQ3Ue4boMucKWSvxIauA9a4J6W9 FShl6MCd1kOh+nHoag9LEghs9fahZuSJXIsZdlVDqUEIR8oWiT5C+bb2XiuC9UHO ijXLonXBAY94TD4AOcUJaDk6nFSehLbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=nKjQkzPzNXMCrBv5r Zd2TPMn58+ud5Ed8qE7Xp7qsjw=; b=Pv2ucQTI4Zdi0OnPFmDaADIFGCJLisE1y bKY10UyrYlSnck3aUDvFVGHQHT4NcKeFX5IIT0lXk648lFpcqacAecvux6mDmIxI 1Vz9pU6ZCdkawh6eP64W+NK0YzQMCcMl5lB3oi5t0xyiyD17cx0+k89X+/39z1jZ hkFsW/ZmpgJ61BShkc5T0NW1AWjy7ODaJTYA7qDMQGUX17UOZuCkaaB/P8z6nlFZ 4XnHMvl4nAgJfHMp38VnofcwitBW33AH8S9nkUD/myx+7aufIWLxGvt8/O2a4oQM Aw5q/yIb9XZlk9ERKoXfP4d61Oi+85pm+YSBX2FfZDywB2NJT/0BQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefuddgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder redtnecuhfhrohhmpedfffgrnhhivghlucgiuhdfuceougiguhesugiguhhuuhdrgiihii eqnecuggftrfgrthhtvghrnhepjefgveethfejlefgfedvtdfhffefuedtffegiefhkeet feehffegiedtieefhfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepugiguhesugiguhhuuhdrgiihii X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id E13882180085; Tue, 15 Mar 2022 19:10:07 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4907-g25ce6f34a9-fm-20220311.001-g25ce6f34 Mime-Version: 1.0 Message-Id: <53a71699-3ffb-4a49-9d15-7fe4a0f51612@www.fastmail.com> In-Reply-To: References: <1d2931e80c03f4d3f7263beaf8f19a4867e9fe32.1647212431.git.dxu@dxuuu.xyz> Date: Tue, 15 Mar 2022 16:10:46 -0700 From: "Daniel Xu" To: "Alexei Starovoitov" Cc: "bpf@vger.kernel.org" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , LKML Subject: Re: [PATCH bpf-next] bpftool: Add SPDX identifier to btf-dump-file output Content-Type: text/plain X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00,BULK_RE_SUSP_NTLD, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FROM_SUSPICIOUS_NTLD, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Spam-Level: * Hi Alexei, On Tue, Mar 15, 2022, at 2:38 PM, Alexei Starovoitov wrote: > On Sun, Mar 13, 2022 at 4:01 PM Daniel Xu wrote: >> >> A concern about potential GPL violations came up at the new $DAYJOB when >> I tried to vendor the vmlinux.h output. The central point was that the >> generated vmlinux.h does not embed a license string -- making the >> licensing of the file non-obvious. >> >> This commit adds a LGPL-2.1 OR BSD-2-Clause SPDX license identifier to >> the generated vmlinux.h output. This is line with what bpftool generates >> in object file skeletons. >> >> Signed-off-by: Daniel Xu >> --- >> tools/bpf/bpftool/btf.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c >> index a2c665beda87..fca810a27768 100644 >> --- a/tools/bpf/bpftool/btf.c >> +++ b/tools/bpf/bpftool/btf.c >> @@ -425,6 +425,7 @@ static int dump_btf_c(const struct btf *btf, >> if (err) >> return err; >> >> + printf("/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */\n\n"); > > I don't think we can add any kind of license identifier > to the auto generated output. > vmlinux.h is a pretty printed dwarfdump. Just so I understand better, when you say "I don't think we can", do you mean: 1) There may be legal issues w/ adding the license identifier 2) It doesn't make sense to add the license header 3) Something else? Thanks, Daniel