Received: by 10.223.176.5 with SMTP id f5csp1123127wra; Fri, 2 Feb 2018 11:35:07 -0800 (PST) X-Google-Smtp-Source: AH8x226Lv09blu9zzGuwr5goAV4Rdyb2Ev289MnJpemBi5mXBCPZBCfffut+yd5w5eHlJydhs7ZU X-Received: by 10.98.157.26 with SMTP id i26mr40870331pfd.12.1517600107375; Fri, 02 Feb 2018 11:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517600107; cv=none; d=google.com; s=arc-20160816; b=Pmh1lwSZBQU0rK64dvN2ZjTCNEFjkSPKvF32BgfggDvtzp2oYrNnU9vIJmRnhCttvP jImQJ+xgOSlVmuZ1KucnqFpuJmnVByDRWWP4UdDEI7lBXnEaHW8uY5GK+qG96Ss6HzGw GZrQY08ciOL8PNJPtNtZBx+CIH9ZiydM3gu5u1/wFsW4jkhTNzQJlLOW3U5jrl7OfrC4 1ts4QeMtU3TEt38+dapemCjejfl6SjVh1iwdfm+3SKkUa6u/jKDU6iLqxgYdW3PeiGex 3Xjo0OKJJ3sfhM0lv66DJ8krrECjOd/i4CGsGFIFuO7+hsqrzlAwcJeuQALW8W43JDGJ +4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=v2Kco4+OAG88NZ/yXOp5ay7QLGjdP7a3xAJQ5LsPCGk=; b=VgopGsWhZbWtHNjimwy5ZeNqX5cTi/k6GsZRaCdkcQ13DNgObrYFZYau2+27WebPyW Lvw8i8cMWF8HCb6X27+r8xXJA9vmIIAPG94j3P5Q88JAGqaNrGSXI/mfZ7s19VDDIJ18 vk3oN2mtDiJZEVt8+eQFfGgJUlMiNWy6d2C7tAvRciIe0Y41d6tMuolh1/jNO5ao2FZK K8PnbsHm27h3YVoJ6i3U2uGBCIcl/+eyOaYm5Bm1oppOOJOcKbMIPZWMpGE562zG3BVn W0dDwNWR1ir+3m9lH7tdozKvNXhKrgNShd6opktr6iNKhVlW9/toAwwRMR6fekrCX4sF EAgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si2322830plp.253.2018.02.02.11.34.52; Fri, 02 Feb 2018 11:35:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbeBBSLR (ORCPT + 99 others); Fri, 2 Feb 2018 13:11:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36958 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129AbeBBRHM (ORCPT ); Fri, 2 Feb 2018 12:07:12 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 741D6EC6; Fri, 2 Feb 2018 17:07:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sabrina Dubroca , Stefano Brivio , Herbert Xu Subject: [PATCH 4.14 010/156] crypto: aesni - fix typo in generic_gcmaes_decrypt Date: Fri, 2 Feb 2018 17:56:31 +0100 Message-Id: <20180202140840.787171740@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sabrina Dubroca commit 106840c41096a01079d3a2025225029c13713802 upstream. generic_gcmaes_decrypt needs to use generic_gcmaes_ctx, not aesni_rfc4106_gcm_ctx. This is actually harmless because the fields in struct generic_gcmaes_ctx share the layout of the same fields in aesni_rfc4106_gcm_ctx. Fixes: cce2ea8d90fe ("crypto: aesni - add generic gcm(aes)") Signed-off-by: Sabrina Dubroca Reviewed-by: Stefano Brivio Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- arch/x86/crypto/aesni-intel_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -1115,7 +1115,7 @@ static int generic_gcmaes_decrypt(struct { __be32 counter = cpu_to_be32(1); struct crypto_aead *tfm = crypto_aead_reqtfm(req); - struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); + struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); void *aes_ctx = &(ctx->aes_key_expanded); u8 iv[16] __attribute__ ((__aligned__(AESNI_ALIGN)));