From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE217C433FE for ; Fri, 19 Nov 2021 12:54:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C959E61A64 for ; Fri, 19 Nov 2021 12:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234718AbhKSM50 (ORCPT ); Fri, 19 Nov 2021 07:57:26 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36085 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234692AbhKSM5Z (ORCPT ); Fri, 19 Nov 2021 07:57:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637326463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tr40Sr+qZMyNTjT5CMNyysFz2h1enHkACWZJul0D2y4=; b=Al9a8rtmlpb8DdUY9ngeVxWqR2wEqmcfUDFC3hcLFjSIsDx4ZWfRp+NEBnRx+rO5hsgA2N oN/cyIktOO7zyfRnZsJ+i9sPJYVKUMDrnva7trmJWvicS4sjPuc4Z0uIzGQohVouwJstx6 4BRGM2R0Ux0khgitxqTr35056+lNWvw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-368-6dsare06M6yZ80tozG6b5A-1; Fri, 19 Nov 2021 07:54:22 -0500 X-MC-Unique: 6dsare06M6yZ80tozG6b5A-1 Received: by mail-ed1-f70.google.com with SMTP id a3-20020a05640213c300b003e7d12bb925so8344309edx.9 for ; Fri, 19 Nov 2021 04:54:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=tr40Sr+qZMyNTjT5CMNyysFz2h1enHkACWZJul0D2y4=; b=mA4L8//HSarjDYvIkiQHNNoK2FasYp/4+7KKwe6EI3A5dXXB9sShE+NRocy15lKQwg pEqordsHLQLUTwGjnoWRhrjVF2O/J5aQzfULzn7srbvDTwa6Vv8vcFAmYghQYSnUw92o iQ/FNEiTTdwb+Bfryu4dzj0sKQCD4sTmPl9l0vD29yP0y1J1JFdQUBPOTBif7Ev4vssC QV2XX4GqUuPbmmbUO99CryBm7LDlCBemaGeBv3Zq/17iBFCrzZToMJNkS8CovUju+nJy qDHj4SF945G21Ynyg+Lv0XBAs7xL/hvY/nxTEv8oVAlYRSXhUe/QyZcBLs0VgAkbQECI wp+g== X-Gm-Message-State: AOAM530PpUVawdwJa5Id4FbhcKUsIU6drqeaCq6dpNUj8NhspoI7gPt9 54+5RsF7dpctmUCwPxkV1CLVdzIqDTV2Jr81q3X6eSx+WP41aNcdNV4ImthrgHDSEhqeY43BbSO ca9qv7kIK7j7I8ajr X-Received: by 2002:a17:906:b2c7:: with SMTP id cf7mr7757632ejb.303.1637326460983; Fri, 19 Nov 2021 04:54:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRa4V8Cz9ajPEpKUcCnt29QFHSSmpW1Fonv8oiuB/Xs2yX8wV4k5ehd92RSsxp/4Vz5E7YNQ== X-Received: by 2002:a17:906:b2c7:: with SMTP id cf7mr7757572ejb.303.1637326460596; Fri, 19 Nov 2021 04:54:20 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id g11sm1518295edz.53.2021.11.19.04.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 04:54:19 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 3D747180270; Fri, 19 Nov 2021 13:54:19 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Martin Kelly , "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: Clarification on bpftool dual licensing In-Reply-To: References: X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 19 Nov 2021 13:54:19 +0100 Message-ID: <87czmwe26c.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Martin Kelly writes: >> > One other, related question: vmlinux.h (generated by "bpftool btf dump file >> /sys/kernel/btf/vmlinux format c"), does not currently contain a license >> declaration. I assume this would have to be a GPL header, since vmlinux.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? Totally not a lawyer either, but: 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. 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 :) 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? -Toke