Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp848882rwd; Wed, 7 Jun 2023 07:41:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CPHY/pPvZdkpJ0FyR3K3PLFtXWDhfq3qoIax4DeXJqgPUFMOOYWq9t32M8IzeECzltE2K X-Received: by 2002:a92:c011:0:b0:33b:1060:aff with SMTP id q17-20020a92c011000000b0033b10600affmr8037340ild.24.1686148875623; Wed, 07 Jun 2023 07:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686148875; cv=none; d=google.com; s=arc-20160816; b=DH8nqx/NdirxqFiDKrUE7M+pR3ZKlMoOZNpAg2nLxlUVC6gwU1O5LmMcUF4oymgtDP kZFU962uQyaw23bYSHPhg07lVzFyUSY2M2D8prtQDiBjJ+ejSz+3NinO8u6T/eNDsa+J 7GujQbkml3pMvjbsJhJeqpiup19o+/b9LlQxet5NwdG6Ixv41a6kR/K2jwEQk9ma/j+q KDpc4yny2i8v4JLppN0BovMrvrUSPlX7hMMsnBosr2978mR0cStt8QecF3NxGaW1kL92 qip9H7V+DbCRGW549IynOzWfKWtdTNK0TmNoQemzzXlEXWcWS7HaTTicTqfcks1j7XF+ L2Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ow0OOCSmuKBnWHD28hFOgV3rmZNu8Nj1owILnvPVmGw=; b=b5Ez25upD9JA10EVh/iRauU/QQx9Sr4gadrj7lQa8rQQFMASTkB68TrwALQVQBg2Kc ieYc6ZLIgKqf4GIDH4yamgd2YHq7/xfRtfZqMA1151IDkPiOvWzhBExFh+CjMNc8Efic nvujDNdYf6fa+o2Bs+wA+Qt4jDcJPTgVLlrC6D7dBSvYS6OttRYOiiIz6p/5T7ypfffS YZhw7zrAWn1TclvqIxRBtYaHiollm0dsrhqE1UKUe4hlGqrwd2RufKzjC5Y6hktXGkEn CBJRATlMtT3XwEr/xaKnqEua59rpgbrQwZREFfW+jfHuULuy46eT47tswAptQuCbwDUt QCIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gg+o4Ff7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h22-20020a17090acf1600b00256c97defa9si1194544pju.54.2023.06.07.07.41.03; Wed, 07 Jun 2023 07:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gg+o4Ff7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241115AbjFGOic (ORCPT + 99 others); Wed, 7 Jun 2023 10:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241108AbjFGOia (ORCPT ); Wed, 7 Jun 2023 10:38:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525C619B6 for ; Wed, 7 Jun 2023 07:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686148662; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ow0OOCSmuKBnWHD28hFOgV3rmZNu8Nj1owILnvPVmGw=; b=Gg+o4Ff7vQZxv9XIIO78juiLeczJRDoMb+5hlTD+p6+VwQV/xvXLVE/19w0u33Tz9pqt0B hlsY5mDwbkgqpmSce7sR0E1B07ml9/FtWAm7q/fQMlFZkmIgl9QHsOt2i6JhN6CtfKE9lQ rz/Y+YnprjAbKFFEs3laeiY8TYlpar8= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-4PwQPQeJOOqZCv6l7-8HuQ-1; Wed, 07 Jun 2023 10:10:46 -0400 X-MC-Unique: 4PwQPQeJOOqZCv6l7-8HuQ-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-3f9b94e7ed9so9555271cf.1 for ; Wed, 07 Jun 2023 07:10:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686147046; x=1688739046; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ow0OOCSmuKBnWHD28hFOgV3rmZNu8Nj1owILnvPVmGw=; b=EYQcyZo5mIWSn/5R7eQPB/npMCaOHhleB5gH88GDLiAAvv9W0nScPyZVPdI9xiJjRM RvUL5TE0zEF56z1BBzln+N5xVMOsRITOmkq5VHmdRMHR3J04cjk6dmle1mrplDB7SHn0 m3uIHFOghq2FTq6fH+uDnjp+USc4DALbH2U1Z6EwI97It0cQqM4oroEi9wRhrRo+Vhxc HG/ROiAkTveguUKhmxgzGiESmBYJAjvHWNHyfWa6WBlJgfqhukWcmIMnwGAk5TZCT3u/ qJ3t4avf2OrvSmP8cAlw5SqKZkHzicApC74OucdAZghuR84X6dMYd3uWtTEYkI2mcwgx UgkA== X-Gm-Message-State: AC+VfDyJ3ZoWbVq1OQg6li/NjlRHkpfjI/EEVsrMWpX2T5gcqg/wGwZv zstLDVTNguIoYugBFsqcKHrGcdZxPhEHZqR5m3H7wu6xiR7Ho/I7Wz4YwnkKvI795gGckTsCXgM znPbro/31gVgh+TIReXOXXQrIjAkosJv2RTBvyj+j X-Received: by 2002:ac8:5951:0:b0:3ef:5d8c:20d8 with SMTP id 17-20020ac85951000000b003ef5d8c20d8mr4175369qtz.6.1686147045623; Wed, 07 Jun 2023 07:10:45 -0700 (PDT) X-Received: by 2002:ac8:5951:0:b0:3ef:5d8c:20d8 with SMTP id 17-20020ac85951000000b003ef5d8c20d8mr4175338qtz.6.1686147045262; Wed, 07 Jun 2023 07:10:45 -0700 (PDT) MIME-Version: 1.0 References: <20230607053940.39078-10-bagasdotme@gmail.com> <20230607053940.39078-11-bagasdotme@gmail.com> In-Reply-To: <20230607053940.39078-11-bagasdotme@gmail.com> From: Richard Fontana Date: Wed, 7 Jun 2023 10:10:34 -0400 Message-ID: Subject: Re: [PATCH 1/8] crypto: Convert dual BSD 3-Clause/GPL 2.0 boilerplate to SPDX identifier To: Bagas Sanjaya Cc: Herbert Xu , "David S. Miller" , Franziska Naepelt , Greg Kroah-Hartman , Linux SPDX Licenses , Linux Kernel Janitors , Linux Crypto , Linux Kernel Mailing List , David Howells , Jarkko Sakkinen , Dan Carpenter , Alexander Kjeldaas , Herbert Valerio Riedel , Kyle McMartin , "Adam J . Richter" , Dr Brian Gladman , Stephan Mueller Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Wed, Jun 7, 2023 at 1:42=E2=80=AFAM Bagas Sanjaya = wrote: > > Replace license boilerplate for dual BSD-3-Clause/GPL 2.0 (only or > later) with corresponding SPDX license identifier. This is at least the fourth or fifth time (I'm losing track) where you have incorrectly assumed a particular non-GPL license text matches a particular SPDX identifier without (apparently) checking. Bagas, I urge that you learn more about the nature of SPDX identifiers before submitting any further patches at least involving replacement of non-GPL notices with SPDX identifiers. For this unprecedented license notice replacement initiative to have any legitimacy it must attempt to apply SPDX identifiers correctly. > diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c > index 666474b81c6aa5..2e042bd306f9c5 100644 > --- a/crypto/aes_generic.c > +++ b/crypto/aes_generic.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later > /* > * Cryptographic API. > * > @@ -11,39 +12,9 @@ > * Kyle McMartin > * Adam J. Richter (conversion to 2.5 API). > * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License as published by > - * the Free Software Foundation; either version 2 of the License, or > - * (at your option) any later version. > - * > * ---------------------------------------------------------------------= ------ > * Copyright (c) 2002, Dr Brian Gladman , Worcester, = UK. > * All rights reserved. > - * > - * LICENSE TERMS > - * > - * The free distribution and use of this software in both source and bin= ary > - * form is allowed (with or without changes) provided that: > - * > - * 1. distributions of this source code include the above copyright > - * notice, this list of conditions and the following disclaimer; > - * > - * 2. distributions in binary form include the above copyright > - * notice, this list of conditions and the following disclaimer > - * in the documentation and/or other associated materials; > - * > - * 3. the copyright holder's name is not used to endorse products > - * built using this software without specific written permission. > - * > - * ALTERNATIVELY, provided that this notice is retained in full, this pr= oduct > - * may be distributed under the terms of the GNU General Public License = (GPL), > - * in which case the provisions of the GPL apply INSTEAD OF those given = above. > - * > - * DISCLAIMER > - * > - * This software is provided 'as is' with no explicit or implied warrant= ies > - * in respect of its properties, including, but not limited to, correctn= ess > - * and/or fitness for purpose. > * ---------------------------------------------------------------------= ------ This is not BSD-3-Clause as defined by SPDX. It may be a match to `Brian-Gladman-3-Clause` but I haven't checked closely. > diff --git a/crypto/algif_rng.c b/crypto/algif_rng.c > index 407408c437308f..4d4b9e60f72c19 100644 > --- a/crypto/algif_rng.c > +++ b/crypto/algif_rng.c > @@ -1,41 +1,10 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only > /* > * algif_rng: User-space interface for random number generators > * > * This file provides the user-space API for random number generators. > * > * Copyright (C) 2014, Stephan Mueller > - * > - * Redistribution and use in source and binary forms, with or without > - * modification, are permitted provided that the following conditions > - * are met: > - * 1. Redistributions of source code must retain the above copyright > - * notice, and the entire permission notice in its entirety, > - * including the disclaimer of warranties. > - * 2. Redistributions in binary form must reproduce the above copyright > - * notice, this list of conditions and the following disclaimer in th= e > - * documentation and/or other materials provided with the distributio= n. > - * 3. The name of the author may not be used to endorse or promote > - * products derived from this software without specific prior > - * written permission. > - * > - * ALTERNATIVELY, this product may be distributed under the terms of > - * the GNU General Public License, in which case the provisions of the G= PL2 > - * are required INSTEAD OF the above restrictions. (This clause is > - * necessary due to a potential bad interaction between the GPL and > - * the restrictions contained in a BSD-style copyright.) > - * > - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED > - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES > - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF > - * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE > - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT > - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR > - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF > - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > - * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH > - * DAMAGE. > */ The BSD portion of this license notice is not a match to BSD-3-Clause (see my comment on another patch which I think had the same license text). > #include > diff --git a/crypto/jitterentropy-kcapi.c b/crypto/jitterentropy-kcapi.c > index 7d1463a1562acb..78230ce74fc840 100644 > --- a/crypto/jitterentropy-kcapi.c > +++ b/crypto/jitterentropy-kcapi.c > @@ -1,40 +1,10 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only > /* > * Non-physical true random number generator based on timing jitter -- > * Linux Kernel Crypto API specific code > * > * Copyright Stephan Mueller , 2015 - 2023 > * > - * Redistribution and use in source and binary forms, with or without > - * modification, are permitted provided that the following conditions > - * are met: > - * 1. Redistributions of source code must retain the above copyright > - * notice, and the entire permission notice in its entirety, > - * including the disclaimer of warranties. > - * 2. Redistributions in binary form must reproduce the above copyright > - * notice, this list of conditions and the following disclaimer in th= e > - * documentation and/or other materials provided with the distributio= n. > - * 3. The name of the author may not be used to endorse or promote > - * products derived from this software without specific prior > - * written permission. > - * > - * ALTERNATIVELY, this product may be distributed under the terms of > - * the GNU General Public License, in which case the provisions of the G= PL2 are > - * required INSTEAD OF the above restrictions. (This clause is > - * necessary due to a potential bad interaction between the GPL and > - * the restrictions contained in a BSD-style copyright.) > - * > - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED > - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES > - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF > - * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE > - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT > - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR > - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF > - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > - * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH > - * DAMAGE. Also not a match to BSD-3-Clause. > #include > diff --git a/crypto/jitterentropy.c b/crypto/jitterentropy.c > index c7d7f2caa7793b..c8437bd20dc903 100644 > --- a/crypto/jitterentropy.c > +++ b/crypto/jitterentropy.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only > /* > * Non-physical true random number generator based on timing jitter -- > * Jitter RNG standalone code. > @@ -9,40 +10,6 @@ > * > * See https://www.chronox.de/jent.html > * > - * License > - * =3D=3D=3D=3D=3D=3D=3D > - * > - * Redistribution and use in source and binary forms, with or without > - * modification, are permitted provided that the following conditions > - * are met: > - * 1. Redistributions of source code must retain the above copyright > - * notice, and the entire permission notice in its entirety, > - * including the disclaimer of warranties. > - * 2. Redistributions in binary form must reproduce the above copyright > - * notice, this list of conditions and the following disclaimer in th= e > - * documentation and/or other materials provided with the distributio= n. > - * 3. The name of the author may not be used to endorse or promote > - * products derived from this software without specific prior > - * written permission. > - * > - * ALTERNATIVELY, this product may be distributed under the terms of > - * the GNU General Public License, in which case the provisions of the G= PL2 are > - * required INSTEAD OF the above restrictions. (This clause is > - * necessary due to a potential bad interaction between the GPL and > - * the restrictions contained in a BSD-style copyright.) > - * > - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED > - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES > - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF > - * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE > - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT > - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR > - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF > - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > - * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH > - * DAMAGE. Also not a match to BSD-3-Clause. > diff --git a/crypto/keywrap.c b/crypto/keywrap.c > index 054d9a216fc9f3..8c51235a91a9ae 100644 > --- a/crypto/keywrap.c > +++ b/crypto/keywrap.c > @@ -1,39 +1,9 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only > /* > * Key Wrapping: RFC3394 / NIST SP800-38F > * > * Copyright (C) 2015, Stephan Mueller > * > - * Redistribution and use in source and binary forms, with or without > - * modification, are permitted provided that the following conditions > - * are met: > - * 1. Redistributions of source code must retain the above copyright > - * notice, and the entire permission notice in its entirety, > - * including the disclaimer of warranties. > - * 2. Redistributions in binary form must reproduce the above copyright > - * notice, this list of conditions and the following disclaimer in th= e > - * documentation and/or other materials provided with the distributio= n. > - * 3. The name of the author may not be used to endorse or promote > - * products derived from this software without specific prior > - * written permission. > - * > - * ALTERNATIVELY, this product may be distributed under the terms of > - * the GNU General Public License, in which case the provisions of the G= PL2 > - * are required INSTEAD OF the above restrictions. (This clause is > - * necessary due to a potential bad interaction between the GPL and > - * the restrictions contained in a BSD-style copyright.) > - * > - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED > - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES > - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF > - * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE > - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT > - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR > - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF > - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > - * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH > - * DAMAGE. Also not a match to BSD-3-Clause. Richard