Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1618392ybh; Mon, 20 Jul 2020 03:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIAVfq2ifGGm2w2XPrmsh8aDLkpvYeaYfZ/zssQBMpVx/l+fKnQ5h118mfnyAoAKopLQUm X-Received: by 2002:a17:906:c007:: with SMTP id e7mr19951345ejz.481.1595239302182; Mon, 20 Jul 2020 03:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595239302; cv=none; d=google.com; s=arc-20160816; b=R/023j/e9GStNVT3Pz6USuoAPshUOrbWHse50xNHIpcAfPn/nIM///XOg4PDWJ991Q GRny/i1aiMGWS47ZZeqIEdouduK2+4T0aOwMUiPCtsVY8Aqo0RkfOv98l3g3+IvfRzhV ACmObc4g/dteCaEOAxyuiFetBGJbCDT1zxu3lMhqe6LvY3VO9GXCNu+eCzdZ7Bp/WYUa ji6iTA7AFPiPIKRRFgGGzFi9KQybURpGC8D/dl0jh7AkVGoN90UN1lqo6CWB05XxP30B dOMXk2qqC3GwBFs/zbolEUUa02zXP0FDUW917TRcXl8TLUuzrqByp5G6FI9lGdCVh0xH 1pzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wEu282G7b4TyEeSAocQG/iniDIUkrXuB5dhXKjq0giQ=; b=H5jajI2em9ZylBKy6UyJKRPN8GIbbMc4JWZMc7Nkr2CbO3Ky3Kaiaaq7AaWhguvngu w4+TKg2/vxDzVLPNXZS+qFC9FkcZKEUR5HWpRI2+/Jcj7LQK5hZeBB8zCZ/Zrlj8UM4p lGc2qNlfiG4W4gZxEuIpLwnNbsdKxeJY8G8us7tpf4cR/cC3diBTwrTliA3Tm32TJQ0I TUBSSy7FAvnAMVhqjiH7WbG2F3o9uy0MvwcOOcKkJOrD8W3c2ML+oeGFJ9eAJGCTzX+h pxwLdyXN58OVPFDclr4vMbbPsiB/gSyo1eTLFfiJndwMAoR+PbeOHyu32b1o9bIKjOVF fmoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz40si10224904ejb.432.2020.07.20.03.01.19; Mon, 20 Jul 2020 03:01:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728381AbgGTKBI (ORCPT + 99 others); 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