Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1651185pxb; Fri, 20 Aug 2021 10:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjs4Ck3uahaLCb24W4hpZOGQRbTkck6AlASAIuYGmhuSXpLnPlYspJk/7LFQI5tt/f4GyJ X-Received: by 2002:a05:6402:2554:: with SMTP id l20mr23358479edb.252.1629480418885; Fri, 20 Aug 2021 10:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629480418; cv=none; d=google.com; s=arc-20160816; b=DRdFgdye/Z5JDM2pCiu0Hjh06MktXivTUX3SUNT96J51k4aZpZgXB4otej4I5XrqWs 1LYjrdRQBdLcNIhFkgqu8A6gMngg2ZAg5DuW5fQTWh1+yJEgTRFPUMlC3P2uNfadM47/ Jvxtr335BjFnP6G9Gsy+7RKD95JUGoArQMcNdBLeURPn9t/PdEWSIcCyy52kaHyG/6bY s0kRJSZBAwnE9B+EcvqjY5qkuWNroFYTc1aR8DAbkoG9LC6dN/g8RIF+z4w88pDgzHvb wqtHAJel3RyGIPOzf2+MXlUqnUaoM/n3g0QSqpr9H1JpTp/Ok+Mo1PPw3xTE/3yG+8hI rP/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=l3GX/ORS7fAQornpPUJ+FIqrjKCRrcP6yqBhXRXwv4Q=; b=Sdy1pdkRF9EkyOUEKoAwyuo19LXhgyZOBdyZPKUFDf1b6PMymCCS6EJl+GT8cQWA04 sh6A03NerezUSY1OkA4QNA0VY/p8fVJD80kSuTuejqWckSGjouFElh9za/H+XTopoo+z ET0LBlu4lbBPIYRpDEQrCkMloCLFqwag6Nxgz8IoIzTKEkC15pB66sXHXlArG/oNiVWV fCUcbtTE4KKSleODEcJVVCvuetWoD0SriqOULFClq7D3efuwq56N6m2oUvn8iu/Io9Hj aDKsRiMT8PZXpA5vSC4AQyGzmMC2tzANapAMpjNzZvOlPcUaeWSAttMzVCH3FfOlkTvl jC5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yc13si7795354ejb.237.2021.08.20.10.26.35; Fri, 20 Aug 2021 10:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234428AbhHTRZA (ORCPT + 99 others); Fri, 20 Aug 2021 13:25:00 -0400 Received: from gate.crashing.org ([63.228.1.57]:47018 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbhHTRZA (ORCPT ); Fri, 20 Aug 2021 13:25:00 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 17KHIkfB024178; Fri, 20 Aug 2021 12:18:46 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 17KHIjOe024175; Fri, 20 Aug 2021 12:18:45 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 20 Aug 2021 12:18:45 -0500 From: Segher Boessenkool To: Michael Ellerman Cc: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/32: indirect function call use bctrl rather than blrl in ret_from_kernel_thread Message-ID: <20210820171845.GS1583@gate.crashing.org> References: <91b1d242525307ceceec7ef6e832bfbacdd4501b.1629436472.git.christophe.leroy@csgroup.eu> <871r6oe2i8.fsf@mpe.ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871r6oe2i8.fsf@mpe.ellerman.id.au> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 10:15:11PM +1000, Michael Ellerman wrote: > Christophe Leroy writes: > > Copied from commit 89bbe4c798bc ("powerpc/64: indirect function call > > use bctrl rather than blrl in ret_from_kernel_thread") > > > > blrl is not recommended to use as an indirect function call, as it may > > corrupt the link stack predictor. > > Do we know if any 32-bit CPUs have a link stack predictor or similar? 74xx do. Segher