Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp756333pxf; Thu, 18 Mar 2021 10:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFuVUFqD8ZWnTkC/1atGFku0dJcbxeytdkN33AGavoAW5uqn+b+qQ76vRkfdJJ3wqmqTxy X-Received: by 2002:a05:6402:2744:: with SMTP id z4mr5111387edd.347.1616089592412; Thu, 18 Mar 2021 10:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616089592; cv=none; d=google.com; s=arc-20160816; b=M7p+MavVcoEBu5ClZGfWoVKCi3XGOsoAgzNSSXO8WlTYmsxREZFDvSI8s4WddpDa9k RAKC3Ay+g2kByPl1F9m5OjHbQyUtcOOyzkF5JD8irk/PPK/wyJME9v7gPvu+QpoPHGTa Qq/dqjdecmf7lyyULkI3bmZiVDl9xVQMl23z1mPr/PwwA3uJBSDMrUFy82b0CTzCS6Xb UFP+pVuM33mUYsUKViFNPBJbRBt2lK5E2muZcyUSgyLfTbqzRBKqv5pkohOZg1nIq+Mz Ui2P2rtThNsyJkcMANmaq6/wdPbNmUrN7f/m2hW9M9BvVPjXLWZAoM2AjblF1z28NN2k Uhhg== 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=DL8hVf9CMP3MT0s1zlYIBSRMsZ7vAfWLvJjdE4lciTo=; b=SIe2CbvwiZWlUisUyklJMy2HF6ur4U2o/ZTd3HmCJmjp3q6kaXzBpv/q621cTasMZ6 mLsLyqqxtNKzl/Ooej1HP7LyN1yd4yIsFIShAvrQAKpooOIOycWHGsr4bxf9BA+7brQf LKnE/OJGt9JLLJaQxcZjpe8eKBPBXmsYeJdYCTaDBv0qbrLTs1LdbKigN57XajZMEDJx EvYwj6K8GCgvZ2l2WRG+lEVGwHauzKZdjZgz0KTxixz3Ffl4nn+YkuyX301BYGeVZ7Dq 3fyFwwt6RHOxPXk2YdDUyroBvAlNtJHwzdzPHcpY0BWfRwqhKErTpKhOvmi37iOHC3rc CHhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hGrUvjtR; 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 k16si2182959eje.579.2021.03.18.10.46.08; Thu, 18 Mar 2021 10:46:32 -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=hGrUvjtR; 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 S229601AbhCRRpg (ORCPT + 99 others); Thu, 18 Mar 2021 13:45:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:56694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhCRRp1 (ORCPT ); Thu, 18 Mar 2021 13:45:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C57B364F1C; Thu, 18 Mar 2021 17:45:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616089526; bh=d8JkEJU1rIn8CZ8QWsdShpjfs3CLyo1Fdo2qn4336/8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hGrUvjtRBKZmC8yhuQm6tCk39uVJ224oAHfyQcOk4Hwd+236ufhnhq9Lo+RCKz8vT IUijQghNIAfgOQooUVBvd2T/o4nBKD2/1dydxlGzkxkjPbbXtq/ocrCtkbd1Yim65w 1piuq0SkRHFp+Qws8GpVjsUZfcFrRmZoAnPIfP5NtVUYdFcercOPSLf/KR/1rpXEjK 8p7JMrjq/2gUZLikiYcZRPAnu9Dg98spj/gHRr6ZHIDfRbiyigG3xSvKoDlBRQfNx6 XS3ahDtONeta8t8Em7JlVlbk0hw2/QU+fE2Y0i/BUJc5TiJBj2WOniQn5I1QA1OFPf x5F5ggs8L3b3Q== Received: by mail-oi1-f179.google.com with SMTP id i81so332449oif.6; Thu, 18 Mar 2021 10:45:26 -0700 (PDT) X-Gm-Message-State: AOAM532Zfv/805GP5mwXY5VtXW26BZnVXirRpfko4nahrIFcbrjkoWgD g1Wgez04qkm8C8Vt3PO+F8Ce50YLj+Wplfusgeo= X-Received: by 2002:aca:538c:: with SMTP id h134mr3940196oib.174.1616089526164; Thu, 18 Mar 2021 10:45:26 -0700 (PDT) MIME-Version: 1.0 References: <1e6eb02b-e699-d1ff-9cfb-4ef77255e244@tmb.nu> <9493dced-908e-a9bd-009a-6b20a8422ec1@tmb.nu> In-Reply-To: From: Ard Biesheuvel Date: Thu, 18 Mar 2021 18:45:14 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: stable request To: Sasha Levin Cc: Thomas Backlund , "# 3.4.x" , Linux Crypto Mailing List , Eric Biggers , Herbert Xu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 18 Mar 2021 at 18:13, Ard Biesheuvel wrote: > > On Thu, 18 Mar 2021 at 17:42, Sasha Levin wrote: > > > > On Thu, Mar 18, 2021 at 03:15:35PM +0100, Ard Biesheuvel wrote: > > >On Thu, 18 Mar 2021 at 14:03, Sasha Levin wrote: > > >> What about anything older than 5.10? Looks like it's needed there too? > > >> > > > > > >Yes, 4.19 and 5.4 should probably get this too. They should apply with > > >minimal effort, afaict. The only conflicting change is > > >34fdce6981b96920ced4e0ee56e9db3fb03a33f0, which changed > > > > > >--- a/arch/x86/crypto/aesni-intel_asm.S > > >+++ b/arch/x86/crypto/aesni-intel_asm.S > > >@@ -2758,7 +2758,7 @@ SYM_FUNC_START(aesni_xts_crypt8) > > > pxor INC, STATE4 > > > movdqu IV, 0x30(OUTP) > > > > > >- CALL_NOSPEC %r11 > > >+ CALL_NOSPEC r11 > > > > > > movdqu 0x00(OUTP), INC > > > pxor INC, STATE1 > > >@@ -2803,7 +2803,7 @@ SYM_FUNC_START(aesni_xts_crypt8) > > > _aesni_gf128mul_x_ble() > > > movups IV, (IVP) > > > > > >- CALL_NOSPEC %r11 > > >+ CALL_NOSPEC r11 > > > > > > movdqu 0x40(OUTP), INC > > > pxor INC, STATE1 > > > > > >but those CALL_NOSPEC calls are being removed by this patch anyway, so > > >that shouldn't matter. > > > > Hm, I'm seeing a lot more conflicts on 5.4 that I'm not too comfortable > > with resolving. > > > > I should be taking just these two, right? > > > > 032d049ea0f4 ("crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg") > > 86ad60a65f29 ("crypto: x86/aes-ni-xts - use direct calls to and 4-way stride") > > > > I'll take a look into this, and send separate 5.4 and 4.19 backports > if feasible, or forget about it otherwise. v5.4 was straight-forward but v4.19 looks a bit more complicated, and given that this only affects performance, I am not going to bother unless anyone specifically asks for it.