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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66F46C04AB6 for ; Mon, 3 Jun 2019 07:56:23 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D776127D17 for ; Mon, 3 Jun 2019 07:56:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="YmMfHSlh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="PaYFTZL8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D776127D17 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45HS6s036vzDqSK for ; Mon, 3 Jun 2019 17:56:21 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kroah.com (client-ip=66.111.4.29; helo=out5-smtp.messagingengine.com; envelope-from=greg@kroah.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kroah.com header.i=@kroah.com header.b="YmMfHSlh"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="PaYFTZL8"; dkim-atps=neutral Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45HS5T5LxLzDqPQ for ; Mon, 3 Jun 2019 17:55:02 +1000 (AEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D4A3621BBE; Mon, 3 Jun 2019 03:54:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 03 Jun 2019 03:54:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=O/GTTn6uITCuul6gLVjhdsyGhir aokxjzWB6VqBqvoA=; b=YmMfHSlh3OGAbOUn7jkPI6Oc0BLjmgb+fIa1h6CzAUi tW/valjo96mDR3AEJIVl0znfhcCC5u3MfYNHHnty58mvUO198BcR29mDG7LPxrex 2Ru/3bDZ/V0I/+bQyTODopVqndP9QTqjw7axAJiIF0Bv9Vb5QV9CBIt4gXbtYWx4 oQiARi6Icw4MwfOaKsWCaetVoCcFPR8Nx5DCufvN4ZrY/cL1ho3Su0rtZN9YSi+f qYDiJWnkMh/7mOTlVPyHD7WZpdmWwAYk0qBu2TWkwkzCjLGRtug7MmKVhjlWczC8 kMKHphTG+JPfhqEg3tc/TI/JUdLrydwInNf5oxak8Yg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=O/GTTn 6uITCuul6gLVjhdsyGhiraokxjzWB6VqBqvoA=; b=PaYFTZL8SOV2rIDMHICT2c ckcytup378mjyMGMNBarcORlI54FB50fKLjfAsX6ttXJJqfFuB95rABr2EdzXw2P 6d+pAu3cWXaNfvX44fXLer6vkmN6a5q1NQNLCQ+32AgUTwdFZGbkFiDsYr4ydHEt rM6kbYz143TCH7t7Q8JEXyab8G0zt0579r8uBybJZJ1yKGJy3j8sCyS6FHl01nVA cpXA9vwADGBBD4RoDleckXg4iUMhrxLMZs/pWCGdlXp0Ea1ewTdF56B7WBBSUvXX 4uilpIp3B6FkLpiymtVMfzbp1jAlF5LtCaXiDGzyvkh9ktfvOQ0ffFli/5cvfGPw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefiedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujggfsehttdertddtredvnecuhfhrohhmpefirhgv ghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucfkphepkeefrdekiedrkeelrd dutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 54E84380089; Mon, 3 Jun 2019 03:54:57 -0400 (EDT) Date: Mon, 3 Jun 2019 09:54:55 +0200 From: Greg KH To: Daniel Axtens Subject: Re: [PATCH BACKPORTv2 4.19, 5.0, 5.1] crypto: vmx - ghash: do nosimd fallback manually Message-ID: <20190603075455.GB7814@kroah.com> References: <20190603020848.9598-1-dja@axtens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190603020848.9598-1-dja@axtens.net> User-Agent: Mutt/1.12.0 (2019-05-25) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Herbert Xu , stable@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, Jun 03, 2019 at 12:08:48PM +1000, Daniel Axtens wrote: > commit 357d065a44cdd77ed5ff35155a989f2a763e96ef upstream. > [backported: the VMX driver did not use crypto_simd_usable() until > after 5.1] > > VMX ghash was using a fallback that did not support interleaving simd > and nosimd operations, leading to failures in the extended test suite. > > If I understood correctly, Eric's suggestion was to use the same > data format that the generic code uses, allowing us to call into it > with the same contexts. I wasn't able to get that to work - I think > there's a very different key structure and data layout being used. > > So instead steal the arm64 approach and perform the fallback > operations directly if required. > > Fixes: cc333cd68dfa ("crypto: vmx - Adding GHASH routines for VMX module") > Cc: stable@vger.kernel.org # v4.1+ > Reported-by: Eric Biggers > Signed-off-by: Daniel Axtens > Acked-by: Ard Biesheuvel > Tested-by: Michael Ellerman > Signed-off-by: Herbert Xu > Signed-off-by: Daniel Axtens > --- > > v2: do stable backport form correctly. Thanks for all of these, now queued up. greg k-h