Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2004196rwo; Thu, 3 Aug 2023 03:21:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfpnKHA6xzLquMPYAtTUKBiTGRR24mr0tD8kl9mHyt0UOHoZL8Xmx9FaBiae6agzVNRm3G X-Received: by 2002:a17:902:6905:b0:1b1:9233:bbf5 with SMTP id j5-20020a170902690500b001b19233bbf5mr16455098plk.57.1691058067202; Thu, 03 Aug 2023 03:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691058067; cv=none; d=google.com; s=arc-20160816; b=oKkfjF4EA6FzZ7Tufc+AlzUnthdEyx2FPh2cT5YnQ+gqu2VsIFqFdhw+Hkivv1ZUFq I8LFnnIfd3XA8Yanu4GsWArFfyyThpz1Q2rji8V/jFvvwRFVaB+qybAGuKjMp9p0yPYg 87HYDVNKl6u6LIiB1meAjHGVSiRKfKDoFMuq4wJI1iEgaJ5cOq7AXST1JtlXmbXbII+7 es+3+2ZjM6Oi3JCJJ3CrthuzEarX2J4OrqDdX9gnJ4tylpPWmg36gd8NC2moRJLqbJk+ yNHuvGq7ThCLKCQjDyBRueRLrT8yDRV/fNzlxrSUOMEK903Qn89XFjT3GGArfGctviEd GtcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BFZpJsShnV7chFQ6j5N/0sdSDzzhIsWCO5shMzIbM/I=; fh=Dj0smouRXxLqhTBcZfTwvD6Q+HZ7GpzfOpXIajaZL3M=; b=uyvtG5giSQ0rJGZ+Adr6Pm1820DmPqPOut2DStxx/eAPBrqPKA5JTWEPqUQoM8QYob InYr2tAhgl0O5rkIMohF/XvwDK52dOy+TOuWo7/NBo7EaTWIPCpMBwnYLLnhlOj+AHj5 6Hes9j4yyajkF3aUH/30aBh0riHv93TpDu0eDgk+shHGo53iu5eElDL6dke2sSDBCQ2u X2dOXG+zTf5163AMeCpsprZ0/Veyd+DXDIkEqiqdL6n5SHlbjKiSzinsceLdy2eTihTQ hEHDdSXgKAtbjihV+cAwtfGBsaEy7Z0adY64uane1dTYuUMMZqUlqRrZL4NmczsllzLh p/ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f6TRORx2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a170903110700b001b8b2865f38si12893091plh.170.2023.08.03.03.20.53; Thu, 03 Aug 2023 03:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f6TRORx2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235146AbjHCJ7j (ORCPT + 99 others); Thu, 3 Aug 2023 05:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235104AbjHCJ7W (ORCPT ); Thu, 3 Aug 2023 05:59:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14FCB3594; Thu, 3 Aug 2023 02:59:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9707061CE6; Thu, 3 Aug 2023 09:59:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CA82C433CA; Thu, 3 Aug 2023 09:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691056754; bh=BFZpJsShnV7chFQ6j5N/0sdSDzzhIsWCO5shMzIbM/I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=f6TRORx24cAafVSY/2poXHwp7rxU18r1K2aJNN9yeq3kXCsxm4bI2hBcbOWs78KVq HbsTA9sypvIIASMxyhj7/G84fO4EmdSEPdg9FH9UcSSEbnyiCCJRfeB8B1PPag+lcX 65F822tXdwVPsVCQ9ucJykAOer38/AAhlHNjDcCz8KVLUPFJoG38Kceta0YNqPbVq1 xZix6QfzbGfdiNe1rLUvmc7v0ysdO5RNr/maVjx0nkLz0SbFY4UHNT3ZspfACC/bpr S3wuFm9JglB696Va/pFddQ/QMF7ATouYo1Lu24XYcnK0/xXuxQDBQ2oJw3amZw8Lze Mx7I9EZeHORjA== Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4fe216edaf7so2366536e87.0; Thu, 03 Aug 2023 02:59:13 -0700 (PDT) X-Gm-Message-State: ABy/qLYnLKdtOcro5OVRNu0JEpIgNXRgBJdjZoSkBF0QS5kSnaF/5wRm TAGOuDzxCRpRXvENygYiK5MWrif6g9T6zmvA38Y= X-Received: by 2002:a05:6512:158b:b0:4fb:7624:85a5 with SMTP id bp11-20020a056512158b00b004fb762485a5mr3778949lfb.0.1691056752072; Thu, 03 Aug 2023 02:59:12 -0700 (PDT) MIME-Version: 1.0 References: <20230718125847.3869700-1-ardb@kernel.org> <20230718125847.3869700-2-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Thu, 3 Aug 2023 11:59:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 01/21] crypto: scomp - Revert "add support for deflate rfc1950 (zlib)" To: Giovanni Cabiddu Cc: "linux-crypto@vger.kernel.org" , Herbert Xu , Eric Biggers , Kees Cook , Haren Myneni , Nick Terrell , Minchan Kim , Sergey Senozhatsky , Jens Axboe , Richard Weinberger , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Steffen Klassert , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , qat-linux , "linuxppc-dev@lists.ozlabs.org" , "linux-mtd@lists.infradead.org" , "netdev@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello Giovanni, On Thu, 3 Aug 2023 at 11:51, Giovanni Cabiddu wrote: > > Hi Ard, > > On Tue, Jul 18, 2023 at 01:58:27PM +0100, Ard Biesheuvel wrote: > > This reverts commit a368f43d6e3a001e684e9191a27df384fbff12f5. > > > > "zlib-deflate" was introduced 6 years ago, but it does not have any > > users. So let's remove the generic implementation and the test vectors, > > but retain the "zlib-deflate" entry in the testmgr code to avoid > > introducing warning messages on systems that implement zlib-deflate in > > hardware. > > > > Note that RFC 1950 which forms the basis of this algorithm dates back to > > 1996, and predates RFC 1951, on which the existing IPcomp is based and > > which we have supported in the kernel since 2003. So it seems rather > > unlikely that we will ever grow the need to support zlib-deflate. > > > > Signed-off-by: Ard Biesheuvel > Support for zlib-deflate was added for [1] but that work was not > completed. > Any clue why zlib_deflate was chosen in this case? /me also notes that this is another occurrence of the antipattern where we use an asynchronous API and subsequently sleep on the completion. > Based on [2], either we leave this SW implementation or we remove the HW > implementations in the QAT [3] and in the Hisilicon Zip [4] drivers. > That would work for me as well - dead code is just busywork. > [1] https://patchwork.kernel.org/project/linux-btrfs/patch/1467083180-111750-1-git-send-email-weigang.li@intel.com/ > [2] https://lore.kernel.org/lkml/ZIw%2Fjtxdg6O1O0j3@gondor.apana.org.au/ > [3] https://elixir.bootlin.com/linux/latest/source/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c#L457 > [4] https://elixir.bootlin.com/linux/latest/source/drivers/crypto/hisilicon/zip/zip_crypto.c#L754 > > Regards, > > -- > Giovanni