Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1054917ybh; Thu, 16 Jul 2020 01:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXim4RIHpq6oD/9FYH38qIc7QHSVYWDRnBVAoVb0qSgInjzvKMgxPuprZ8xKYJdk7sxqmw X-Received: by 2002:a05:6402:3099:: with SMTP id de25mr3547692edb.228.1594888983833; Thu, 16 Jul 2020 01:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594888983; cv=none; d=google.com; s=arc-20160816; b=La3O87uoNiCaOsVJh5Sg8kCb+jxKYFMfyl05VdR4fXDIUxAYXgdRYzChCYpTx5xO2F PeApQyI8AOVcckiIDjeOmzI/dREDnCn5hZqMaTOV/y/YwFQlIeirv5nb602+aWJ7CLk1 v7FX+hu5YSyDJAb3adQO/7ZFeBJ5jIyy/YdkXBzkIfGOpAZ4LIOchRYn38BOntpWy2RO YlbFhb6Bm7qx4ZRDg0Q7CimMJ0llHtT0JY3HWH5Ji3Re2+Q7e6Hefp9vS/IINA5FTraA tgjld6PeSoDA7mAi16+N2yfqrklklsVsaeOU2ueNh2Yj0ZCHMwjNfSFtmLSNcQhgJFmE 5RgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=28+JugehClqvsTJ8Y+Ybn2iAIPD0Av1CR6xIPIh/nMc=; b=Za6ceqJVSDLEJ5vmbz7sLVhM1l7A47zrjJx70xDdzqQ3uJbsPuikG4t5c3ErlKOdUT ikisbh5v58P0z07wVvj+wyXEpPe6sn3CpqZltrnE1SvHyBvq/KioNQF+aiDAdQDVUYVU x9etcxYNaWNkxx4ldR02G5Dlz1dkmWkU6fd1Efk5vtAhBd768W6xewxK2kM50FxVCQHp G9wFj7sAjnFz7cVDXccqJTbHoFOYMMP6f1wgR8ujNlje9GLtvvLhlBrTIPJULRYAtiOR KfN/nDSFLf2JTgb5ZxIGNp3Fq63KuPASZACGBiOHgGjMnqdHbMuOGypVGNAvDvFQfLB/ 6PEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zW2VpktS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si2783874edx.347.2020.07.16.01.42.31; Thu, 16 Jul 2020 01:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zW2VpktS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725921AbgGPIla (ORCPT + 99 others); Thu, 16 Jul 2020 04:41:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:60878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgGPIl3 (ORCPT ); Thu, 16 Jul 2020 04:41:29 -0400 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 191FB2067D for ; Thu, 16 Jul 2020 08:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594888889; bh=UfILHqeGuXflAqkn8DJhglwizrm3+RlAHJ5MI8iyvpk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=zW2VpktSoGR+7NxY0amEo4JoW44caiL4fV6A13OKp8jKq5wUCuH6rypSvpnV/31mj sVqhN/fmNSwtn3W5QUOo2lhjeWsImwhWupU2QaCJrNPp8WFq2yqzVD/Y/uUhKKBfPD Okv7n1+Jt5SS/UdPXq2GdshCBH476OZ14XX+hjSo= Received: by mail-oi1-f173.google.com with SMTP id t198so4474585oie.7 for ; Thu, 16 Jul 2020 01:41:29 -0700 (PDT) X-Gm-Message-State: AOAM530oPJRXBg+uCT/HEgVUL9+UuoKz5ogiSRmuNe1ZEqhmjmEPaSK6 QiLBT4ibUTJvASlk+QMHhdcVVCPR7IWecVtB51c= X-Received: by 2002:aca:d643:: with SMTP id n64mr3033847oig.33.1594888888443; Thu, 16 Jul 2020 01:41:28 -0700 (PDT) MIME-Version: 1.0 References: <2543601.mvXUDI8C0e@positron.chronox.de> <5722559.lOV4Wx5bFT@positron.chronox.de> <4650810.GXAFRqVoOG@positron.chronox.de> <20200716073032.GA28173@gondor.apana.org.au> In-Reply-To: <20200716073032.GA28173@gondor.apana.org.au> From: Ard Biesheuvel Date: Thu, 16 Jul 2020 11:41:17 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/5] lib/mpi: Add mpi_sub_ui() To: Herbert Xu Cc: =?UTF-8?Q?Stephan_M=C3=BCller?= , Linux Crypto Mailing List , Marcelo Cerri , Tianjia Zhang , Ard Biesheuvel , nhorman@redhat.com, simo@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 16 Jul 2020 at 10:30, Herbert Xu wrot= e: > > On Sun, Jul 12, 2020 at 06:39:54PM +0200, Stephan M=C3=BCller wrote: > > > > diff --git a/lib/mpi/mpi-sub-ui.c b/lib/mpi/mpi-sub-ui.c > > new file mode 100644 > > index 000000000000..fa6b085bac36 > > --- /dev/null > > +++ b/lib/mpi/mpi-sub-ui.c > > @@ -0,0 +1,60 @@ > > +// SPDX-License-Identifier: GPL-2.0-or-later > > +/* mpi-sub-ui.c - MPI functions > > + * Copyright 1991, 1993, 1994, 1996, 1999-2002, 2004, 2012, 2013,= 2015 > > + * Free Software Foundation, Inc. > > + * > > + * This file is part of GnuPG. > > + * > > + * Note: This code is heavily based on the GNU MP Library. > > + * Actually it's the same code with only minor changes in the > > + * way the data is stored; this is to support the abstraction > > + * of an optional secure memory allocation which may be used > > + * to avoid revealing of sensitive data due to paging etc. > > + * The GNU MP Library itself is published under the LGPL; > > + * however I decided to publish this code under the plain GPL. > > + */ > > Hmm, you said that this code is from GNU MP. But this notice clearly > says that it's part of GnuPG and is under GPL. Though it doesn't > clarify what version of GPL it is. Can you please clarify this with > the author? > GnuPG was relicensed under GPLv3 in ~2007, IIRC, so given the copyright years and the explicit statements that the file is part of GnuPG and not under the original LGPL license, there is no way we can take this code under the kernel's GPLv2 license.