Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933288AbdC3At3 (ORCPT ); Wed, 29 Mar 2017 20:49:29 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39158 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933267AbdC3At1 (ORCPT ); Wed, 29 Mar 2017 20:49:27 -0400 Subject: Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code To: Michael Ellerman , Michal Suchanek , Herbert Xu , "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Geert Uytterhoeven , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "paulmck@linux.vnet.ibm.com" , appro@openssl.org References: <20170329125639.14288-1-msuchanek@suse.de> <87r31flisi.fsf@concordia.ellerman.id.au> From: Tyrel Datwyler Date: Wed, 29 Mar 2017 17:49:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <87r31flisi.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17033000-8235-0000-0000-00000B37FDA6 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006874; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000206; SDB=6.00840553; UDB=6.00413722; IPR=6.00618548; BA=6.00005248; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014857; XFM=3.00000013; UTC=2017-03-30 00:49:24 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17033000-8236-0000-0000-00003AB93146 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-29_19:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703300006 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3383 Lines: 83 On 03/29/2017 05:17 PM, Michael Ellerman wrote: > Michal Suchanek writes: > >> 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: >> >> # 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 >> >> # >> # ==================================================================== >> # Written by Andy Polyakov 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/. >> # ==================================================================== >> >> 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. > > It seems pretty clear to me that the intention is that the CRYPTOGAM > license applies. > > If you visit it's URL it includes: > > ALTERNATIVELY, provided that this notice is retained in full, this > product 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. > > > I agree that the text in the file is not sufficiently clear about what > license applies, but I'm unconvinced that there is any code here that is > actually being distributed incorrectly. The original commit message also outlines that the authors collaborated directly with Andy. commit 5c380d623ed30b71a2441fb4f2e053a4e1a50794 Author: Leonidas S. Barbosa Date: Fri Feb 6 14:59:35 2015 -0200 crypto: vmx - Add support for VMS instructions by ASM OpenSSL implements optimized ASM algorithms which support VMX instructions on Power 8 CPU. These scripts generate an endian-agnostic ASM implementation in order to support both big and little-endian. - aesp8-ppc.pl: implements suport for AES instructions implemented by POWER8 processor. - ghashp8-ppc.pl: implements support for GHASH for Power8. - ppc-xlate.pl: ppc assembler distiller. These code has been adopted from OpenSSL project in collaboration with the original author (Andy Polyakov ). Signed-off-by: Leonidas S. Barbosa Signed-off-by: Herbert Xu -Tyrel > > Getting the text in the header changed to be clearer seems like the > obvious solution. > >> 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. > > Did you try contacting anyone else? Like perhaps the powerpc or crypto > maintainers, or anyone else who's worked on the driver? > > Sending a patch to delete all the code clearly works to get people's > attention, I'll give you that. >