Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 666B0C6FD1E for ; Fri, 10 Mar 2023 11:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbjCJLaw (ORCPT ); Fri, 10 Mar 2023 06:30:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjCJLal (ORCPT ); Fri, 10 Mar 2023 06:30:41 -0500 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 1BF91CA16; Fri, 10 Mar 2023 03:30:40 -0800 (PST) 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 1paaxA-002Y6P-VB; Fri, 10 Mar 2023 19:30:29 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 10 Mar 2023 19:30:28 +0800 Date: Fri, 10 Mar 2023 19:30:28 +0800 From: Herbert Xu To: Eric Biggers Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, samitolvanen@google.com, stable@vger.kernel.org Subject: Re: [PATCH] crypto: arm64/aes-neonbs - fix crash with CFI enabled Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230227063223.1829703-1-ebiggers@kernel.org> X-Newsgroups: apana.lists.os.linux.cryptoapi Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Eric Biggers wrote: > From: Eric Biggers > > aesbs_ecb_encrypt(), aesbs_ecb_decrypt(), aesbs_xts_encrypt(), and > aesbs_xts_decrypt() are called via indirect function calls. Therefore > they need to use SYM_TYPED_FUNC_START instead of SYM_FUNC_START to cause > their type hashes to be emitted when the kernel is built with > CONFIG_CFI_CLANG=y. Otherwise, the code crashes with a CFI failure if > the compiler doesn't happen to optimize out the indirect calls. > > Fixes: c50d32859e70 ("arm64: Add types to indirect called assembly functions") > Cc: stable@vger.kernel.org > Signed-off-by: Eric Biggers > --- > arch/arm64/crypto/aes-neonbs-core.S | 9 +++++---- > 1 file changed, 5 insertions(+), 4 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