Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp985663pxp; Wed, 16 Mar 2022 23:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfimPljRCu8chcwDlhf0m6RxneQ2e2b2lFc1YBagFs/Il4+MAB0mKSD1ZR4jXcqL8eBvi+ X-Received: by 2002:a05:6a00:24c2:b0:4f7:282c:4397 with SMTP id d2-20020a056a0024c200b004f7282c4397mr2963751pfv.78.1647498709049; Wed, 16 Mar 2022 23:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647498709; cv=none; d=google.com; s=arc-20160816; b=x0w0XqQdLx5rSVly4DAjT1NKvhxvk0E38rx6J5sAvLX90bzqYL+VAF3komXpUuLs45 Qd8olVNmYHeoBjqr4LcTA8z8SfObjl7ZifulJjWt62r0vVN/EIZ0H6MssPdwwLE7koaw xxBDEhw7MtMWx/F+hDRaitdYgy0/WfXfvGsfgOw1Vy5teHZkA8qy8hYBDMNeIymoEl/L RRIQyxJqUZ5dmI21BsGrUT3xGz5Y7s0YZfZY1eAq3PaZb6b8arUE3jrsTKlKC9JwFYrh DuvvafLF/5VZEY0Ie2enqtDntAGk12Xc3zS+oyq+sMyJ9IMXdCcf9DhLUOddajp0v22w 7y/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BNoJUVu33RBtyBtnAprQNI1p3NZHgGbzhtFN4UzdDR0=; b=dqDX3Qv8Cm5MMH9Os6sKtks9gOUkc+XAIOn7VDyMBeUOjbpWU5S9ckmu9XHLpQ4GbN oJcY2hMoG0fIT357PmgP7DaUkSs1FKas2ZYNZBCshlZMwb+5YhVxIvCXkL7LozMsvn4f ovVi+ZSr/Hd5HjyQgc/MfFiRV5hXoVlIkf5COsvNKYYaPWGpPbaowV9IAueRn/LaAJXx I2eyXZX0JXIiQrZZhnSiqFdrR1V8vTzzQ2y0rKdh/FTAKwSVO6MLRYoH5UHbSNVfUuT6 F9qQffFXJLTXLpCODlu8Rw36BPYngPJmXY6E7AaDA1O5mgvD7MWjtx8oAAZia+j8PYLe ihpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GKGgw4os; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z8-20020a170902834800b00153bb8a94f2si3186006pln.194.2022.03.16.23.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:31:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GKGgw4os; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 316DE29E4DB; Wed, 16 Mar 2022 22:17:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351950AbiCOVjb (ORCPT + 99 others); Tue, 15 Mar 2022 17:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235167AbiCOVja (ORCPT ); Tue, 15 Mar 2022 17:39:30 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3189A37A99; Tue, 15 Mar 2022 14:38:18 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id bx5so574997pjb.3; Tue, 15 Mar 2022 14:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BNoJUVu33RBtyBtnAprQNI1p3NZHgGbzhtFN4UzdDR0=; b=GKGgw4osFatxLpSNtMw3h1IMZDSU6ZhMBqZ1QoQpwsP8pwL34zLiwl3Gq2Q+8HRtl4 YxJeE0tIb55qgIcnK2McbfJ8YYy4Ba9TWsOJpd1kagk8zQhMRzQSXdgq2zFMmKWNdB4D aZL5+vgSnLZ6/qTdkAy/LWkG7SaqEDCHnKk4Bw+3tVilhG9WssFLFRhhlqfpG+WP9ltl 8mDaXWx5G31AU6ZG6NYbh7M2agkMwkkkqLze1ioGAtX7yETu5q6eIGH1q8c2yrEBvluN tMizX4l3LMcvw94obsI/3ufcocWRla8tzOY9B1raNy+KA3vjNqpjSYfZEeuTImfX16FX rTTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BNoJUVu33RBtyBtnAprQNI1p3NZHgGbzhtFN4UzdDR0=; b=GVdZ/+DsUWnx67hgDCzU0+dNTO18OZx/II3oOVbboaEMMnykq2cWsDb+Rbl0iAreJl 3+kXzEFmxkdjEh2PhDWv+lp9cVMhe+8M3pza1h3xBRFXmUjDds8P18RWQpYMD3hVBQ/I V9va6RHVHoYBFBpicI7hwgx6UAXSWCJT/XUmxoa9vG61S7PEE1rrlOS7+LvOl7Zcl/pU MsJSnJ16ELXvyYyHC5FETDGyLWg2J2Co2AofkXZt9/zGaPH5pO7mDndkp6h9jfTfWrTR Fat546A5IQ1dLcnhnPo4wf50a2nxlJ5sf+V4YzFKzbGdoaLO6t8MstPZn1U1d/Q4sFUK jlaQ== X-Gm-Message-State: AOAM533jxnGFepgIoWfl7Gy2pgqsiKrEhh8J8a4Skt/6ZTbo1zwrcNF3 W+lfb+9zM0k8PhIjMOWczA5T29vJyU2vLVvv84FIHuii X-Received: by 2002:a17:903:32d2:b0:153:9c6a:5750 with SMTP id i18-20020a17090332d200b001539c6a5750mr4681706plr.34.1647380297577; Tue, 15 Mar 2022 14:38:17 -0700 (PDT) MIME-Version: 1.0 References: <1d2931e80c03f4d3f7263beaf8f19a4867e9fe32.1647212431.git.dxu@dxuuu.xyz> In-Reply-To: <1d2931e80c03f4d3f7263beaf8f19a4867e9fe32.1647212431.git.dxu@dxuuu.xyz> From: Alexei Starovoitov Date: Tue, 15 Mar 2022 14:38:06 -0700 Message-ID: Subject: Re: [PATCH bpf-next] bpftool: Add SPDX identifier to btf-dump-file output To: Daniel Xu Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 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.