Thread (11 messages) flat view 11 messages, 6 authors, 2017-05-05

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

From: Michal Suchánek <hidden>
Date: 2017-04-13 13:30:36
Also in: linux-crypto, lkml

On Thu, 30 Mar 2017 13:30:17 -0300
Paulo Flabiano Smorigo [off-list ref] wrote:
On 2017-03-29 20:08, Tyrel Datwyler wrote:
quoted
On 03/29/2017 08:13 AM, Michal Such=C3=A1nek wrote: =20
quoted
On Wed, 29 Mar 2017 16:51:35 +0200
Greg Kroah-Hartman [off-list ref] wrote:
 =20
quoted
On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: =20
quoted
While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm
subroutines for XTS") which adds the OpenSSL license header to
drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came
into qestion. The whole license reads:
=20
 # Licensed under the OpenSSL license (the "License").  You may
not use # this file except in compliance with the License.  You
can obtain a # copy
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
=20
 #
 #
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
quoted
quoted
quoted
quoted
# Written by Andy Polyakov [off-list ref] for the OpenSSL #
project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For
further # details see http://www.openssl.org/~appro/cryptogams/.
#
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
quoted
quoted
quoted
quoted
=20
After seeking legal advice it is still not clear that this driver
can be legally used in Linux. In particular the "depending on
where you obtain it" part does not make it clear when you can
apply the GPL and when the OpenSSL license.
=20
I tried contacting the author of the code for clarification but
did not hear back. In absence of clear licensing the only
solution I see is removing this code. =20
=20
A quick 'git grep OpenSSL' of the Linux tree returns several other
crypto files under the ARM architecture that are similarly
licensed. Namely:
=20
arch/arm/crypto/sha1-armv4-large.S
arch/arm/crypto/sha256-armv4.pl
arch/arm/crypto/sha256-core.S_shipped
arch/arm/crypto/sha512-armv4.pl
arch/arm/crypto/sha512-core.S_shipped
arch/arm64/crypto/sha256-core.S_shipped
arch/arm64/crypto/sha512-armv8.pl
arch/arm64/crypto/sha512-core.S_shipped
=20
On closer inspection of some of those files have the addendum that
"Permission to use under GPL terms is granted", but not all of them.
=20
-Tyrel =20
=20
In 2015, Andy Polyakov, the author, replied in this mailing list [1]:
=20
"I have no problems with reusing assembly modules in kernel context.
The whole idea behind cryptogams initiative was exactly to reuse code
in different contexts."
=20
[1] https://patchwork.kernel.org/patch/6027481/
=20
So what? You also got a statement from whoever is relevant from OpenSSL
from where this code is obviously merged? Even if you did has the
e-mail discussion any value whatsoever?

Neither is a replacement for including a proper license statement with
the code. Not by reference to an e-mail discussion or a web site.

Thanks

Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help