Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3945414ybc; Tue, 26 Nov 2019 01:03:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzZRavSgRpVtRBsEkvtlY0RvW2DYqaqCY4crg0gzntc6WvxdZnX1v28kwJAmPvgm/Q1lTzQ X-Received: by 2002:aa7:c98f:: with SMTP id c15mr24124624edt.98.1574759022778; Tue, 26 Nov 2019 01:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574759022; cv=none; d=google.com; s=arc-20160816; b=BZauJNQp4W7UsTM5ToTBsg/8cIbrPbGkJvfCy811QbXwvBkEOgw0OEc/3rfVoAir67 Ed+sbO3p7NmToaWpIe5fXDYJMLh/rsqh0ArshponQ0ALx0yX+xI5sB9UrY/58lcMgx59 RLTZWrHHrHxFxbMiUlXxt429wwsPFxkga/QRIWTWwY7Mamt4ZCifpP37vZ9G5QF9XRVc Plyhxg/hyFqy4u83WXrcUeVBmjLj144O6F5oNw5Fh2ko7klYPZEzsNmqcw5Lvxv5yMcB zgGiLObVMl1bfGR0j2a3H9yIJqLrhxKRggkBF08HK5KAhCfHHwuWtlVvuulVjb1HIZbB O30w== 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=U9V+RbsOlne0cDu4/Cs4Z/0IfVOfKQcJt4tUL3ne7Ao=; b=bNWNXdjF+MwQyJV9TQLiHah1nHQdeNJ2GG3X1fFzwArxpxqNdLZQglz7lleoMypzZp POJ6WUmmNbg5mS7Kx/Xi1RPi7Qnuu8lcbP4Z6XJHJgB1byZzIr7rcFiBbdTSil1j+lxg wsckf7198/qFl9LVICHwHj79CcHKrvWivyYIiuzT6WE/oK4F6lqQeUvTVUuWvUjTvsvp yPoPhvSLgOQogQrnhAwj8v8kqolV4HByrfH9UntIhN3t2w6fxdzN4DCjCuh2l8xDNOBt pVM7xmc0t+DOa7ZOgWKbQuVgrm7xIGP1c8UGLYGg7HwoOxfXJ2GWfQA2HEUaIHJnxllo jxZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=SWnUau61; 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 j27si333835eja.41.2019.11.26.01.03.18; Tue, 26 Nov 2019 01:03:42 -0800 (PST) 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=SWnUau61; 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 S1727169AbfKZJB0 (ORCPT + 99 others); Tue, 26 Nov 2019 04:01:26 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:13768 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfKZJBZ (ORCPT ); Tue, 26 Nov 2019 04:01:25 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47MdDf6sVfz9tycG; Tue, 26 Nov 2019 10:01:22 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=SWnUau61; 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 QxTVwnd9ys7n; Tue, 26 Nov 2019 10:01:22 +0100 (CET) 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 47MdDf5pKzz9tycC; Tue, 26 Nov 2019 10:01:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1574758882; bh=U9V+RbsOlne0cDu4/Cs4Z/0IfVOfKQcJt4tUL3ne7Ao=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=SWnUau61xntSe6pletc1YrYHkkny/RR6BAJeY++1dikgh8DEpCAKFsozUypRHeMKt fQLOIrTW/PHNIGVQgEDT2gPF/x5D04qbOft8iuQzLtW4wjibrAZx8t0dlIQmff5Ehk pkUZYWIjK7WQEO04FO0PSx0bgQKnaKTtn6vQzfDc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A9FEB8B7E6; Tue, 26 Nov 2019 10:01:23 +0100 (CET) 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 IBBgv0SfDZqq; Tue, 26 Nov 2019 10:01:23 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 22A0F8B7E5; Tue, 26 Nov 2019 10:01:23 +0100 (CET) Subject: Re: [PATCH v3 15/15] powerpc/32s: Activate CONFIG_VMAP_STACK To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com, dja@axtens.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org References: <875zjgcpyx.fsf@mpe.ellerman.id.au> From: Christophe Leroy Message-ID: Date: Tue, 26 Nov 2019 10:01:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <875zjgcpyx.fsf@mpe.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 19/11/2019 à 07:58, Michael Ellerman a écrit : > Christophe Leroy writes: >> A few changes to retrieve DAR and DSISR from struct regs >> instead of retrieving them directly, as they may have >> changed due to a TLB miss. >> >> Also modifies hash_page() and friends to work with virtual >> data addresses instead of physical ones. >> >> Signed-off-by: Christophe Leroy >> --- >> arch/powerpc/kernel/entry_32.S | 4 +++ >> arch/powerpc/kernel/head_32.S | 19 +++++++++++--- >> arch/powerpc/kernel/head_32.h | 4 ++- >> arch/powerpc/mm/book3s32/hash_low.S | 46 +++++++++++++++++++++------------- >> arch/powerpc/mm/book3s32/mmu.c | 9 +++++-- >> arch/powerpc/platforms/Kconfig.cputype | 2 ++ >> 6 files changed, 61 insertions(+), 23 deletions(-) > > This is faulting with qemu mac99 model: > > Key type id_resolver registered > Key type id_legacy registered > BUG: Unable to handle kernel data access on read at 0x2f0db684 > Faulting instruction address: 0x00004130 > Oops: Kernel access of bad area, sig: 11 [#1] > BE PAGE_SIZE=4K MMU=Hash PowerMac > Modules linked in: > CPU: 0 PID: 65 Comm: modprobe Not tainted 5.4.0-rc2-gcc49+ #63 > NIP: 00004130 LR: 000008c8 CTR: b7eb86e0 Problem found, that's in load_up_fpu(), have to apply tovirt() to the address read from SPRN_SPRG_THREAD. Same problem in load_up_altivec(). I'll fix that in v4 today. Christophe