Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp732132pxf; Thu, 18 Mar 2021 10:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOfCkYWy1D/t0czqVtuJ2faXwAZxC2wIe81BJaDgI2pS0fQqE30h0RXTIehT+X9b9nZ0U6 X-Received: by 2002:a17:906:f0d0:: with SMTP id dk16mr42764394ejb.48.1616087698953; Thu, 18 Mar 2021 10:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616087698; cv=none; d=google.com; s=arc-20160816; b=zThurjQsjMXv/trNv4kEuVJWMPgjOg3v9vbtPTh+T5ExvD7gfGTklRf/G2ZzjRbau0 re88AUNIUaxZkFLM1wb68mABgOcjufVwDdrf8EoXDGQ9hNk3DJ0GixesvWllN+c2ixTn OIM9VwWs7YtiTh4R+pZ6GxDgV/8KAhHeNMomUz/RfnXO6KGVAC8z4cpHRNCYSC0guBHH jhZFgXhpfjPPA3o/MLzkLQ0iODdflmyaigccXVXsQgdWL5pCfoRCrRsalfnVMpzmxWjo F/WEaKzPXiGP41bWRm8Wqc6/JqG8EiSd2D2gEqFaWysF3kTrgItxsTU/Qbpc8HFTWE85 P8ug== 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=S/JyfPcNoaE3Xyw/xiWzaTyd6hzhgtlAljlxv2jNeLg=; b=1J2/hIrvNMJZ6Z9SMc7WHvAiXbKihdDSVEfZtsxPKvAocsYDjIslkrtHPVUp+saxV+ +vrWr992u3tK0NKlZytPFgjLsIoEJMQystEFaJIUjGB0fvOInWVWH4Rf0jKJyuZK7P0W +uz9oQK+rfgCxsxU8UL61tOvXQrPvZBIYix30QxSohpzH5f3U0eHmaOWkz0st870RYvd TbzCc9ibFah5gF3hGqtzycPzSun/qR36LoL1KSvKqHguI/xeQ6226ZmqBIYqMz3nQwpa BDCqXj5y0XZGAhHPTt+U4+x42tmlw0x+uQi4nUbcF4u0VNeej7qI5wX10s6POlZPQ+X3 sLFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O7WuWJGv; 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 b11si2099578edz.197.2021.03.18.10.14.21; Thu, 18 Mar 2021 10:14:58 -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=O7WuWJGv; 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 S232088AbhCRRNo (ORCPT + 99 others); Thu, 18 Mar 2021 13:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:43002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232184AbhCRRNj (ORCPT ); Thu, 18 Mar 2021 13:13:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A767864F2A; Thu, 18 Mar 2021 17:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616087618; bh=z1ZMt5lGKNPLJj7HI9Z0FIQQiYjuUQW4fPVR4s1Xopw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O7WuWJGvmQ032Tqgf0oEcyorvMaPeCDPRMQYmrHdttaqcIaCldlujExtjb84rQg8t I7SsplQPViqMGKvi6hK/ZntPkDWIiZ5MbB3Ly5yen0tqbq61hSW1ZRRwzPfb/b+ALf 28ZPitbe3SGDBqwJTHD8frDk8YYijKIEFIR24/T7nyAnC1G3YEisojxoHK16NSGI/q GfbaY38KS9atSb+QzeOw1D1SfmbXAryAzmXScSBQFy5LzzMVzNqllWqAL3bZxVL0D7 S6BLPOEEDE8iXPVG55IhAQI2KQZw5P8h8TM+3ozLpaJxY+WovJwKwkT7Ta+udqJKTh PyjQiSSDAygDA== Received: by mail-ot1-f44.google.com with SMTP id h6-20020a0568300346b02901b71a850ab4so5881674ote.6; Thu, 18 Mar 2021 10:13:38 -0700 (PDT) X-Gm-Message-State: AOAM533Z9+/SO8x+9ckXKaOokeC+wnEPeQ3SHLm8KOnKMPyRLTtkIM6f bucWfSEQA0jyL2MsH42EmjfGEpFSGfOSuRmYNOE= X-Received: by 2002:a9d:6e15:: with SMTP id e21mr8121413otr.77.1616087618036; Thu, 18 Mar 2021 10:13:38 -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:13:26 +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 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.