From patchwork Wed Aug 3 08:38:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 9260925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 639586048B for ; Wed, 3 Aug 2016 08:42:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52EB928566 for ; Wed, 3 Aug 2016 08:42:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47AE028578; Wed, 3 Aug 2016 08:42:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1CAE728566 for ; Wed, 3 Aug 2016 08:42:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUrjX-0002YH-Ls; Wed, 03 Aug 2016 08:40:59 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bUrjR-0000rn-Ml for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2016 08:40:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=HnR7BV0LZYlwH4m+V5hBXJK6EpsT5w3WktWJY/rus1U=; b=mY+r1VC1kskyGUCJecpX+gLDPBjEx+fpi2qtP0OaB4HqMhreGPNuh+WysZiRQ8DaEd+1dMZbMM31DMWK1fnLu7z7/BEal4gEeASAw9PK2kqG5ukM80sdtl+aLHEL7UlbwCQqH9Q69XYgMnfWBP1jiYCl0Ir+n4D53dw3VsUEFag=; Received: from n2100.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:35302) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1bUrh4-0008NP-8H; Wed, 03 Aug 2016 09:38:26 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.76) (envelope-from ) id 1bUrh1-0002nP-DN; Wed, 03 Aug 2016 09:38:23 +0100 Date: Wed, 3 Aug 2016 09:38:22 +0100 From: Russell King - ARM Linux To: Guenter Roeck Subject: Re: "Failed to create /dev/root: -14" after commit e6978e4bf1 ("ARM: save and reset the address limit when entering an exception") Message-ID: <20160803083822.GI1041@n2100.armlinux.org.uk> References: <57A15C41.6000804@roeck-us.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <57A15C41.6000804@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160803_014054_236387_946558E7 X-CRM114-Status: GOOD ( 15.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Aug 02, 2016 at 07:51:45PM -0700, Guenter Roeck wrote: > Hi, > > I see the following crash when running a qemu arm 'kzm' runtime test with > the current mainline. >... > Failed to create /dev/root: -14 > > [ followed by panic ] > > A complete log file is at [1]. I think it's because of those undefined instructions you're hitting with the hw-breakpoint code... can you try the patch below please? arch/arm/kernel/entry-armv.S | 1 + 1 file changed, 1 insertion(+) Tested-by: Guenter Roeck Tested-by: Gregory CLEMENT Tested-by: Kevin Hilman diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index bc5f50799d75..9f157e7c51e7 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S @@ -295,6 +295,7 @@ __und_svc_fault: bl __und_fault __und_svc_finish: + get_thread_info tsk ldr r5, [sp, #S_PSR] @ Get SVC cpsr svc_exit r5 @ return from exception UNWIND(.fnend )