From patchwork Mon Jan 4 15:55:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 357028 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=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 9C06BC433DB for ; Mon, 4 Jan 2021 15:56:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F80F21D93 for ; Mon, 4 Jan 2021 15:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727303AbhADP4o (ORCPT ); Mon, 4 Jan 2021 10:56:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:35882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbhADP4n (ORCPT ); Mon, 4 Jan 2021 10:56:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04E2220757; Mon, 4 Jan 2021 15:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609775763; bh=ycYNzQKmxDCQaBO4UjcNpcmpGLPKzE0hFsZmGwf7qOU=; h=From:To:Cc:Subject:Date:From; b=tksJea7i3pWewH7OAj3KnU52YYEWWD4PAl6Uo2SkjWTJ1+ls9ltQPfHCCzmq8JE34 Kcq0jwYsMOj1kcBM7RyVrd18tCO3CWJHrlOxChdU1Lx0r7r/LggFGoImWXicyP6d0h R7X/6YvJMWhZARSnMq8MuM3qtR8nz1j6VpcfvdmohmAOq4tuzupwbI4mZeSVAZQUDS rGcWnCgEe+2SAAyq9ZebtOyGHRHfLAyB59hl+XP6CyBcLXIKBablcurdX1r317aZBG V2ru5+5s0NpqkBdl7rHwgUd7ZxGTbok26X4zC3e4S7UQmruafkOiv5RVyS9fUJGUsW HyZakn80vo4Zw== From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: Ard Biesheuvel , Megha Dey , Eric Biggers , Herbert Xu Subject: [PATCH v2 0/5] crypto: gcm-aes-ni cleanups Date: Mon, 4 Jan 2021 16:55:45 +0100 Message-Id: <20210104155550.6359-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Clean up some issues and peculiarities in the gcm(aes-ni) driver. Changes since v1: - fix sleep while atomic issue reported by Eric - add patch to get rid of indirect calls, to avoid taking the retpoline performance hit Cc: Megha Dey Cc: Eric Biggers Cc: Herbert Xu Ard Biesheuvel (5): crypto: x86/gcm-aes-ni - prevent misaligned buffers on the stack crypto: x86/gcm-aes-ni - drop unused asm prototypes crypto: x86/gcm-aes-ni - clean up mapping of associated data crypto: x86/gcm-aes-ni - refactor scatterlist processing crypto: x86/gcm-aes-ni - replace function pointers with static branches arch/x86/crypto/aesni-intel_glue.c | 321 ++++++++------------ 1 file changed, 121 insertions(+), 200 deletions(-) base-commit: 858e88e2e54cd50cd43f3a8b490b64c22ae8267b