Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4243156pxf; Tue, 16 Mar 2021 08:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyukmKVFQmLL+LOs0uPy2l62DfCyVLhDMYIMW0MbCtWufE5L4KoyGhEbip25dNRT6oqY/j5 X-Received: by 2002:a17:906:13c4:: with SMTP id g4mr30606938ejc.390.1615909733803; Tue, 16 Mar 2021 08:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615909733; cv=none; d=google.com; s=arc-20160816; b=HA1pIt0S5BRfo6FMXuLIi9hMmWpxrLZqKSfZPuPbbmBOiCluR20SrNjx/G3MW0CuD6 qooTkAyMyXivZmfLYhUTzhAfaJqJToEjD6jNdqTI5YCVmpVQFvmOhExmLeyW/Ue1RX1Y o3CFQK0sTyB048vcZnCFXNLTNvGvzTe0QWd08CjjFG2GCJxtZBSR0BnaSRWI3Lm65HOe 8zhiCOpMAnDTsBWOpsQcDXtGdFXf8mEnHYPcQQ5RCtBV2lK0takQZmr1hVkkS20JYASj ZsJFosuW1nE1XC0OdrFWKziwZPTrbRTJRULqH8snq9gnBHnajoiqxaqo2cHpI6wvJKsi I7PQ== 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=omoBOhaeypGaaOR9BhNtL2LXusSGvxYA2B9MC44vrzQ=; b=ceteflP5fwoUsNZ+YAhSvk405wLBnfhgGqk76I178Tv1c5Maz90o19WGcE6FBYycuS QnNvOhcaeSac7V3mzOC1X3oZ1kOJsgCobBNNUajFo5Ss71gceiLg7HUZoZ+wKeA/vcT2 ycrH+itDLDrHZ8BIqLdbItYDHQNt5qrnoSxsCgEdVzH/9qO+mxtyXrjoMhrUrjoo8i/P hLEQxfrn9X2gZqRSoYYYVJYaBqw9jLRqxoRpx3C6hVUBur5kNG9jp9OISVxgi3rdmPyK 7z1hYRY9B3/6/cRq4B2Q//hrIxhqM6r68m+Waeye0roN87XICsKmwTdXy8KyrSx7gt2d +bVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EC67N6d4; 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 q11si13686167edn.333.2021.03.16.08.48.30; Tue, 16 Mar 2021 08:48:53 -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=EC67N6d4; 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 S232000AbhCPMgC (ORCPT + 99 others); Tue, 16 Mar 2021 08:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:48600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231977AbhCPMfx (ORCPT ); Tue, 16 Mar 2021 08:35:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E16265040; Tue, 16 Mar 2021 12:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615898152; bh=H3O4NuvSwKi9LOZxul/dwOu19z4w5SYM6eVgy3tlGl4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EC67N6d4ZEuOfBVZm07793FK6CyuONBV7DqLEzX0fFOLK/LMJoP5M+hX3PdNzaDMy /ODuRiHu5+UMsTT9iZjSxSooVBJSQwQkGLX5AHn479DCg2ygf0ekVKoWcq5seP7ejz BZzcASRW2iAs3jpKATZzJ+nwfVPezVtIvkjhNEwqt4hQweAWrWz2LTAPjvnNumVJmX W4hwnrQxeY1OStRrzPeR7wwuU1qMyNBYTsZfCkX97DSL2FTbHKF/P2DVZhzaAuhhel pDSUa0oOfmGzXUXQTWKQ/pNJLDGb3qoWJhVAqPMWrZ2tPOE/8QxJcstsf/h18gunhv hgzYEHM3N/Wpg== Received: by mail-oo1-f41.google.com with SMTP id h3-20020a4ae8c30000b02901b68b39e2d3so4089832ooe.9; Tue, 16 Mar 2021 05:35:52 -0700 (PDT) X-Gm-Message-State: AOAM530eioC8X+2rsxiHxfQTbN+imnjApdHQWWaGMERXIjk0rOR+z73F YiLGiFOeT34G/C6ReGZkQfiKLg5bzNgQbbi/7C4= X-Received: by 2002:a4a:395d:: with SMTP id x29mr3596246oog.41.1615898151683; Tue, 16 Mar 2021 05:35:51 -0700 (PDT) MIME-Version: 1.0 References: <1e6eb02b-e699-d1ff-9cfb-4ef77255e244@tmb.nu> <9493dced-908e-a9bd-009a-6b20a8422ec1@tmb.nu> In-Reply-To: <9493dced-908e-a9bd-009a-6b20a8422ec1@tmb.nu> From: Ard Biesheuvel Date: Tue, 16 Mar 2021 13:35:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: stable request To: Thomas Backlund Cc: "# 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 Tue, 16 Mar 2021 at 13:28, Thomas Backlund wrote: > > > Den 16.3.2021 kl. 14:15, skrev Thomas Backlund: > > > > Den 16.3.2021 kl. 12:17, skrev Ard Biesheuvel: > >> On Tue, 16 Mar 2021 at 10:21, Thomas Backlund wrote: > >>> Den 16.3.2021 kl. 08:37, skrev Ard Biesheuvel: > >>>> Please consider backporting commit > >>>> > >>>> 86ad60a65f29dd862a11c22bb4b5be28d6c5cef1 > >>>> crypto: x86/aes-ni-xts - use direct calls to and 4-way stride > >>>> > >>>> to stable. It addresses a rather substantial retpoline-related > >>>> performance regression in the AES-NI XTS code, which is a widely used > >>>> disk encryption algorithm on x86. > >>>> > >>> To get all the nice bits, we added the following in Mageia 5.10 / 5.11 > >>> series kerenels (the 2 first is needed to get the third to apply/build > >>> nicely): > >>> > >> I will leave it up to the -stable maintainers to decide, but I will > >> point out that none of the additional patches fix any bugs, so this > >> may violate the stable kernel rules. In fact, I deliberately split the > >> XTS changes into two patches so that the first one could be > >> backported individually. > > > > Yes, I understand that. > > > > but commit > > > > 86ad60a65f29dd862a11c22bb4b5be28d6c5cef1 > > crypto: x86/aes-ni-xts - use direct calls to and 4-way stride > > > > only applies cleanly on 5.11. > > > > > > So if it's wanted in 5.10 you need the 2 others too... unless you intend to provide a tested backport... > > and IIRC GregKH prefers 1:1 matching of patches between -stable and linus tree unless they are too intrusive. > > > > > > As for the last one I seem to remember comments that it too was part of the "affects performance", but I might be remembering wrong... and since you are Author of them I assume you know better about the facts :) > > > > > > That's why I listed them as an extra "hopefully helfpful" info and datapoint that they work... > > We have been carrying them in 5.10 series since we rebased to 5.10.8 on January 17th, 2021 > > > > > > but in the end it's up to the -stable maintainers as you point out... > > > and now I re-checked... > > Only the first is needed to get your fix to apply cleanly on 5.10 > > > the second came in as a pre-req for the fourth patch... > OK so that would be 032d049ea0f45b45c21f3f02b542aa18bc6b6428 Uros Bizjak crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg which is already in 5.11, but needs to be backported as well for the originally requested backport to apply cleanly to 5.10 and earlier. Thanks for digging that up. -- Ard.