Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp946657rwd; Wed, 7 Jun 2023 08:56:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Sa8YaLn3NWfY6r83pWspWLXkGxASfN0Lakarj5UiWtNwBjYyfQXTJ2fxgTF3kuWJ5IySR X-Received: by 2002:a05:6a20:7f85:b0:111:ee3b:59c0 with SMTP id d5-20020a056a207f8500b00111ee3b59c0mr3207287pzj.6.1686153396439; Wed, 07 Jun 2023 08:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686153396; cv=none; d=google.com; s=arc-20160816; b=wErDFRejHiq6i4eRHZMkADoh3A2dMC+Wmu3AZ4pt4CTMBm8d6ZZLav+V4sacXfZHKd 5wB4lzL+OdGB2ekBWmPCqGAqSYiuqLhrhgXDtTjpQ35JT4aY0Hd/lK88gwhJHZWJDR4n XxO1x0jngs9F4p2RajIwQqlMO9rWJ05xrjNHeKYDyTqQLzGZVYQzG6uEtxund1ycpkKE ebksYnKOFk2fLRJaNOvBhnbcm8MjbWXS/UOvWA719fgHsWoq66Bm8+JpGvx16L9RT6kJ zz2gUcqTG8dhZWb9KBY2ABc3jh4s2Pe4/JWnp+PEj/W3tOHPvKnpNghJmKQPZQcQbn13 O+Tg== 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=zHVq+AaJsRP3MMD5HoVnegJq1rhI+iZeYf1Kj+A0Nvo=; b=dByyQP50DIseDLzNz76wzn14OfdLxHLMp9Zu9PocLpGAgj9n78bBcni+UjN/Jwwg4d ycIemWFR/AFH7jIhxQkd0Rv2BT3o92i7SQKpF5UgfV9UGKCMcI8AAHu/be1Is6taI8Qi ekhbEdz4DjoHaqX9GLFMePKujbwGCAua39Aw7TrGhGj5Lm63FI/fFMsKOPG2Y/UB7fwJ uuCJQd5Xyvddoa7UJ8ZV7x119ZpTeJt/EaOG1cpokxFBygcVbFg3EyHxk6EnNwwq21Ba KFe2+qbkK9DaCE8LlGuOT+9xio+pLBFpyBTRivcmZ26te0gdHc2paxiwmuIH9+SE3pPq OTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TssTSqZ+; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 p24-20020a637f58000000b00543cc3151f9si4069252pgn.461.2023.06.07.08.56.16; Wed, 07 Jun 2023 08:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=TssTSqZ+; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S241423AbjFGPjV (ORCPT + 99 others); Wed, 7 Jun 2023 11:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241418AbjFGPjQ (ORCPT ); Wed, 7 Jun 2023 11:39:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052A583 for ; Wed, 7 Jun 2023 08:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686152311; 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=zHVq+AaJsRP3MMD5HoVnegJq1rhI+iZeYf1Kj+A0Nvo=; b=TssTSqZ+3E/UfDqo0W67A1o/MbwPonadgsI6PrBdmixASQapSKAgmtkPK9tZ/Tzjl0B20c hBvVZ8WMBgcNYb4BkLFdZI8es9zkA0kANX7oXmTG88Oq1n0G1aH6atPrGK2WSrph7i/+ZN Gxfw9PygbJiFaO3QuUeN9xZS8g8xioo= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-_5Q3TiKOMCqkvEYz_MUNGQ-1; Wed, 07 Jun 2023 09:56:14 -0400 X-MC-Unique: _5Q3TiKOMCqkvEYz_MUNGQ-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-62b6762db6cso12571656d6.0 for ; Wed, 07 Jun 2023 06:56:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686146174; x=1688738174; 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=zHVq+AaJsRP3MMD5HoVnegJq1rhI+iZeYf1Kj+A0Nvo=; b=HQ8hogFBNGKvufPRicaqSC3bkqFjTmMjJHwMra6cNIaccDkdtUQvSy1YGBs5NLG0d3 7ClusSevlUUk5TppwXVkUmCvS8693cJcioKv1m5wi/FPETOUwv8+Aeg3aC6RuVDln6bo TljiTt9P25RK9YOpdjW5DF/I8Cy+SfjaYDjZfkY0ds8mp7l3xou3AFtnXeK6+L4HLr7Z THrCGYDU77+/l532GPtQo4crRVOwimnz5QxGUdWdDw/ocb/x89aleiECp1TLu/y/WKZ9 Xokh+N+eNCrk841vKJNT3YXx84fgiPZhjSoR28nkNzsrHxV8KqOFb9t3HmRt9hsOXz8E qsgQ== X-Gm-Message-State: AC+VfDytT3PJe0N6jcm9BsTSIWkFHD0B8lgnr0/fh9IqBwBfnfMBQUbw 767n49mwK41GYP6c4j1YxoqGuFwbnFBOkHCgQAIP6I4up3IP4mQ9uD5nUpg3Tc9S1aw0NDAFEkM hZEc5fO89w+r5+42dq35dLbgHiqvvhtnJL0vq0UnN X-Received: by 2002:a05:6214:d0a:b0:626:17b2:5583 with SMTP id 10-20020a0562140d0a00b0062617b25583mr2995560qvh.0.1686146174417; Wed, 07 Jun 2023 06:56:14 -0700 (PDT) X-Received: by 2002:a05:6214:d0a:b0:626:17b2:5583 with SMTP id 10-20020a0562140d0a00b0062617b25583mr2995538qvh.0.1686146174135; Wed, 07 Jun 2023 06:56:14 -0700 (PDT) MIME-Version: 1.0 References: <20230607053940.39078-10-bagasdotme@gmail.com> <20230607053940.39078-13-bagasdotme@gmail.com> In-Reply-To: <20230607053940.39078-13-bagasdotme@gmail.com> From: Richard Fontana Date: Wed, 7 Jun 2023 09:56:03 -0400 Message-ID: Subject: Re: [PATCH 3/8] crypto: drbg: Convert dual BSD 3-Clause/GPL-1.0 license 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 , 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 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-crypto@vger.kernel.org On Wed, Jun 7, 2023 at 1:41=E2=80=AFAM Bagas Sanjaya = wrote: > > Replace the boilerplate with corresponding SPDX tag. Since there is no > explicit GPL version, assume GPL 1.0+. > > Cc: Stephan Mueller > Signed-off-by: Bagas Sanjaya > --- > crypto/drbg.c | 33 +-------------------------------- > 1 file changed, 1 insertion(+), 32 deletions(-) > > diff --git a/crypto/drbg.c b/crypto/drbg.c > index ff4ebbc68efab1..f797deaf3952ef 100644 > --- a/crypto/drbg.c > +++ b/crypto/drbg.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: BSD-3-Clause OR GPL-1.0+ > /* > * DRBG: Deterministic Random Bits Generator > * Based on NIST Recommended DRBG from NIST SP800-90A with the fol= lowing > @@ -9,38 +10,6 @@ > * > * Copyright Stephan Mueller , 2014 > * > - * 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= PL 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 non-GPL portion of this notice does not match BSD-3-Clause as currently defined by SPDX (see: https://github.com/spdx/license-list-XML/blob/main/src/BSD-3-Clause.xml). This is at least the third time in your recent patches that you have assumed that a non-GPL license matches a particular SPDX identifier without (apparently) checking. That's assuming it's appropriate to represent this as a dual license and omit the 'ALTERNATIVELY' parenthetical. I'm not sure how I feel about that. Richard