From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11E4AE9A02C for ; Wed, 18 Feb 2026 21:40:18 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fGVKr57lpz2xjQ; Thu, 19 Feb 2026 08:40:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771450816; cv=none; b=OYH2tRef+A6Nl4FESSq++a9aMzExCGw8HCYlXYz2FwOnZU+hUkG74MKOtc6P1A0DPgl+7+Py0uf2X68L38qIQQJOXjb8DecgB3ieBBbLH5/c4skUaGJ39nPhTRaEEc8CE9qGoV8CS3phtVGWYaVmnbqXlWcT8wUXiVSz+T9KJYQ9RuWJCT4KGwg2d+zilr07PxLPtREgFW5A01h74MNGKGlDkaGjkubWaLcWa30ZD4GVId9JMOZQViic8Kq49Q0DLwYQKw6gDm/lx6RVHqY0ZtIHDmUF5kFiPOMWhmVNcIjUF6HK3IPvQSTYIXKGfnik8/6KeK9EASVctTHDBXLJ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771450816; c=relaxed/relaxed; bh=Fvsgj3xzlM8pk0E82os1IY2C0CLexVFX94N1M/Seirg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jHSeEZrC+gpPns7pGb3Jbu2vXRv16mgSNQok+pPIG4YMleYg9sQsceU8AkAgMw4TXCwnr+TbybrNeXo2Mp6LNi1iRA8UmM2jM+SviLtAmh4mvV2liLp/5Zd3C9rhFbAua6145n4ARSitx4oJ9gNckzJgy3DgFdY1HHlL72ub5yfMFhPRhVgH97CAvyGgRFJAXIJInLoC6L/Axi0NJq4tqZpaqzfu+JoXEkbYSvzWsaX4slKoC1LHEJjK6yWDFSJ5Yi3GiLt4K6vq1ba6Thw8PbNR21DPftAEZ6qZPrxoU4t8N4/sLeMEyRNUG2Y90oME2ASvFJbkOzUicSkvTGfVZA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FoVc5i96; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=ebiggers@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=FoVc5i96; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=ebiggers@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fGVKq6Dt6z2xC3 for ; Thu, 19 Feb 2026 08:40:15 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id E091E40E3C; Wed, 18 Feb 2026 21:40:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73187C116D0; Wed, 18 Feb 2026 21:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771450812; bh=OnNhwTWGy/gIc8Om3z5bDNQcIBpK83c1vmDUBtOLdGA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FoVc5i96SJAUmQbtszCb/kqsj8vDjLUA6HIeHKU8lyS+U/nA8WTQCF+sN0/FZNOQW lPknCSE86KipezFLgw8J+DFyNHF4eYVFe7Z3R2z1M54qbcGhz9al2wgH2Hht3bMfCG sikVKakhO6YPrBXk1PZstcoYNGg4g3P9uFXyrRH4TX4Dcbxe54rNUMuF3HwklS6PtO y3qSN/YibzJxa/MIRwoFR1hAXYGqvWnp9FOiS47kRS3wZQsGvOjHcNfDQI+2xb0ihO q8MEtRtu9jVKDbkEQDO8V9c4Tp9dtVlr2jPxH2Pvu5aNvfIwSwaQLZXAYHuu5lsobK N/xEoE+Cs15jA== Date: Wed, 18 Feb 2026 13:40:10 -0800 From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , "Jason A . Donenfeld" , Herbert Xu , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] lib/crypto: powerpc/aes: Fix rndkey_from_vsx() on big endian CPUs Message-ID: <20260218214010.GA2128@quark> References: <20260216022104.332991-1-ebiggers@kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260216022104.332991-1-ebiggers@kernel.org> On Sun, Feb 15, 2026 at 06:21:04PM -0800, Eric Biggers wrote: > I finally got a big endian PPC64 kernel to boot in QEMU. The PPC64 VSX > optimized AES library code does work in that case, with the exception of > rndkey_from_vsx() which doesn't take into account that the order in > which the VSX code stores the round key words depends on the endianness. > So fix rndkey_from_vsx() to do the right thing on big endian CPUs. > > Fixes: 7cf2082e74ce ("lib/crypto: powerpc/aes: Migrate POWER8 optimized code into library") > Signed-off-by: Eric Biggers > --- > lib/crypto/powerpc/aes.h | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next - Eric