Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7489C433F5 for ; Fri, 19 Nov 2021 23:20:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233025AbhKSXXH (ORCPT ); Fri, 19 Nov 2021 18:23:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhKSXXG (ORCPT ); Fri, 19 Nov 2021 18:23:06 -0500 Received: from mx0a-00206401.pphosted.com (mx0a-00206401.pphosted.com [IPv6:2620:100:9001:15::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02761C061574; Fri, 19 Nov 2021 15:20:03 -0800 (PST) Received: from pps.filterd (m0282761.ppops.net [127.0.0.1]) by mx0b-00206401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AJHRDS2018277; Fri, 19 Nov 2021 14:16:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crowdstrike.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=default; bh=UojmxxivjkQawng4ZsEgyTIZQFXvzS/8KVJ+yqfR9zU=; b=Dz2wNLEWPTHPuBawQ+RMo+Lb5/rGRvfMoxIkEU6wVX1AJj+0NDDRClGQfJ/31/MQk3d9 LMpvEXeTfbBrTMhV/qe1eIZ085jpBfFJjhVtNlnxx5v52Q+RWGrGm1U5F/e3n8Zfr7NK ZicvYM+XUusYG0+QbROZSVSzGvVPQEAPwQ9k7SvzrdRJ8cRh3rT9dE76IV3tPcJTwPVG TepUqWfUbeBo4xNV3nOlsme0yCF2t9tfoAzaDqHrMwQr+fzzStrHg8OFxMIMBkO5NjmF 97RQxBa2dpX2LX/u9Xyawu7rA+cCS692lc0PTHEGdizIOsDIJaXmOQOkjePA/bvG/Zsg TQ== Received: from 04wpexch03.crowdstrike.sys (dragosx.crowdstrike.com [208.42.231.60]) by mx0b-00206401.pphosted.com (PPS) with ESMTPS id 3ce33dhd4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Nov 2021 14:16:46 -0800 Received: from 04wpexch03.crowdstrike.sys (10.100.11.93) by 04wpexch03.crowdstrike.sys (10.100.11.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 19 Nov 2021 22:16:44 +0000 Received: from 04wpexch03.crowdstrike.sys ([fe80::79d6:26ee:13ba:99d2]) by 04wpexch03.crowdstrike.sys ([fe80::79d6:26ee:13ba:99d2%5]) with mapi id 15.02.0922.019; Fri, 19 Nov 2021 22:16:44 +0000 From: Martin Kelly To: "toke@redhat.com" , "andrii.nakryiko@gmail.com" CC: "daniel@iogearbox.net" , "bpf@vger.kernel.org" , "ast@kernel.org" , "netdev@vger.kernel.org" , "kernel-team@fb.com" , "davem@davemloft.net" , "andrii@kernel.org" Subject: RE: RE: Re: Re: Clarification on bpftool dual licensing Thread-Topic: RE: Re: Re: Clarification on bpftool dual licensing Thread-Index: AdfdkjhNfsy17BBgRbaSQ5rYr6Jc1g== Date: Fri, 19 Nov 2021 22:16:38 +0000 Deferred-Delivery: Fri, 19 Nov 2021 22:16:30 +0000 Message-ID: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.100.11.84] x-disclaimer: USA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-19_15,2021-11-17_01,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org > From: Toke H=F8iland-J=F8rgensen > Sent: Friday, November 19, 2021 4:54 AM > To: Martin Kelly ; andrii.nakryiko@gmail.co= m > Cc: daniel@iogearbox.net; bpf@vger.kernel.org; ast@kernel.org; > netdev@vger.kernel.org; kernel-team@fb.com; davem@davemloft.net; > andrii@kernel.org > Subject: [External] RE: Re: Re: Clarification on bpftool dual licensing >=20 > Martin Kelly writes: >=20 > >> > One other, related question: vmlinux.h (generated by "bpftool btf du= mp > file > >> /sys/kernel/btf/vmlinux format c"), does not currently contain a licen= se > >> declaration. I assume this would have to be a GPL header, since vmlinu= x.h > >> references many GPL'd Linux kernel structs and similar, though again I= 'm not > a > >> lawyer and therefore am not certain. Would you all agree with this? If= so, > any > >> objection to a patch adding an SPDX line to the generated vmlinux.h? > >> > >> Is vmlinux DWARF data GPL'ed? I certainly hope not. So vmlinux.h > >> shouldn't be licensed under GPL. > > > > I have no idea; I had assumed that a struct definition coming from a > > GPL-licensed header would have to be GPL, but again, not a lawyer, and > > I could totally be wrong. If not GPL though, what would the license > > be? Is it just "output of a program" and therefore license-less, even > > though the output happens to be code? >=20 > Totally not a lawyer either, but: >=20 > There's (generally, in many jurisdictions, etc), a minimum bar for when > something is considered a "creative work" and thus copyrightable. Debug > output *could* fall short of this (and thus not be copyrightable at > all). It could also fall under the same "API" umbrella as that famous > Google v Oracle case. Or it could fall under the "syscall exception" of > the kernel source. >=20 > I guess it would take a court decision to know either way. IMO it would > make sense if vmlinux.h is not copyrightable for whatever reason, but, > again, IANAL :) >=20 > Anyway, while we obviously can't resolve legal matters on the mailing, > we can express the *intention* of the community, which is what the > licensing document is trying to do. So it totally makes sense to mention > vmlinux.h here; the question is what should such a text say? >=20 Yep, I completely agree with your assessment; trying to decide this definit= ively is probably hard even for lawyers, considering the number of contribu= tors involved, and various differences in copyright law around the world, s= o I'm hoping we can at least agree on intention. Based on what I've heard so far, it sounds like: - There is good consensus that that the generated skeleton file is dual-lic= ensed BSD/GPL regardless of the licensing status of the embedded eBPF code;= in other words, the eBPF code has no bearing on the license of the skeleto= n header itself. - Toke, it sounds like you believe vmlinux.h should be "license-less" such = that someone generating it could relicense it as anything they want. This s= eems reasonable to me, but I welcome others' thoughts as well.