Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753376AbcJHVHo (ORCPT ); Sat, 8 Oct 2016 17:07:44 -0400 Received: from mout.gmx.net ([212.227.17.22]:65462 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbcJHVHg (ORCPT ); Sat, 8 Oct 2016 17:07:36 -0400 Subject: Re: parisc crash on boot with 4.8+git To: Meelis Roos , Linux Kernel list , "linux-parisc@vger.kernel.org" References: From: Helge Deller X-Enigmail-Draft-Status: N1110 Message-ID: <57F96010.1040309@gmx.de> Date: Sat, 8 Oct 2016 23:07:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:wD7j2gNDcGOXL4hx2wi0YBQYu4jl8gx7qecBKjvazteYb8JCJIV N25gPVQSmmCRjKkV5LQeD06XWVpzbESZ53k3hvilKBbcRkBzmNgOyz9ZwFx2/BTeuFhAoqP VDzbBablrKlyt4o7feIw6JQumkQxv8yilT9zyXsfmv0W+dYfcz2ZdcyxhpnzG3ysDVXsuUD AP7GxP6MD65Vhf8XnF7BA== X-UI-Out-Filterresults: notjunk:1;V01:K0:YpPZJlub1xA=:NafNcVYnoST8EZ5xKOeo8P FvjacKpcRKTd3BLX9FNFqo23QCwrE6eQz/BANt1zRy5BmceE9LCh59+76N3T7dygc7+1phPyc 7JOST+jZqxLvp8q5OuB5jv0I60WKMPHeay82x4NZvNeyi0G1LBRnovuJde+PHnxCdRlhJGh3w nPRZzIbddp9gcpelA34Y5ogPMdkg1xUPu9jL7U0t2QsWItnWsrt4KgywB5brMqnXNhcvOaUJY pY9gpSQ3Vw4DqHCVDh/Ws5armBMFgMBbSNNdJ81O/Au1naTP7VZxtbLb5bV4xj8dueEQDxtY/ f0Kya7xO6JEmJbZ9UzycutHEhXKe1I+tG4e3Vv/B59LAdshkCMwvEtxc/TH93aWUIuOyDXxG6 lE/XVJin0oA/4hp56R82kYlisdLJwijlOOwaoWY9QlBELLK+oPzWHKCmKhrbXZeUguci+yszf s5dIV/yQIyxA2Cdu1Qkc7z89msjKmpC7Q8ii1R/q9X+w+M030G4xtHbY4qHPDwC76DTX/JBz8 kHKEXhvqyCC6ThomFEOs1TIvqGh1t8IkyUHAzO4YytSNXowCxPxwM/5PNwfZUT/zh0jgqBOLj T7rkqhxGaZxr1zcoU8ZkmoSR8tgsju+vApTF/nSwde7b4Yt3v6mz+lwD/8Q5gm7e0eisxZlKV FSwgr9/gSbP/ZxlSx0ZU1h4dqhlzB7vQBSStstJCmLt3OErhXvkVCDXnWc6wu9gcd0MKv1H31 F5RQj1fY2DYCdR825tRNhhtpLTORSkSXY3EF20E8/yWi1YJgltl5f+2BQoPKEyUXl4mP496c7 uauQONJ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2479 Lines: 53 Hi Meelis, On 08.10.2016 23:52, Meelis Roos wrote: > Just tried 4.8.0-11288-gb66484c on three of my parsic machines (enabled > strict usercopy checking or somethinng like that in make oldconfig). It's not related to the usercopy checks, instead it's most likely a parisc-specific problem I just noticed today as well and which I'm currently fixing. > rp3440 worked fine. a500 and rp3410 cras on boot. > > rp3410 crashed on boot with the following: > > Linux version 4.8.0-11288-gb66484c (mroos@rp3410) (gcc version 5.4.0 (Gentoo 5.4.0 p1.0) ) #81 Sat Oct 8 20:40:24 EEST 2016 > unwind_init: start = 0x4076e980, end = 0x407a7060, entries = 14446 > The 64-bit Kernel has started... > Kernel default page size is 4 KB. Huge pages enabled with 1 MB physical and 2 MB virtual size. > bootconsole [ttyB0] enabled > ... > Memory Ranges: > 0) Start 0x0000000000000000 End 0x000000003fffffff Size 1024 MB > 1) Start 0x0000004040000000 End 0x000000407fdfffff Size 1022 MB > Total Memory: 2046 MB > Backtrace: > [<0000000040102d40>] paging_init+0x5e0/0x740 > [<0000000040103744>] setup_arch+0x16c/0x1b0 > [<0000000040100ce0>] start_kernel+0xb8/0x668 > > Bad Address (null pointer deref?): Code=15 regs=00000000408034c0 (Addr=000000099cf94000) You probably are facing one or both of those problems: 1. Your kernel is bigger than the initial kernel mappings 2. You face a bug in the palo boot loader. Regarding 1, you probably have CONFIG_TRACE=y or CONFIG_TEST_RHASHTABLE=y enabled? Both increase the kernel size a lot and trigger this bug. To fix it, make sure you have this patch in your kernel (it's upstream): http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=690d097c00c88fa9d93d198591e184164b1d8c20 Additionally if people (not you) use a 32bit kernel I suggest this one too (in my for-next tree): http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/commit/?h=for-next&id=96c65e4d1c77f461b34161dc8e6f2db7c50fd3e8 Both patches increase the initial kernel page mappings to 32MB which should be sufficient. Even if you fix the kernel with the patches above, you still may run into the palo bug. I've just pushed a fix for it into the palo tree: https://git.kernel.org/cgit/linux/kernel/git/deller/palo.git/commit/?id=70bd7a9a41e318c0575755a78c4d18ad97495c47 If you rebuild palo, please make sure to install the new ipl boot loader into the palo partition of your boot disc. palo should report at bootup version 1.96. Helge