Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp977808pxb; Wed, 6 Apr 2022 05:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpqq8PJhJCGEl32wWj7/QzATadpxLUfQ9xndtuJhdLqpmfGigEYzmhed+uV2nxEYytVZSm X-Received: by 2002:a17:903:1212:b0:156:3ddc:84bd with SMTP id l18-20020a170903121200b001563ddc84bdmr8278424plh.70.1649249575813; Wed, 06 Apr 2022 05:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649249575; cv=none; d=google.com; s=arc-20160816; b=Bx48+IaMuoA/dG6xDICqMuQektSfENH7DtWN+UkMGl64CUdArB7guQ6+vIYD0UtwS+ t0TAhQWOnZoJEf8+NksxsH7+MIkzDmUaACBMDvY+2uJefO6ThhC4g4ULxx4F10fO5PMg ZshFiLrYFhRkeWGyaJEwYkVwSzUFDeBdQSdSg7D9IcEhHCICIDDhxqxa7IDS1UZAWyB4 hQCkrLov/ZLE2QHzYbGyi2ELty7A/gJTi8vx4N3puUrzzjIRXjAYm9d68NyznOAyWDW7 IB8sX0acXhwr2I3V0qsnLvQ/T+Uwx8gYlGXLJvIA2Is+GKd6M7802DN65cLbzSVdyDl5 eppg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N1vBJhTZ3k2KX6yEPRqH6RV7dwpYF0pKGJBhEaUwg7I=; b=X0ka1lLva4cj5JhV/T5HCpgBjp/G8qDmLr6plRx7aGo5rUvGFRUzGZnZ/S8Svz0+rx xu8WK8jYk2gwNXtHN63ZYdSTBDBGpkuBfGrkq+TjdJ1fON0f0s51Zxb4qGGsLX0vr6F6 CPXCKKnXR/5ykYtusImny4M2jPXBpbRkUxhrwas2VLMMuRtXTy+R6zqTpZRzxQO2VEm/ K8IpK41TjukMKLaA8nQk9X28S/diQI8hBoW2zIQkwsWZ4mDokwzI++Bj2Bn1iHNBCXs+ gqnMr3gF7DWR00rzOPt8D9Qpe+g5ua2DGpE+wON89X/sUz2DopoQNvjH5xiigEDuZG/P CQIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TG6JZgYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 6-20020a630006000000b0039cb783d0fbsi637345pga.198.2022.04.06.05.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TG6JZgYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 899D54E6F77; Wed, 6 Apr 2022 02:52:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839939AbiDFBG1 (ORCPT + 99 others); Tue, 5 Apr 2022 21:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457875AbiDEQyN (ORCPT ); Tue, 5 Apr 2022 12:54:13 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B7D6326E9; Tue, 5 Apr 2022 09:52:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id EC474CE1BE1; Tue, 5 Apr 2022 16:52:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B165C385A0; Tue, 5 Apr 2022 16:52:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649177532; bh=poRB8B2FuBtCIIZNBvi5x128WVA6VtVUiXU61lbpEBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TG6JZgYEg7jQWabdXKKhw9T+Mlw6+RPQ0sgOsFVe9vRQmqpIcDWKq8onF0ySaaHNX r/lYiXkiFnuXcfMLS00lQpn/insSguaeHkwCOw0ycjwkbmK0IZL6zV8+CcEBxPVKMw j0c6N9/JuW76fcgMpF9wHudOxTRqkc8AoWHzPyP0= Date: Tue, 5 Apr 2022 18:52:09 +0200 From: Greg Kroah-Hartman To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Steven Rostedt (Google)" , Sasha Levin Subject: Re: [PATCH 5.15 746/913] ARM: ftrace: avoid redundant loads or clobbering IP Message-ID: References: <20220405070339.801210740@linuxfoundation.org> <20220405070402.195698649@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 05, 2022 at 12:01:19PM +0200, Ard Biesheuvel wrote: > On Tue, 5 Apr 2022 at 11:54, Greg Kroah-Hartman > wrote: > > > > From: Ard Biesheuvel > > > > [ Upstream commit d11967870815b5ab89843980e35aab616c97c463 ] > > > > Tweak the ftrace return paths to avoid redundant loads of SP, as well as > > unnecessary clobbering of IP. > > > > This also fixes the inconsistency of using MOV to perform a function > > return, which is sub-optimal on recent micro-architectures but more > > importantly, does not perform an interworking return, unlike compiler > > generated function returns in Thumb2 builds. > > > > Let's fix this by popping PC from the stack like most ordinary code > > does. > > > > Signed-off-by: Ard Biesheuvel > > Reviewed-by: Steven Rostedt (Google) > > Signed-off-by: Sasha Levin > > Please drop all the 32-bit ARM patches authored by me from the stable > queues except the ones that have fixes tags. These are highly likely > to cause an explosion of regressions, and they should have never been > selected, as I don't remember anyone proposing these for stable. From what I can tell, that is only this commit. I'll go drop it from all trees, thanks. greg k-h