Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5543650rwd; Wed, 24 May 2023 03:28:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oEjXLURMRZ7rJj3TA3L7kmd1qY24quo34Qxmgxm49QTx6wbdvE9g2/ZkWnmks9wHid3zW X-Received: by 2002:a17:903:1c1:b0:1af:e2e2:2bd9 with SMTP id e1-20020a17090301c100b001afe2e22bd9mr1521245plh.17.1684924085908; Wed, 24 May 2023 03:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684924085; cv=none; d=google.com; s=arc-20160816; b=igwPYBRWS2uhr1N0aKbfl09cu0Abg26aY8bIVoISIdtRARtgdwmOR4Wh0MaLywbmG/ dqlXnIu0AxfVSI3vkEKY6+s6gNkG+Rwex97xscdLfG3WHBGft6r14I2oPIi5YSbjJ/Un JdPQjy3uFbMr4hMu0lAMDBOfymH22PrXAGFrqkc+vAW188gpVEGSyVKwownubJtfBMeS 5V7nlc6gDutnq6e/lIJUqc3yXztPi3biXeSqyADbQ3ygxGtwxcytDnaOaYzEZu7rqWu3 L3ROAurem8ZoWGqGdmK/9nfvWTopXzQTmEsNzck7miVV1ZZCdnqRO5Y6M/Xc9ks8TJS1 wnbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xM1BozUXMXK8FZ7UiIDAYvB2LAsQliosa/NIS0g7cJY=; b=unC1cfp2O1lLwDOhyvOIgzw9pxI1I06MziujbSFujOnoZ8RjqI7ZS/xnvC9jDEdwrm /DR0HiTbfLluZT4Oogo7AL0IQPN25H35Jo1LfBuPS2vqIllBk8TFluQzP4z0sOI7Wm+U eScNr6TcSMhj9L3Hazbwu1kPY9otfI0BJjMZ1BZreU3XSUWj5DnGdxSqNAWAscLVvZAq s5KVgv/uzb33Sy0e53+n/Hp4fOvY5uoTzqEEyLHAFPatUTVW39lPOduJAnpfqD/cmR9U pLeVL8FirHAEF8tQjwkuufPRZTwJ7321fpGlzI1m7HaxhegAS7fi4+w0bhbgYBqLSvQh SQug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902724900b001aadd02b88fsi7961465pll.233.2023.05.24.03.27.48; Wed, 24 May 2023 03:28:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232234AbjEXKPB (ORCPT + 99 others); Wed, 24 May 2023 06:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232381AbjEXKO0 (ORCPT ); Wed, 24 May 2023 06:14:26 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB9A10C3 for ; Wed, 24 May 2023 03:13:49 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1q1lV2-00Ckzi-A3; Wed, 24 May 2023 18:13:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Wed, 24 May 2023 18:13:44 +0800 Date: Wed, 24 May 2023 18:13:44 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Taehee Yoo , syzbot+a6abcf08bad8b18fd198@syzkaller.appspotmail.com Subject: Re: [PATCH] crypto: x86/aria - Use 16 byte alignment for GFNI constant vectors Message-ID: References: <20230516181419.3633842-1-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516181419.3633842-1-ardb@kernel.org> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 Tue, May 16, 2023 at 08:14:19PM +0200, Ard Biesheuvel wrote: > The GFNI routines in the AVX version of the ARIA implementation now use > explicit VMOVDQA instructions to load the constant input vectors, which > means they must be 16 byte aligned. So ensure that this is the case, by > dropping the section split and the incorrect .align 8 directive, and > emitting the constants into the 16-byte aligned section instead. > > Note that the AVX2 version of this code deviates from this pattern, and > does not require a similar fix, given that it loads these contants as > 8-byte memory operands, for which AVX2 permits any alignment. > > Cc: Taehee Yoo > Fixes: 8b84475318641c2b ("crypto: x86/aria-avx - Do not use avx2 instructions") > Reported-by: syzbot+a6abcf08bad8b18fd198@syzkaller.appspotmail.com > Tested-by: syzbot+a6abcf08bad8b18fd198@syzkaller.appspotmail.com > Signed-off-by: Ard Biesheuvel > --- > arch/x86/crypto/aria-aesni-avx-asm_64.S | 2 -- > 1 file changed, 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt