From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B101C433E2 for ; Thu, 17 Sep 2020 12:00:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 384682072E for ; Thu, 17 Sep 2020 12:00:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgIQL76 (ORCPT ); Thu, 17 Sep 2020 07:59:58 -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