Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp354073pxk; Thu, 17 Sep 2020 05:04:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmPpNAbCZqZzUqTkxCdpRuVqpn+cabwi0F0a+IdtiRYyuTbyd+O53mMsxWcvnmthf+q0Uh X-Received: by 2002:a17:906:95cf:: with SMTP id n15mr26365704ejy.14.1600344290244; Thu, 17 Sep 2020 05:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600344290; cv=none; d=google.com; s=arc-20160816; b=p7rI8XXv0eke3q3jYWegXc6RVf1TXJq7F7SECS4ImSMKaE/isCJMp4wC/E1SNFfc3n YICIF7Qum0UqFXWx4P59V76X04JuuE9V7yxAsuQDz0jFh/fQBFvEaKeT0p25/1RA7DUd 0bbMTlskfMYXMpIWLTPYUjnM+gPF4azJ8lc7RtB4sf5qhjqg+RZ0zXmKNQU8mMiMuJr9 1wlWHaaJSi/L0f4NVG4pO4PoC4IRa2mge1yaV9syi6IpaLV8dPeyZ1oEpQUNWt796Pjc BXW0x1ocX9J6Ea5I5s3VX+rsOS5Nf7mE9V0F8mLweTWLeesduXvxwZulEwGiIYTKEKKr DlPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=6q3S73c0gyOdeWyLQsBcU3yTd9RS4t+Y+MWOhaHILkU=; b=z6DcqkcojP4ugV9vGipEyS6+XpVH5SVyqjMCfEVe+xzhxcue48Ke6nHrejgv1p2pS0 cRAIyCyUeqSuIw52s+YUYVw3W4iLr76J+2Z+dc8FeCeagX/Ej79R3Ls54s4qkzO9GYq3 himQa7v4kasQiu2vB4VhJTtWJNZJXLiX+gLCM21LPdDupQfPSOeiJCRtdrxBZzmExdbx M+sygLZ/BChzxHENECYuZ2TeJIIYj48jVdRazQEaPYMKsOux0u9IpOc+kIPvptXkt9g8 pHTI2dGGBhQuSdnHiDW5o8GD9jVNL3hJRrKs1DJLKgjIseg99EomKb4SoWDlFHim1iYs MfPQ== 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 w20si13994699edu.534.2020.09.17.05.04.24; Thu, 17 Sep 2020 05:04:50 -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 S1726935AbgIQL7v (ORCPT + 99 others); Thu, 17 Sep 2020 07:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbgIQL10 (ORCPT ); Thu, 17 Sep 2020 07:27:26 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F68FC061756 for ; Thu, 17 Sep 2020 04:27:19 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BsZSN2x0wz9sTp; Thu, 17 Sep 2020 21:27:16 +1000 (AEST) From: Michael Ellerman To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH 1/2] powerpc/32: Fix vmap stack - Do not activate MMU before reading task struct Message-Id: <160034201451.3339803.5588442310335772695.b4-ty@ellerman.id.au> Date: Thu, 17 Sep 2020 21:27:16 +1000 (AEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Sep 2020 13:42:09 +0000 (UTC), Christophe Leroy wrote: > We need r1 to be properly set before activating MMU, so > reading task_struct->stack must be done with MMU off. > > This means we need an additional register to play with MSR > bits while r11 now points to the stack. For that, move r10 > back to CR (As is already done for hash MMU) and use r10. > > [...] Applied to powerpc/next. [1/2] powerpc/32: Fix vmap stack - Do not activate MMU before reading task struct https://git.kernel.org/powerpc/c/c118c7303ad528be8ff2aea8cd1ee15452c763f0 [2/2] powerpc/32: Fix vmap stack - Properly set r1 before activating MMU https://git.kernel.org/powerpc/c/da7bb43ab9da39bcfed0d146ce94e1f0cbae4ca0 cheers