Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C772C4338F for ; Thu, 19 Aug 2021 10:42:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 108BF610A7 for ; Thu, 19 Aug 2021 10:42:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237851AbhHSKnB (ORCPT ); Thu, 19 Aug 2021 06:43:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:51560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236149AbhHSKnB (ORCPT ); Thu, 19 Aug 2021 06:43:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A80AF6113D; Thu, 19 Aug 2021 10:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629369745; bh=xJ7UEL9HZ8z2uF/hWejre2Z71R2i5cuER1AULbTrHpg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=uEK7tapHLENc7dbFtE12KQet8t4ygrP0X7IPeavlsD2wPyOYpQiswQgvj4lHUVQ0I 458Tu2LaCOiujPgXQl4acdUFDdR+Ma8Ip/CHvUl1l6+JerfXFDHRXjPJnHOysFikU+ ixeQw1AMxKtUU0RfALFjBl/4kEjW6akS04OEg6GjW8tdtFMnjj6jCpDQip+XQ+NDL6 2Jg2vhEeWhPno9CcBpwHi6i7EJzGixQEvBk8lMvanfYV5r8ks5Xm8u2UJPAu+rwSgQ F9+0H+qtUH2IW62qrpRbTDN2bKv2Yqbv6XYdzeaA6GwKTgvyYOgHDGdm3iSHDFCK8M 7nMPQbmqv/w7g== Message-ID: <1cbfe2bbb46ab48bf6dddee9a15a7c04c99db8f7.camel@kernel.org> Subject: Re: [PATCH 0/2] crypto: remove MD4 generic shash From: Jarkko Sakkinen To: Ard Biesheuvel , Denis Kenzior Cc: Linux Crypto Mailing List , Herbert Xu , Eric Biggers , ronnie sahlberg , linux-cifs , Steve French , David Howells , keyrings@vger.kernel.org Date: Thu, 19 Aug 2021 13:42:22 +0300 In-Reply-To: References: <20210818144617.110061-1-ardb@kernel.org> <946591db-36aa-23db-a5c4-808546eab762@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org On Wed, 2021-08-18 at 18:10 +0200, Ard Biesheuvel wrote: > On Wed, 18 Aug 2021 at 16:51, Denis Kenzior > wrote: > > Hi Ard, > >=20 > > On 8/18/21 9:46 AM, Ard Biesheuvel wrote: > > > As discussed on the list [0], MD4 is still being relied upon by > > > the CIFS > > > driver, even though successful attacks on MD4 are as old as Linux > > > itself. > > >=20 > > > So let's move the code into the CIFS driver, and remove it from > > > the > > > crypto API so that it is no longer exposed to other subsystems or > > > to > > > user space via AF_ALG. > > >=20 > >=20 > > Can we please stop removing algorithms from AF_ALG? >=20 > I don't think we can, to be honest. We need to have a deprecation > path > for obsolete and insecure algorithms: the alternative is to keep > supporting a long tail of broken crypto indefinitely. I think you are ignoring the fact that by doing that you might be removing a migration path to more secure algorithms, for some legacy systems. I.e. in some cases this might mean sticking to insecure algorithm *and* old kernel for unnecessary long amount of time because migration is more costly. Perhaps there could be a comman-line parameter or similar to enable legacy crypto? /Jarkko