Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3319210pxf; Mon, 15 Mar 2021 07:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuySw2lOXrdG2UqIDEu++TZ9ZpeOJtJtR8E14XxsY9MUW4AUg7bnPvZf50i2kx8YACixlO X-Received: by 2002:a17:906:c405:: with SMTP id u5mr23825929ejz.341.1615817056621; Mon, 15 Mar 2021 07:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615817056; cv=none; d=google.com; s=arc-20160816; b=yPKSIAx+yEYjsqn60h+5VhHQz/yBXmiAp5TPY7yRwS02qiaQIYCr7OC6IqDg417RDX l7ENVdG1rbCEpDR9CdYWgIF2iumSCnIGbkcCpteJ8SvMhMt31SnpQ72g5Iv+doUjnh/A G/Xnnf3nFzPr/ILsaqcO8OxNPlEX2u+XMkEpxwCecNCpENURjFmanxpSRyjRN4xkg77y XI9LNA1NZ7mTTpNzbMBTb5J2kYFGLz6U1lBE60pvkxQsZBthW0hoqQE+ed+LI+JxxQ1G 5P083VfkZT1ZRfyDn3ZgBhKEwanM1/Fpfez7cO2maaEdsN+WQ1qfvxJVbhPmX1YL0RE3 BfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S0KRvQDhLsAx4cOGo+z86fXlUcb1WTlp/+CvgVvKiWY=; b=VXiRpFM+S/xiCuVaGPn7p6svoSylD5EaijZnsJ+l5UE1mdj+zxmXUR+xyHhO5bAdiz QUJUe1tbtSP+tqlQ2iUa0aWNcImjWBTAGV8SH21P6JuDnanlWC+t8ID32O9u8zHYmP33 E0mTZrhbxl4ms6rGaCz2YjnZ/pPlwqjI9Up8cX8eKV8mRoCDgXDL5lrWo6MnbLEiI7R6 i60bAQnCE7mSpgtVTHPHkgDhTLFc9tTfHRVmW6/L5mABxNeFS23rRhhIdu7bstg/0lEv QkboIzRljoNx0Pz4A9vtovoRTJ83d2NzLDWhTqejNKmPj58tOklDnGmDps0M+vvEbaRc 7C/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jUjeEpG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl16si11278434ejc.330.2021.03.15.07.03.52; Mon, 15 Mar 2021 07:04:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jUjeEpG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233312AbhCOOBX (ORCPT + 99 others); Mon, 15 Mar 2021 10:01:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:33778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbhCON4m (ORCPT ); Mon, 15 Mar 2021 09:56:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72BBB64EEC; Mon, 15 Mar 2021 13:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816598; bh=dyFux2b2LyDMCXe/IMqQ3EfGFCXl+2a5DzNiD2gn5G0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jUjeEpG2AxkgajA6cK3hI12333eKjaAaCTvn922GYpTqGCJd9uCRtyWTNumrH9nbg Y2esaEOEk/8UTz83Zb3P5dy59sUp0UaLkGxyesUa5gclqmhcQTQds7iLkWia4AOzAc uLJZy37U/WqnXTxiBjgzTtg0F2A6vbMdUg/AfLJ8= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Maciej W. Rozycki" , "Jason A. Donenfeld" , Thomas Bogendoerfer Subject: [PATCH 5.10 005/290] crypto: mips/poly1305 - enable for all MIPS processors Date: Mon, 15 Mar 2021 14:51:38 +0100 Message-Id: <20210315135542.124142544@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Maciej W. Rozycki commit 6c810cf20feef0d4338e9b424ab7f2644a8b353e upstream. The MIPS Poly1305 implementation is generic MIPS code written such as to support down to the original MIPS I and MIPS III ISA for the 32-bit and 64-bit variant respectively. Lift the current limitation then to enable code for MIPSr1 ISA or newer processors only and have it available for all MIPS processors. Signed-off-by: Maciej W. Rozycki Fixes: a11d055e7a64 ("crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation") Cc: stable@vger.kernel.org # v5.5+ Acked-by: Jason A. Donenfeld Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/crypto/Makefile | 4 ++-- crypto/Kconfig | 2 +- drivers/net/Kconfig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/mips/crypto/Makefile +++ b/arch/mips/crypto/Makefile @@ -12,8 +12,8 @@ AFLAGS_chacha-core.o += -O2 # needed to obj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o poly1305-mips-y := poly1305-core.o poly1305-glue.o -perlasm-flavour-$(CONFIG_CPU_MIPS32) := o32 -perlasm-flavour-$(CONFIG_CPU_MIPS64) := 64 +perlasm-flavour-$(CONFIG_32BIT) := o32 +perlasm-flavour-$(CONFIG_64BIT) := 64 quiet_cmd_perlasm = PERLASM $@ cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@) --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -772,7 +772,7 @@ config CRYPTO_POLY1305_X86_64 config CRYPTO_POLY1305_MIPS tristate "Poly1305 authenticator algorithm (MIPS optimized)" - depends on CPU_MIPS32 || (CPU_MIPS64 && 64BIT) + depends on MIPS select CRYPTO_ARCH_HAVE_LIB_POLY1305 config CRYPTO_MD4 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -92,7 +92,7 @@ config WIREGUARD select CRYPTO_POLY1305_ARM if ARM select CRYPTO_CURVE25519_NEON if ARM && KERNEL_MODE_NEON select CRYPTO_CHACHA_MIPS if CPU_MIPS32_R2 - select CRYPTO_POLY1305_MIPS if CPU_MIPS32 || (CPU_MIPS64 && 64BIT) + select CRYPTO_POLY1305_MIPS if MIPS help WireGuard is a secure, fast, and easy to use replacement for IPSec that uses modern cryptography and clever networking tricks. It's