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=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 5CA02C433E1 for ; Mon, 20 Jul 2020 10:01:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F2BC21775 for ; Mon, 20 Jul 2020 10:01:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728394AbgGTKBI (ORCPT ); Mon, 20 Jul 2020 06:01:08 -0400 Received: from verein.lst.de ([213.95.11.211]:46243 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbgGTKBI (ORCPT ); Mon, 20 Jul 2020 06:01:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9D7A068BFE; Mon, 20 Jul 2020 12:01:04 +0200 (CEST) Date: Mon, 20 Jul 2020 12:01:04 +0200 From: Christoph Hellwig To: Guenter Roeck Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Murzin , linux-arm-kernel@lists.infradead.org, Peter Maydell Subject: Re: [PATCH 1/6] syscalls: use uaccess_kernel in addr_limit_user_check Message-ID: <20200720100104.GA20196@lst.de> References: <20200714105505.935079-1-hch@lst.de> <20200714105505.935079-2-hch@lst.de> <20200718013849.GA157764@roeck-us.net> <20200718094846.GA8593@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To try to reproduce your report I built a mps2_defconfig kernel and then run the qemu command line manually extraced from your script below, using a mainline qemu built for arm-softmmu, but it crashes with the following message even for the baseline kernel. qemu: fatal: Lockup: can't escalate 3 to HardFault (current priority -1) R00=00000000 R01=00000000 R02=00000000 R03=00000000 R04=00000000 R05=00000000 R06=00000000 R07=00000000 R08=00000000 R09=00000000 R10=00000000 R11=00000000 R12=00000000 R13=ffffffe0 R14=fffffff9 R15=00000000 XPSR=40000003 -Z-- A handler FPSCR: 00000000 Does anyone have an idea what this means? --- /opt/qemu/bin/qemu-system-arm \ -M mps2-an385 \ -cpu cortex-m3 \ -dtb arch/arm/boot/dts/mps2-an385.dtb \ -kernel vmlinux \ -no-reboot \ -snapshot -m 16 \ -initrd ~/images/rootfs-arm-m3.cpio \ -append 'panic=-1' \ -bios ~/images/mps2-boot.axf \ -nographic -monitor null -serial stdio