Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp454611pxb; Thu, 19 Aug 2021 03:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSw+KGqHhOzNJM6wx97zldYtJtdP56gXIELGR8d6+w7ON06fcAsuWrM/+XaEq3sFn5fWtG X-Received: by 2002:a05:6402:13c5:: with SMTP id a5mr15189661edx.132.1629369795949; Thu, 19 Aug 2021 03:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629369795; cv=none; d=google.com; s=arc-20160816; b=mF5cphnEFklLKrEgzc6iUgknAM5qzSbOViWuwwMwT98bmc5F+XY/JtVfDE4kVkrjfc 2SyypNsLg4uk685WhWTWfZGsH2oLV8RI9RtJ04jqOsh9e6vyhRsoqM0xWK4S+tKJE1nV UiwwCcSyKXOE7MYASOTcfLifioi8RR0v+E4+9Vqgl82tNtUv9XHdlDH/49gdRIKimMSw zctFmOYgs3nS2DQzgu7S2rMexenVjuJ9iEUZH9UOAR3o1n5nI4E65O154WfadFbhtVhQ /p0uOjMCWbGTcPfVJNMsscWDPz1HHnkZfj+WwatMflqPdWDGsQ24XnvO16d6bvoURr7E zsgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=xJ7UEL9HZ8z2uF/hWejre2Z71R2i5cuER1AULbTrHpg=; b=tA0IS9rnv8W+M1Y6ZxDShzDwmqpM6VF+XzpeNi3ko8oKvz0J2+pESpfxWoFV2DbaN0 yS3463aC0u8Nw4LLoOqB0G3MMS7eakhCKud+TfMxqQmG8YBOSZ/FGy6NmAcBl7Q4EBDh QM0yWTZEDRRlgs7K4Cx0vNC8F1MV8NmJ3GGEny/ocaRfYMIzeSuDxNCU25fp/JTo+Dmi IaWK4S0Gio8ceezMKv7PBrCfu+9mSfrJ4BcZiuEOwcwhtZXkWD+CEIKFugKIFFaY2plz OIWh8G5F9rIKeTpBo+WV5PxmyS1dAeEWggPCkwdMmnFepcN1uiZ/kq0N1b6wAgJ5Nvc/ f73A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uEK7tapH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si3158907ejj.568.2021.08.19.03.42.48; Thu, 19 Aug 2021 03:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b=uEK7tapH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S238159AbhHSKnB (ORCPT + 99 others); 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: linux-crypto@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