Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp984798pxp; Wed, 16 Mar 2022 23:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrKRBpAK26AhRY36kZL56gQ8IrObNRBmHA+UxATaCTMhexKgxx5ApuXLflIezhGuy87XQe X-Received: by 2002:a63:396:0:b0:382:b61:70af with SMTP id 144-20020a630396000000b003820b6170afmr506212pgd.67.1647498609890; Wed, 16 Mar 2022 23:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647498609; cv=none; d=google.com; s=arc-20160816; b=LF4TiixccaRI43q36nxbrybn5dDsM4pMjG47Q2wAD1+TAeZnp7PlE8M8+z363fQSpO 7a8scmVVmViEvw9gOdMccx/RAX4QYLmKuNBoiuhAwib7ZFLSIOSmnV+zJauhUa9pra2M ddC6Q03c6jeb+LqG8J7RTYbvQI37q9lDshTYNrwgcGRJoSgCNCcuFVlZyWyVbpyU9DXd 651ftYeiObmmT7zWT7TTBauxaWKPLx866Feu4/cAUtesDMbm/tOZXbKipnauCyG8wrbN 8Jme2zfzFAs8n1dxRLSv5oG94q6k0/hP36zpDURmXRf1iTjjT5rQ9VnZOHaBKCh1AtTD 2Veg== 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=czcBjoVsqPPg39vO8apkGg+bmRVVIBuPLCt1OZYyodU=; b=xpdMbDhZGRUR2fNUNSjfkGouzXh2sXg0c6ebAlswDWN9KJm8XxEPbADrhBShgdfo8/ PTLOEe3y1pZEmzjYMkcxda4G1ScggpsZDVHZAB3dti8kPhnVTTWyW4Q9FwU7ozbnVwXp 3wkiiD/yL5mdifhUYCZwsX5Q8KcZlAnxlPM4k059AiMI12b82bOqvKmUj2aLq6NvkHVm gnEjslt5bX33BVUneBdjcjWfX7hMBLE2llwt8fWPwcfByvkFH8Z2qZDBK7Lmc3RiuLOE H31j08ITMbjISPhxadZcFwXsPH3Wq3rU2w7YINxbxs4/bFNueUIhdbMkSfZVvRdE+Dt9 BSLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=DWViUI6m; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iFcVYd0P; 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 b186-20020a6367c3000000b003816043ee7fsi1170335pgc.116.2022.03.16.23.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:30:09 -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=DWViUI6m; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iFcVYd0P; 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 9B1A9299A4D; Wed, 16 Mar 2022 22:15:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346602AbiCPE7f (ORCPT + 99 others); Wed, 16 Mar 2022 00:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbiCPE7d (ORCPT ); Wed, 16 Mar 2022 00:59:33 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85BC017AB5; Tue, 15 Mar 2022 21:58:20 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C84D25C01C8; Wed, 16 Mar 2022 00:58:17 -0400 (EDT) Received: from imap42 ([10.202.2.92]) by compute4.internal (MEProxy); Wed, 16 Mar 2022 00:58:17 -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=czcBjoVsqPPg39vO8apkGg+bmRVVIBuPLCt1OZ YyodU=; b=DWViUI6mvGCcx57kSprQy1T4IuOkxOXGPdemR2vBoR9tVOd6kvjtu7 MtQbZ8hnY92KABpFpMhKlN5HWCM4yMzen7837WiSyJqHAPgD3Ijbw12/5QGGm36i W+SOAQu1VOYvz+xJTklVOkDKNQutb/U/IZ2WCPasDZv3wexfxDj1KcUHyOI9iBeU Ic03KxItahTtON2LbrLGqIp4RiNJ1iZREPvqMXBRPi6yTYjUnroQ2O6pk/bQ+go0 COyZOkDmL4YPUVGL5Z0YI1dVLboLPrmD/tm8FM9HvhQeDo3YDzuOhPMt+Q5dKBOg /vK/X3Jy7t9x+JBtQV+N0G5j11NImmaA== 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=czcBjoVsqPPg39vO8 apkGg+bmRVVIBuPLCt1OZYyodU=; b=iFcVYd0PwPp9KtUZurPx35+RZSeB7TDl2 8JJr0DuSuDSHe9AaaNEJKjfqGuj1EEr9QOype84mvKsmH0j1i/kQ/Irm5LuExtbc ya1pXtpcEbV9zt7R0FfXA1HVvfcMo2/UkeTe451ThNIj7MWPHdqSPLDE7NKCd8gK BCchnRwXjAc33GwBcnW2QURr5sJ6lWWRTAIrMJ9oa5g4mOMuJhX5hMPSNf8Xn6hB 9pvzTbXo6n0gU2l8AWd9sjG/Sy6rlwnvZ2caqIi/ftmhvYtsvDCswbIt3wQwroEZ 8UgEazRC94yQbJ2SgXUVWER6SHZPmxNJBB2vGpuQot6inKGMrkn8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefuddgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertder redtnecuhfhrohhmpedfffgrnhhivghlucgiuhdfuceougiguhesugiguhhuuhdrgiihii eqnecuggftrfgrthhtvghrnhepjefgveethfejlefgfedvtdfhffefuedtffegiefhkeet feehffegiedtieefhfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepugiguhesugiguhhuuhdrgiihii X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2511C2180085; Wed, 16 Mar 2022 00:58:17 -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: <35ee9669-6ae1-4647-8028-eb7c82f10dac@www.fastmail.com> In-Reply-To: References: <1d2931e80c03f4d3f7263beaf8f19a4867e9fe32.1647212431.git.dxu@dxuuu.xyz> <53a71699-3ffb-4a49-9d15-7fe4a0f51612@www.fastmail.com> Date: Tue, 15 Mar 2022 21:57:56 -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: * On Tue, Mar 15, 2022, at 4:39 PM, Alexei Starovoitov wrote: > On Tue, Mar 15, 2022 at 4:10 PM Daniel Xu wrote: >> >> 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? > > 2 Got it, thanks.