Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3731879ybi; Tue, 18 Jun 2019 05:45:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKuYTWOwHuRUq7ZWDLY6MXTLpcPrL6tx6iurlSyeQflhLfqWQTwGQqsUoGwh6R5iMJZAG7 X-Received: by 2002:a17:902:9006:: with SMTP id a6mr108388853plp.305.1560861950621; Tue, 18 Jun 2019 05:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560861950; cv=none; d=google.com; s=arc-20160816; b=J9cnzsFcWg/FgZ7H4RwA2Q5DaZ05rMYYfMeveLser57J35iikNl3O+ehplEgS4n9Nm inWZKfql/aAJ8iSoyUSuxaQIqd1cY3yRDlNNgdfYLgZDSsVOp4xcMtX3e45oMp8le/Vv pty96ZSqBgfUf7iLDDVjV/pytS6XCEIHYKqCSHgr8SF6RyH4QytMoo1hVh9zrg+w4wN7 to/dY56D7qE7pdqGcefBjVT+vAoyOyqipl4WP6tNgTe+RTfTJoZyhZW463A6Q3p2pHYu pwglj8ooGKmaCTeKnG2IQ5G3Q9cTWZ2MtY+ryP90WQ/3A7ugn0nJ4JWmPSeuZLvuxFq8 /EQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PPGY0wzKrjpG/skXEgA6qaUxme8C35MPyZr+/HeM9oE=; b=dDW2ZTYdUQPpYfPk0tN4/6vPNo49Ye6KNEFydBubpkGx+ObsJugC1LgjjsdeBV6bCk kthxGKhQ4C3Cg89IuIb07j67O9TEYlbBWGfy5jpBrnvOhOCYS79glFNCzkUNGY7vA1qO 2ijTD6dc8Ge2sKkFCyYB251Mg54rsatc5CDk1ou2mmkHiJGBWD4Q3WnT8c3JKT1AUl7r j5Lw5XP0hv9Gor7CFkj+Uh4mhBTK/NbjV8gmS5ZdsUsPUMRJ2OyYYH1YTJJnbC4/GN5x KZCBKSyYU8knZsY+EHOv8WtUkzsd5ee8Btv22AlFT/nLKfSUepTVerITGxRzUU+39FqC hU8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=n36fD+f8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si120245pgs.290.2019.06.18.05.45.34; Tue, 18 Jun 2019 05:45:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=n36fD+f8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbfFRMoF (ORCPT + 99 others); Tue, 18 Jun 2019 08:44:05 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:2131 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFRMoE (ORCPT ); Tue, 18 Jun 2019 08:44:04 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45Snnt4lwTz9tyqH; Tue, 18 Jun 2019 14:44:02 +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=n36fD+f8; 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 nbcFWjQId3Oz; Tue, 18 Jun 2019 14:44:02 +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 45Snnt3jXQz9tyqF; Tue, 18 Jun 2019 14:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560861842; bh=PPGY0wzKrjpG/skXEgA6qaUxme8C35MPyZr+/HeM9oE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=n36fD+f80hVDyGSeJHi3msRfk1FDLx2PFiNYGR9SCRR4TK+UOAJTcn8MUxK3gfFm5 bpR37iwIxh2lzWcPYg4lUUVeos+okdbcJSv32eVdIOYxn1wQODcEiHWvace5St9lDy FB4IDUr/CCcRLkWPM34aXzKAIwJFAcync8a4NPuY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0EFDC8B8AA; Tue, 18 Jun 2019 14:44:03 +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 6TmhG7-Z5gS9; Tue, 18 Jun 2019 14:44:02 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6EC678B872; Tue, 18 Jun 2019 14:44:02 +0200 (CEST) Subject: Re: [PATCH] powerpc/32s: fix initial setup of segment registers on secondary CPU To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , erhard_f@mailbox.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <87h88noz1d.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: <81d8101a-c0b6-a316-5844-e0901300e4e4@c-s.fr> Date: Tue, 18 Jun 2019 14:44:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <87h88noz1d.fsf@concordia.ellerman.id.au> 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 18/06/2019 à 14:31, Michael Ellerman a écrit : > Christophe Leroy writes: >> 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 > > Sorry patchwork didn't pick that up and I missed it. The AUTOSEL bot > will probably pick it up anyway though. Don't worry, this was unneeded because we added KASAN in 5.2. My mistake. Christophe > > cheers > >>> 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 */ >>>