Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965693AbdIYTEl (ORCPT ); Mon, 25 Sep 2017 15:04:41 -0400 Received: from mail-by2nam03on0058.outbound.protection.outlook.com ([104.47.42.58]:55328 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933306AbdIYTEi (ORCPT ); Mon, 25 Sep 2017 15:04:38 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Mon, 25 Sep 2017 22:04:26 +0300 From: Yury Norov To: Will Deacon Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: ARM64: kernel panics in DABT in sys_msync path Message-ID: <20170925190426.6prpcfn7lly26clm@yury-thinkpad> References: <20170924213622.75e7r3k56tgxlezh@yury-thinkpad> <20170925105335.GA24042@arm.com> <20170925140240.vl5mvbce5lb37dxe@yury-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170925140240.vl5mvbce5lb37dxe@yury-thinkpad> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.116.181] X-ClientProxiedBy: VI1P189CA0035.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::48) To SN4PR0701MB3838.namprd07.prod.outlook.com (2603:10b6:803:4f::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 880ccc62-3cf7-4e82-c471-08d504484414 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:SN4PR0701MB3838; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0701MB3838;3:6VnOaXIB0vcHHwL+7BxzfDY80PebXMUiJQ7cA74qNk/f2nl9U3ZFKmZ3/WhS98cmmtBhSu23BnrXgIyGjdN9wvNGGSfbWAm67cMqZ3ySBY+Eqn+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Dx85EpEpcoF3rkvrFiv279jo5ncb9TmvyC7r3PqratzrtIIpn+mKJ6HinR7+nBDxFs+PzVKm2wUaLk73lNhRrNy4ZlBs2KgN6lVTr3t85v7Ov6J3x/Oglguseez7GwznDGNE1jh17KuRx7/bU2WDk8xDiIzAeJUhczN4q9wRPp4RzyvcxIX8+ZEzc6KIIZPXlqlz8MpOYvdIsUHiFrDq26WA9ojLN4HsY30S6uNAaglOF7dZpUgz2KoKXYMYOG5IE1Rqc+Sc3tHsZ6/EYi9mA/B5EXnHFmYS/162UlLd/pXBlS4JlSJ/h3lMIvkq5ZE+dKx47Tde9snJgm+ZEabn2KA= X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(211936372134217)(145926492361056); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(920507026)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN4PR0701MB3838;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN4PR0701MB3838; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0701MB3838;4:5MtD/O2SW0LLJNyUw2Sk4lJs4np1SaytrdfYivDPhe19mc6G1j71EANPBWLaSxiUyW1b8GSP575z2p1PUDclDDeJC2oFAQN/hnFJl0fAnvtUguyKJnAhpvxH2dTuq5Qgv3hCzwdM+99uQPEr/IjkANnTrvhAnixOKOl8liTT3WgBMsBdUj6Vhto69r7Jnvodp+d6S7oAytEzmNegoA7Uai6v/yw01DWS3vcVuLXcyAaHQ5MUvmkClVis9KOjhek/B1SGYY3pmbTdgnTE6qSetIxhEncDe/1qMcXs0xfkI92ASJRhzJtWvHQI1AHigWrp9uCODX6+xhsI8xLHFGiDlgfMKxu90VvJWEWG1GXTOUceO2P5oP2XCmQQjjzJI1sf X-Forefront-PRVS: 04410E544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(7916004)(376002)(346002)(189002)(199003)(24454002)(76506005)(229853002)(966005)(68736007)(16586007)(47776003)(34040400001)(23726003)(3846002)(66066001)(50466002)(54356999)(101416001)(7736002)(6116002)(1076002)(58126008)(50986999)(25786009)(189998001)(305945005)(6666003)(6496005)(72206003)(2906002)(76176999)(83506001)(97736004)(5890100001)(6246003)(4326008)(478600001)(6486002)(33716001)(8936002)(316002)(53936002)(5660300001)(2950100002)(42882006)(9686003)(33646002)(6306002)(81166006)(16526017)(81156014)(106356001)(6916009)(105586002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN4PR0701MB3838;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN4PR0701MB3838;23:8jZE1jsvLxjPhI/PN3IshybYa1NPsYQVL7fCtCS?= =?us-ascii?Q?LVyCmOw6Otbkm0hiK9NLPboNdEWPNJ2r6gn2KGDXFS9k5NOOzbgSIFRT8q8N?= =?us-ascii?Q?w2MxJwWT4V+TRUySnLy2ooUDuaMukXk8KuBZgrn+61VMWEtHvedcVhudG89T?= =?us-ascii?Q?QHZINl3OdKQcWFaVWE7OqyuUYsQkpL5Q+1MWJHsmfZ1uscb/2hs0HSApWVX3?= =?us-ascii?Q?P/obmI1W8AdXzQUQwXOB8fm0ndycPwMHSj8gWMBuVWuNdyl5h4FXhUpDkJHO?= =?us-ascii?Q?EmR86LzzG0bUPkEkLU4A2OUxkLsN9QIZQJCVJXlFHI6bgMd6/oQFT/PmAL3/?= =?us-ascii?Q?srb4CpwRveJtEERnfUv7B6vvHWQtnHN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Ki5Zisz7l6uB+EvKXQSFzehv9z2IgS37MyPlngPud4YsByNIXMVPXoEm/W?= =?us-ascii?Q?yVwtJMjzOQbULCQOVEdc7qXTsBKBdz68Ruxm6SrpNFRaD?= X-Microsoft-Exchange-Diagnostics: 1;SN4PR0701MB3838;6:ucN/yNsn9A7G4PuxvCat/RP4ii4ZqL8TWsa5doV02rMqN2UniJh6Al99XeAKJ9LJY3ObN39YlprR3x3T9tuQ9sj8lqrEEoKfsVaIr2H8UwEcgyNaxgg/ImfYdD4xcapGXCalY93390JzbTpqI7McXp4iHHUdfSHZN1lLX5XkV7cY3+oz3x06fAEND0R7mDOFlMfSdNWWPbbbbOx/rUZv0341lXQbG4rXy+hBu/Q4TjVcdjnFBiz91O2EjUfk2x3P6Gb7kY158TbnwC0riMxmcwToCi7uxHoquJqMcuvzBXAHbF2frWCUfUEc/TNxj+RpdluoEAJmMKBXSLfukdm1Ow==;5:jEGjWQFQ836/wbpua+Vyy/LUuu/dTgDfAWXkzCrrCBB68jJ99ajAgmsS8dXQbSeMarqGvHwRvCQveSw1XEbEbxt+w31RGt31sITaY1nJMDw/k6RH6A0dFg5JGYR83uH47Nz2rMgULPt0fFYt2I3o9w==;24:xAcNQQRP087WDgqcX8XIm/HUSgDyfZe6RJkGIkstajjpHF3FMRkgEi0mYXAGeuMxua4zOGSixL6JbEfpJAuueUavfRWCcnZUhLmoMfhy1kE=;7:ghcBAnfQk0bouw0RcE45olh7y1nQ7BiRX8PQL/1R7dT5WSbH3+4bqZmXVPxOvzMbaXgGwTH9ZLBd954hTHRh3ZqFDa63LdOWhjM0Gps+e7rkzVgfEgaBdnzJTUwW9s4Rzj5RdhBZNt1jLp60IrX4sXECmWLQYpDbjwAIKWeQzTqgel6p8lfXZPlKKGaZiio6N20E4qLcAjJmD//rMfGeA/7dEQ4QSj01ARSSO7U9qPI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2017 19:04:36.1036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0701MB3838 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1880 Lines: 49 On Mon, Sep 25, 2017 at 05:02:40PM +0300, Yury Norov wrote: > Hi Will, > > > > The bug is reproducible for ilp32 and lp64 binaries. For kernel 4.12 > > > and for all kernels if '-smp 1' is passed to qemu, everything works > > > fine. If no ideas, I think I'm able bisect it. > > > > I tried to reproduce this on hardware, but failed to do so. Our nightly > > tests are also coming back fine for rwtest03. I just built Qemu v2.10.0 > > and that also passes the test with -smp 4 for me, so I'm a bit stuck. > > I also see the test passed sometimes. I run it in endless cycle and > leave for a while. 5-10 iterations are usually enough. > > > Could you share: > > > > * Your kernel .config > > * Your QEMU command line > > * Details of your userspace > > Qemu configure command: > ./configure --target-list=aarch64-softmmu --enable-fdt --enable-vhost-net --enable-kvm > > And run command: > /home/yury/work/qemu-2.10.0/aarch64-softmmu/qemu-system-aarch64 \ > -machine virtualization=true -machine gic-version=3 \ > -machine virt -cpu cortex-a57 -nographic -smp 4 -m 1024 \ > -global virtio-blk-device.scsi=off -device virtio-scsi-device,id=scsi \ > -drive file=img/ubuntu-core-14.04.1-core-arm64.img,id=coreimg,cache=unsafe,if=none -device scsi-hd,drive=coreimg \ > -kernel /home/yury/work/linux/arch/arm64/boot/Image \ > --append "console=ttyAMA0 root=/dev/sda" \ > -initrd initrd.img-3.13.0-62-generic \ > $NETWORK \ > -redir tcp:2222::22 \ > -s \ > $@ > > My userspace is Ubuntu 14. I build lp64 tests with default Ubuntu > toolchain, and ilp32 tests with Linaro cross-toolchain. > > The config is attached, and the branch is vanilla 4.13 kernel, or this > one: > https://github.com/norov/linux/tree/ilp32-4.13 > > Later today I will share the whole qemu environment I use. https://drive.google.com/file/d/0B07VUB3kjLD8Mm5XN21qTTBfbnc/view > Yury