Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1016977yba; Thu, 4 Apr 2019 02:30:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWlwi2PUVbCbcxZNC21lQrRTthckXjh1M+txd/w8VBsH5ZHbI9QYRKZuuUlqu8A1jTHHFL X-Received: by 2002:a17:902:b94a:: with SMTP id h10mr5358358pls.82.1554370253912; Thu, 04 Apr 2019 02:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370253; cv=none; d=google.com; s=arc-20160816; b=Wm6ApUHHUXrv5dgb3DhByHY6gy/e1tNGxPibgaj2MmECrrGnlccUk3yQEYeWOBz/Tf USI3WN8+jpz7hs/EolRiPQEAhWNzRxxnXbvIQV03b8IzM81JTz+adRK91RJsZLzMqrAf lbPdpweG5huhlkswStKPh34jgfrq6PQl2LNRQI9xjMB1FQZWqic/KSqZ8KjcCaZ0T+1r cOVQ3OWvFZ3hA6d0BfQccQtN10lGKEvHqEeTzCMh/ZlMghbTeX+GngG95/1+3pApbQIT 75NKZkbf/oLROTz4oStG9LM1LeyASw76+OVs1rtDs4Fmi1HwKz/i/VE3aDs/EnjpdG56 RthA== 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:dkim-signature; bh=OBpWPgKessBhChq+z5S9G/qTGsFeWJlbG1t8xUSyni0=; b=CkimJ6IFBdd3d3XgzycTzDeph2sFrDnZTFr0bLlRZvdNRG9OhWh4Txtp4B4L3PXGRC CkxYEzBRg2zPC10PBqgecim7KIcZpBL3Vvisc7QURP6nMwUVkhJJZOjE0NFMN2X3v8NC +HOrO6rGWnxTJiqv9m3QAPj36lALE9ey+oWbdaP4gO4iGUh2IxaCVKVY/UDpWspaLJtM e/t7mfDmfuwzEBMmuB9YogwwyrLHNmJUKtvyv3VjnDhA3Hzg7nyqku6ai5AW/mm28utt 8F9rBUF16fFFh9PfRJYyR9lvLmjsvNpdKHfC2vrSVTIxS8xC2lcAf/MOh2/CInjqx3/7 CKVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tXz1nLRp; 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 35si16080333pgz.383.2019.04.04.02.30.38; Thu, 04 Apr 2019 02:30:53 -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; dkim=pass header.i=@kernel.org header.s=default header.b=tXz1nLRp; 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 S1733036AbfDDJKg (ORCPT + 99 others); Thu, 4 Apr 2019 05:10:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:50258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733027AbfDDJKc (ORCPT ); Thu, 4 Apr 2019 05:10:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D42C20693; Thu, 4 Apr 2019 09:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369031; bh=XtdIZk+iiDUGDO4lLx+Yu2nAA+MCHSeRRJ4SZ8KUWyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tXz1nLRpPddyxp2mpLiaYgbz+C1L1fFEFHSoa4w+g6+3hZR0JS8EHqnHgiPzkymZ+ 8oyitU5c4IEqOhuIb/RwN5LaHqVsHqJb8kQlDzzThH9gnaflPzLLaKWsKqW716bVKm 3f0mP+45t2AVgt8rlkphUAaaPqdQQhx9gvT0iT1k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mahipal Challa , Jan Glauber , Eric Biggers , Herbert Xu , Sasha Levin Subject: [PATCH 5.0 064/246] crypto: cavium/zip - fix collision with generic cra_driver_name Date: Thu, 4 Apr 2019 10:46:04 +0200 Message-Id: <20190404084621.399704367@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 5.0-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 41798036430015ad45137db2d4c213cd77fd0251 ] The cavium/zip implementation of the deflate compression algorithm is incorrectly being registered under the generic driver name, which prevents the generic implementation from being registered with the crypto API when CONFIG_CRYPTO_DEV_CAVIUM_ZIP=y. Similarly the lzs algorithm (which does not currently have a generic implementation...) is incorrectly being registered as lzs-generic. Fix the naming collision by adding a suffix "-cavium" to the cra_driver_name of the cavium/zip algorithms. Fixes: 640035a2dc55 ("crypto: zip - Add ThunderX ZIP driver core") Cc: Mahipal Challa Cc: Jan Glauber Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/cavium/zip/zip_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cavium/zip/zip_main.c b/drivers/crypto/cavium/zip/zip_main.c index be055b9547f6..6183f9128a8a 100644 --- a/drivers/crypto/cavium/zip/zip_main.c +++ b/drivers/crypto/cavium/zip/zip_main.c @@ -351,6 +351,7 @@ static struct pci_driver zip_driver = { static struct crypto_alg zip_comp_deflate = { .cra_name = "deflate", + .cra_driver_name = "deflate-cavium", .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, .cra_ctxsize = sizeof(struct zip_kernel_ctx), .cra_priority = 300, @@ -365,6 +366,7 @@ static struct crypto_alg zip_comp_deflate = { static struct crypto_alg zip_comp_lzs = { .cra_name = "lzs", + .cra_driver_name = "lzs-cavium", .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, .cra_ctxsize = sizeof(struct zip_kernel_ctx), .cra_priority = 300, @@ -384,7 +386,7 @@ static struct scomp_alg zip_scomp_deflate = { .decompress = zip_scomp_decompress, .base = { .cra_name = "deflate", - .cra_driver_name = "deflate-scomp", + .cra_driver_name = "deflate-scomp-cavium", .cra_module = THIS_MODULE, .cra_priority = 300, } @@ -397,7 +399,7 @@ static struct scomp_alg zip_scomp_lzs = { .decompress = zip_scomp_decompress, .base = { .cra_name = "lzs", - .cra_driver_name = "lzs-scomp", + .cra_driver_name = "lzs-scomp-cavium", .cra_module = THIS_MODULE, .cra_priority = 300, } -- 2.19.1