Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937148AbdIZLyn (ORCPT ); Tue, 26 Sep 2017 07:54:43 -0400 Received: from mail-dm3nam03on0053.outbound.protection.outlook.com ([104.47.41.53]:5433 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937131AbdIZLyi (ORCPT ); Tue, 26 Sep 2017 07:54:38 -0400 Date: Tue, 26 Sep 2017 14:54:24 +0300 From: Yury Norov To: Will Deacon Cc: "Ruigrok, Richard" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: ARM64: kernel panics in DABT in sys_msync path Message-ID: <20170926115424.yuowylwpwvjlh5cc@yury-thinkpad> References: <20170924213622.75e7r3k56tgxlezh@yury-thinkpad> <20170925105335.GA24042@arm.com> <20170925140240.vl5mvbce5lb37dxe@yury-thinkpad> <20170925190426.6prpcfn7lly26clm@yury-thinkpad> <20170926102324.GC8693@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170926102324.GC8693@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.116.198] X-ClientProxiedBy: DB6PR0801CA0047.eurprd08.prod.outlook.com (2603:10a6:4:2b::15) To MWHPR0701MB3836.namprd07.prod.outlook.com (2603:10b6:301:7f::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7da1d17e-cc2f-4353-3bda-08d504d55b72 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:MWHPR0701MB3836; X-Microsoft-Exchange-Diagnostics: 1;MWHPR0701MB3836;3:JFh2jwdANov4SAYrlVAUsh1a+BT5IvGblSFNfNhsL8ZPcZ5y73tWYxgw0PXjWeO1v5nzPdwy7NwDwzR6sTQuf714Q0pW60bhz24M0cYcXYrmsv2Y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QmivlLRFIcaxS0Z0XNZGdRiWMw1WQztMqhRa3bvX7EN0gW7GG9Q7gQL/2j6dIRq1Iq4Ny2sA74d6YjPNC+CK7G3PUYbkcnoGV+kqZ5m4vZr8vqjzx6LzOSqm0iEeA0kQ78MJB7F7CrlJ1qJfU7mab4VfMXXG5yvvY6smocNllCXx4yZbJiCYivRTN40xDmrKD/l/5uKGugI+S7QHvsI8M3KDvAA/hb1dSFELPhUoXqColE/Xijub5Adwhu4jX4i1RplStk/FlddpiP9VrgiFAdrTgLilGzjFpJDIQtm8lbcyoD3HFzXNry5JkuhzhZlWuFOAGYSE5d9CgyhiYY= X-Exchange-Antispam-Report-Test: UriScan:(83566789882024)(228905959029699); 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)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR0701MB3836;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR0701MB3836; X-Microsoft-Exchange-Diagnostics: 1;MWHPR0701MB3836;4:4Nlaww3Es2z1XGrc7or9KVH5HasXtSHMNOvr87d8yCNX8gmgPPVh6nEixiOdVHFbJjvEsE4yX62VsNWvXmNfqKy3bLqDcPl6RoJKRSSm7Ny9Roc1zGMWCbcFQcaacOrA48nsqBwaHT9vS97d5FNOWZFdaXt9qTpV+12xIVtiE4HEJy//71mDSH5J2bGxKE4hCzKNAAuPZiztf1QF05GXni+g9Clr/PuvuuS/oKOMRx0/xbYhmvhH9XTvWdRt2IGS6QLoESu5vMonPxW1EsU1mMkRxIuZqamHKAswxl2qUlsHnw0uejk72MQjL5zLbLqd22gWm3Wmx0i+Xb22wZPLAQ== X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(7916004)(346002)(376002)(199003)(24454002)(189002)(2906002)(6486002)(47776003)(25786009)(72206003)(93886005)(6306002)(101416001)(50986999)(76176999)(16586007)(54356999)(305945005)(5660300001)(7736002)(42882006)(76506005)(2950100002)(106356001)(966005)(6916009)(58126008)(16526017)(33646002)(81166006)(33716001)(9686003)(8936002)(68736007)(66066001)(83506001)(3846002)(97736004)(6116002)(8676002)(105586002)(316002)(478600001)(189998001)(50466002)(6496005)(1076002)(229853002)(6666003)(81156014)(53936002)(6246003)(23726003)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR0701MB3836;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR0701MB3836;23:JsRr8RJG9WDUHFsm92UB3XT0HHWYQb0YefyC8Yq?= =?us-ascii?Q?oXOQJWtNOaVJDpQvJJgpWi4QWmiZ5E3xVLcckfC5YFIig+P3XSLIFkA73UvM?= =?us-ascii?Q?1kVHEG5uLRKEkLGqUKgKWp0B2wvt92mVjQdmw0VXA7eTjZp2RVCjalWAMy4b?= =?us-ascii?Q?lN1SCtHCkXYrXveztqmmJg2xYVGtqpVp3UM7P1JpkGGFwj14YnyLt4XOQFgJ?= =?us-ascii?Q?/9agSwIKELjHiCUhkwTfyZYxQaXdnYFCt+jBVItbWtxZNyWwld5K6OEo2r+0?= =?us-ascii?Q?qu3SxtzBe0KajXdHnAmwWXyPhTPNQFVP3ASHTsqqEYyn4vxHBHxOSOUttWDp?= =?us-ascii?Q?LnjfDjFPEK/lzwlzD6mWLG8qaLSEFtHTPmFIELt/PxX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51nlEqjRcDts22ZZ0udakDDjatVETasCovhEGLF1YW?= =?us-ascii?Q?d2w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR0701MB3836;6:96OJMddsyJG080bHI1Ex4VSQVsM25YCnXnUNGmf6GUhmQs9pIAsE43uv+I9+w73gooVEcmoMSyc8zja5WSu7DC4Ir2MkCiQgz+2HU+QbCAGVKXYUxL1K4Uf5AL0IuNmmo0CQUKVCOZ8EvelXuaA0EUN4ChKtwYKbyoqABsVNit31iIwp/9Yp6JVcmPmDF7E9YJ6Rfi/ZJROC4vFXyhga3B/+AW3Pyf3oq4YfPCDk7mApeoBK3iCtak3kYH3TZxfxBbI1M8lxkQQiU6y/YpZLcGb+/h3rtXJZVz/jVR8ZDjezYaVZOqeewDJ9R2mNwuhcproTYfKG89B9NRQOMmC/qQ==;5:2dbMh1WGrJQNY/vrMTyBBBG+Tq+uDiiR4l+EOlyHeUqYFiBGctp+nwKbBeUlP0OLBchJo14HivIwpErAICDkMXmTE7FPHzIMB3t1/fS3aajzRiZ8cWJX51SC8P+GNFtTYJi3D6pG7Uj5BxRdr+vLFg==;24:fKFSigmsGXAFjuFTIGPgKdi28Bx9i69HYe6sStscX2lqW4q6XE4U5RdBLzkh3xpV0IDs5sBf2STBBwtLXyOVbzz0Qua3JFKJ+znugUG7i0U=;7:Njhz/bmkXfkU2XTpTfC+t7OKxxhEoIDGZBsMfuistntnHxa4kJJzJt+Qu7OXrL/2h6IgiHtewA1rzy0oVCYC0wIuheuYCr6VWXFZGqCh2pq0GVEu/FXaUp8Sc+TovS+mMHKtmf2FGkfhGvFkYI7SE0hdO94s5JmWiMLc41EhNZeIC4Ml7fT7mEq1dVs++aLP+D02lB4+aq19QD0+fYEc1bulImEDmrkR3pRHRAIiyGs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2017 11:54:34.5145 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0701MB3836 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2073 Lines: 51 On Tue, Sep 26, 2017 at 11:23:24AM +0100, Will Deacon wrote: > On Mon, Sep 25, 2017 at 01:54:57PM -0600, Ruigrok, Richard wrote: > > I also found this issue with kernels from 4.11 through 4.13. In my tests, I > > found that it reproduces only with 4K page and Transparent Huge Pages. With 64K > > page I was not able to reproduce. RH also reported it here: https:// > > bugzilla.redhat.com/show_bug.cgi?id=1491504 Linaro reported on the RPK kernel > > (4.12) on Centriq2400 and ThunderX > > > > > > https://bugs.linaro.org/show_bug.cgi?id=3191 > > > > https://bugs.linaro.org/show_bug.cgi?id=3068. > > These two aren't the same bug (that's a forward progress issue that we're > currently working on). I don't have permission to look at the redhat one, > but is it just an RCU stall or actually the Oops reported by Yury? > > > I was able to bisect down to a specific commit. > > I think we're chasing two different things here, so not sure I trust the > bisect! > > Will I ran test 30 times on 4.14-rc2 kernel with 64K pages, and no panics happened. So it may be same bug though, or somehow related? I'll do some bisects and report results here. Yury > > First bad commit is: > > commit f27176cfc363d395eea8dc5c4a26e5d6d7d65eaf > > Author: Kirill A. Shutemov > > Date: Fri Feb 24 14:57:57 2017 -0800 > > > > mm: convert page_mkclean_one() to use page_vma_mapped_walk() > > > > For consistency, it worth converting all page_check_address() to > > page_vma_mapped_walk(), so we could drop the former. > > > > PMD handling here is future-proofing, we don't have users yet. ext4 > > with huge pages will be the first. > > > > I did not use virtualization, simply booting kernel and running the LTP > > rwtest: ./runltp -p -f fs -s rwtest > > To validate bisecting (good points), I ran 30 iterations. Usually it > > reproduces in 5-10 iterations. > > > > If you have any suggestions for instrumentation I can run tests, we can work > > with 4.13 or on 4.11 at the above bisect point. > > I have not tried the 4.14-rc's yet.