Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1772416imm; Thu, 27 Sep 2018 02:11:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV62uLQpGDkz4QAMsOoFxZSPY9qotPITZxf9RvbhCoHsvpbL0FUEHu10ttD+qcvNBk3ITHl+P X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr10213191pla.178.1538039519096; Thu, 27 Sep 2018 02:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039519; cv=none; d=google.com; s=arc-20160816; b=FgpNKJyq0VOWiM/7aB7mqRFywo5uNbUQPHGh4aqoH+CUU/LzD4jUKxk/h/eLF+QxD7 x3m+JLoPRm9dlrMlu7ZamxJA5uXUhN8RQQZ1P8vjz/hW9nS85r805HY8W+kZ6Tk8r/Y7 Nx4PsWK0nbtSRKnCTjk2EzX8QGdVRYkJdzgDBvCTPwbqw3QBSi2Nt142SMbGq2ByrGba ApXQW5+yqafbET7v5s1sV8izDi/HOm31FRJ8/0gKk12AyvKI9IsRGMY3D68dEmhkiFMx pXHaTXfAjr556tFmv+/8WUwIfoUdC8QmwYwO9fhWqVhLEkCJHGVYX/ZiJlO4E0Uhg1jY VxdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=eSuWoi5fOkHLBofTH/i6Mugm0JMnve4t+zWUNoZlY8o=; b=G4HaR1x6u0bpBXN//e9noKKkrry5mbhjCysa4rGWQ7C6KiBejQkXpsuL6VmBQeI4kC J1cCfgYWflfHAw29EwH9aOWbtq4iunK8FzUIwcIptlC+YV+S+ljZV+U/BDIXGWHqTt2j XiQ+mYLd+YfpFrx4cLnDR9vtz/ioQLK/6hLme0TBKWhwv1thED4avPibG8iyULPpuoVK m66O0pLpJujirVJvA/7IpIk6etpoJtZH5hjQ0OdvgCCHsOsr+2DJS47gB2ugEeWZH0qZ 5B1ajX5GFOhTP5wKYLsNHmIxD26PEeMNga6V7KY1f+R6AFqnQNrsZ64vXBQjl0i7paEm pY1A== 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 x23-v6si1427720plr.57.2018.09.27.02.11.44; Thu, 27 Sep 2018 02:11:59 -0700 (PDT) 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 S1728477AbeI0P2K (ORCPT + 99 others); Thu, 27 Sep 2018 11:28:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55190 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbeI0P2K (ORCPT ); Thu, 27 Sep 2018 11:28:10 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5225B1117; Thu, 27 Sep 2018 09:10:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zdenek Kaspar , Ondrej Mosnacek , Herbert Xu Subject: [PATCH 4.18 49/88] crypto: x86/aegis,morus - Do not require OSXSAVE for SSE2 Date: Thu, 27 Sep 2018 11:03:30 +0200 Message-Id: <20180927090306.774764066@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180927090300.631426620@linuxfoundation.org> References: <20180927090300.631426620@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ondrej Mosnacek commit 24568b47d48ec8c906fd0f589489a08b17e1edca upstream. It turns out OSXSAVE needs to be checked only for AVX, not for SSE. Without this patch the affected modules refuse to load on CPUs with SSE2 but without AVX support. Fixes: 877ccce7cbe8 ("crypto: x86/aegis,morus - Fix and simplify CPUID checks") Cc: # 4.18 Reported-by: Zdenek Kaspar Signed-off-by: Ondrej Mosnacek Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- arch/x86/crypto/aegis128-aesni-glue.c | 1 - arch/x86/crypto/aegis128l-aesni-glue.c | 1 - arch/x86/crypto/aegis256-aesni-glue.c | 1 - arch/x86/crypto/morus1280-sse2-glue.c | 1 - arch/x86/crypto/morus640-sse2-glue.c | 1 - 5 files changed, 5 deletions(-) --- a/arch/x86/crypto/aegis128-aesni-glue.c +++ b/arch/x86/crypto/aegis128-aesni-glue.c @@ -379,7 +379,6 @@ static int __init crypto_aegis128_aesni_ { if (!boot_cpu_has(X86_FEATURE_XMM2) || !boot_cpu_has(X86_FEATURE_AES) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; --- a/arch/x86/crypto/aegis128l-aesni-glue.c +++ b/arch/x86/crypto/aegis128l-aesni-glue.c @@ -379,7 +379,6 @@ static int __init crypto_aegis128l_aesni { if (!boot_cpu_has(X86_FEATURE_XMM2) || !boot_cpu_has(X86_FEATURE_AES) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; --- a/arch/x86/crypto/aegis256-aesni-glue.c +++ b/arch/x86/crypto/aegis256-aesni-glue.c @@ -379,7 +379,6 @@ static int __init crypto_aegis256_aesni_ { if (!boot_cpu_has(X86_FEATURE_XMM2) || !boot_cpu_has(X86_FEATURE_AES) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; --- a/arch/x86/crypto/morus1280-sse2-glue.c +++ b/arch/x86/crypto/morus1280-sse2-glue.c @@ -40,7 +40,6 @@ MORUS1280_DECLARE_ALGS(sse2, "morus1280- static int __init crypto_morus1280_sse2_module_init(void) { if (!boot_cpu_has(X86_FEATURE_XMM2) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; --- a/arch/x86/crypto/morus640-sse2-glue.c +++ b/arch/x86/crypto/morus640-sse2-glue.c @@ -40,7 +40,6 @@ MORUS640_DECLARE_ALGS(sse2, "morus640-ss static int __init crypto_morus640_sse2_module_init(void) { if (!boot_cpu_has(X86_FEATURE_XMM2) || - !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV;