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=-6.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 0D127C4321A for ; Tue, 11 Jun 2019 16:47:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D72DB2086A for ; Tue, 11 Jun 2019 16:46:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=c-s.fr header.i=@c-s.fr header.b="D/jt9avQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405338AbfFKQq7 (ORCPT ); Tue, 11 Jun 2019 12:46:59 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:43148 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389804AbfFKQq6 (ORCPT ); Tue, 11 Jun 2019 12:46:58 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45NbWM1Gqhz9tyt1; Tue, 11 Jun 2019 18:46:55 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=D/jt9avQ; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Ds0hpbEGmhE5; Tue, 11 Jun 2019 18:46:55 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45NbWL72G5z9tyt0; Tue, 11 Jun 2019 18:46:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560271615; bh=L3z5zKu72bfCoxHhdr51f/loRn5lxnxBMdvNCsUgui4=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=D/jt9avQyNXvmb8hfuuKsvI5laqEYb//lxpykuGfAnQO0KuqxhDBSqJZYuxS6MAZj CE7c5ChHUi4uXT3CpJAZU3DrFHjFyTJV5xTsHlHp+jCcuCdpY7r4Pm8n2UYDhn17/P rw/TfOFee5N3FSzCs1UuQjZMxyQ+fNS4SzM3WLHk= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 971B68B7FA; Tue, 11 Jun 2019 18:46:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id q5TvPYw6xg1t; Tue, 11 Jun 2019 18:46:56 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 367228B7F7; Tue, 11 Jun 2019 18:46:56 +0200 (CEST) Subject: Re: [PATCH] powerpc/32s: fix initial setup of segment registers on secondary CPU From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , erhard_f@mailbox.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: Message-ID: Date: Tue, 11 Jun 2019 18:46:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/06/2019 à 17:47, Christophe Leroy a écrit : > The patch referenced below moved the loading of segment registers > out of load_up_mmu() in order to do it earlier in the boot sequence. > However, the secondary CPU still needs it to be done when loading up > the MMU. > > Reported-by: Erhard F. > Fixes: 215b823707ce ("powerpc/32s: set up an early static hash table for KASAN") Cc: stable@vger.kernel.org > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/head_32.S | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S > index 1d5f1bd0dacd..f255e22184b4 100644 > --- a/arch/powerpc/kernel/head_32.S > +++ b/arch/powerpc/kernel/head_32.S > @@ -752,6 +752,7 @@ __secondary_start: > stw r0,0(r3) > > /* load up the MMU */ > + bl load_segment_registers > bl load_up_mmu > > /* ptr to phys current thread */ >