Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp759379ybe; Wed, 4 Sep 2019 07:22:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPg536gAoJiqRdf8d48BcUKt0jKFeheYEkh52QfE4fu5VsHDxnZ7e8bXtNoQi3zRNq1wVM X-Received: by 2002:a62:35c6:: with SMTP id c189mr46431640pfa.96.1567606926377; Wed, 04 Sep 2019 07:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567606926; cv=none; d=google.com; s=arc-20160816; b=e65vkBgeeZyLBQTIsl+MT+ip3Wqt5EKOdu9DQIz+exnAcTXXagwhr6xSEov4YUckL2 U7IThJIFq4rD1y89kOhpjh0nTqB0dZ6PtbpqbQIJh+OZrUo+AbeAPz1kCvrR/Y3bHhM6 YZmblUbdtHsEX5EFr2EBo3uc2JpsENpZ2lwdosBVv986RNfooUmk64ZhNTVRtD8lvV7M jnZmg+Y5XpzD9+deVpLLbdNaz19i+w9Kl3EHjj7OMr6FYAMo/OtakD/FC7ohMNJpCTzo 8mVVLRx6qHou9lLUZwsmaeMT7U5wbHfqLJXd3SB6roCWsQ/7VcVNOUu7B0hqBnKHNhiF 4yiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject; bh=/0NwjXt8HL/ypWKoXu5Gue0tzxN1LLKJg4M20xHBfeg=; b=syGV8k/wbLWC3eOCl4YD8fOc8Tu8/SOXTlGv4aysXZsOA3sAa6CIr+oNdzxwy5gmeZ WlNZ1dK73vvrSskEmG4FdBSJy8CdaOdeKefdLxmB+ASaF6meHzmZh3HY6CuF6S9R/zkx Q2QV3Pwl35dJBN3lQZ94OYD11MF6pJtxy1HWuQHM6HFAvnj+tYIF4wdTxd40WY4DAXjm 729MsppKLAvhsipqezzHKTFqLHHCWCJw0q6iZv+KczOAKg2O8I5uJZouQmC/hVfRYj1O p8Mh4gDPrIG1l9roVRkvuYtDtjJhFjgxo6oi1CkwfAOIxtQAN+IfJHh6J87zD3ZnWBi3 9bqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si17293157plo.47.2019.09.04.07.21.48; Wed, 04 Sep 2019 07:22:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730684AbfIDOVZ (ORCPT + 99 others); Wed, 4 Sep 2019 10:21:25 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:20820 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729993AbfIDOVZ (ORCPT ); Wed, 4 Sep 2019 10:21:25 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x84EIKl4061190 for ; Wed, 4 Sep 2019 10:21:24 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2utecx1jgj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Sep 2019 10:21:24 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Sep 2019 15:21:22 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 4 Sep 2019 15:21:19 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x84ELFhX31785176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Sep 2019 14:21:15 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B5FB14204B; Wed, 4 Sep 2019 14:21:15 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 01A0742041; Wed, 4 Sep 2019 14:21:15 +0000 (GMT) Received: from [10.0.2.15] (unknown [9.152.224.114]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 4 Sep 2019 14:21:14 +0000 (GMT) Subject: Re: [PATCH cryptodev buildfix] crypto: s390/aes - fix typo in XTS_BLOCK_SIZE identifier To: Ard Biesheuvel , linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, Christian Borntraeger , Reinhard Buendgen References: <20190822102454.4549-1-ard.biesheuvel@linaro.org> From: Harald Freudenberger Date: Wed, 4 Sep 2019 16:21:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190822102454.4549-1-ard.biesheuvel@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 19090414-0020-0000-0000-00000367A7E2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19090414-0021-0000-0000-000021BD1799 Message-Id: <8e480e5b-14d5-8ff1-0630-5a53b4646a1c@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-04_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909040141 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 22.08.19 12:24, Ard Biesheuvel wrote: > Fix a typo XTS_BLOCKSIZE -> XTS_BLOCK_SIZE, causing the build to > break. > > Signed-off-by: Ard Biesheuvel > --- > Apologies for the sloppiness. > > Herbert, could we please merge this before cryptodev hits -next? > > arch/s390/crypto/aes_s390.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c > index a34faadc757e..d4f6fd42a105 100644 > --- a/arch/s390/crypto/aes_s390.c > +++ b/arch/s390/crypto/aes_s390.c > @@ -586,7 +586,7 @@ static int xts_aes_encrypt(struct blkcipher_desc *desc, > struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(desc->tfm); > struct blkcipher_walk walk; > > - if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCKSIZE) != 0)) > + if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) > return xts_fallback_encrypt(desc, dst, src, nbytes); > > blkcipher_walk_init(&walk, dst, src, nbytes); > @@ -600,7 +600,7 @@ static int xts_aes_decrypt(struct blkcipher_desc *desc, > struct s390_xts_ctx *xts_ctx = crypto_blkcipher_ctx(desc->tfm); > struct blkcipher_walk walk; > > - if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCKSIZE) != 0)) > + if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) > return xts_fallback_decrypt(desc, dst, src, nbytes); > > blkcipher_walk_init(&walk, dst, src, nbytes); Applied together with the aes xts common code fix and the testmanager fixes, build and tested. Works fine, Thanks. With the 'extra run-time crypto self tests' enabled I see a failure of the s390 xts implementation when nbytes=0 is used (should return with EINVAL but actually returns with 0). I'll send a fix for this via the s390 maintainers. regards Harald Freudenberger