Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935887AbcJSAUM (ORCPT ); Tue, 18 Oct 2016 20:20:12 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:35536 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935028AbcJSATf (ORCPT ); Tue, 18 Oct 2016 20:19:35 -0400 Date: Tue, 18 Oct 2016 20:19:01 -0400 From: Chris Mason To: Linus Torvalds CC: Jens Axboe , Dave Jones , Al Viro , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel , Andrew Lutomirski Subject: Re: bio linked list corruption. Message-ID: <20161019001900.GA95500@clm-mbp.thefacebook.com> Mail-Followup-To: Chris Mason , Linus Torvalds , Jens Axboe , Dave Jones , Al Viro , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel , Andrew Lutomirski References: <20161011144507.okg6baqvodn2m2lh@codemonkey.org.uk> <20161018224205.bjgloslaxcej2td2@codemonkey.org.uk> <20161018233148.GA93792@clm-mbp.masoncoding.com> <20161018234248.GB93792@clm-mbp.masoncoding.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [2620:10d:c091:180::8705] X-ClientProxiedBy: BN6PR02CA0054.namprd02.prod.outlook.com (10.175.94.144) To CY4PR15MB1239.namprd15.prod.outlook.com (10.172.178.138) X-MS-Office365-Filtering-Correlation-Id: 65c8ebcd-34e2-4402-c816-08d3f7b59303 X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1239;2:VF1DEDYTa7+uoDetUl5hHTYmWNgprXRax7v6LzQ6UEFvJ+EaW6VqnGzDyvwgM4nobPW7xK2kurX+LkFP63BTbV2Su5UZdVGtIJ4z2RvI6L/xdRDyEvyapT1vj6X+epWAJrAYJ0MKWnoRbvhpnN+2Nrlct2iDKf8V9hS0WXN7TA2r4peiuAqA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NGjgEm4iCI+pbFSP+nrm636at6Se9cG7sQekNlvscvqF0kPd5FtB20Le4hBRQtJHpcwFHb/n6OlWWJIujXUbPVfQFpyTmAnkpce/2Q5s=;4:PUqV96wjJhfkynXlF0PPbD/O13MaubgthcSuBNNtYlxgJ/B6c8qXg6nRD2DfExJ5BLDPGdjTXyiUYbVCdK8upQilvWp1mF7C1sFdxvQDHvQBygofa+3hRQx/6OJuP9HECzBrkOl4wVhmp6PAzjBMKVHvGgg5xmqiucQ5VOfqEs1BZrvbnmFHZLY5TW41h08CFFiIwAznYlXM6sIe4/ymzVWS7ma44KpuQi5yW7Uv2qHNPD1EKqi+/tJTBu8ikI1SqpxorC96QAS1QGedNWSYU6VGpgn/2C5THdpgS6U12wS+OTzbAai4leP+GZHsUVMRpOKFsp5hAMKBLNeJ9+MqkNpXbSJ/ZhBDK2RTVKjD8yGrDHJw90EBOMfL97PL2v3rfeAR5/S1YQNJPaUCo9Pq0sHZEOdOPR8NBx8YLPdZRH2aqGGelfWrp+xH8MSTAbU7pBvJ/qcV16boHLikjJSefcaa7gZzmtQcDkEMIwk5n6g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:CY4PR15MB1239;BCL:0;PCL:0;RULEID:;SRVR:CY4PR15MB1239; X-Forefront-PRVS: 0100732B76 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(979002)(6009001)(7916002)(377454003)(199003)(24454002)(189002)(52314003)(69596002)(92566002)(6116002)(23726003)(50466002)(4001350100001)(586003)(189998001)(53416004)(68736007)(9686002)(5660300001)(19580405001)(7736002)(1076002)(2950100002)(97736004)(83506001)(81156014)(2906002)(81166006)(106356001)(305945005)(7846002)(3480700004)(8676002)(76176999)(50986999)(77096005)(101416001)(54356999)(110136003)(33656002)(47776003)(42186005)(93886004)(6916009)(6666003)(105586002)(86362001)(19580395003)(4326007)(18370500001)(3826002)(42262002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1239;H:clm-mbp.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR15MB1239;23:4C9dwOFR2U2cxKnX7eUc+bjUjJTyoX9VhWl7hQzFT?= =?us-ascii?Q?xJs0HpDxBLzxM0fOx0v7/EMFpyEg29gDw2hG5mxtOWFEip0OvQvPfaPd3ty1?= =?us-ascii?Q?LbB00TUaJAmbJ268g60DfLvVKIAS4EICon8WB/P5kXQIGAIbjX2Wo/M/O/kI?= =?us-ascii?Q?YVQzALEqzGNM6yM1G6UEWDaKmSHPEhNvWKBErENUbl5wq/RVGSyOyOuhGMlw?= =?us-ascii?Q?6zAK8YwjjEn1fApa5Ef35VXKycXJx0KMXMuiP+8EEujP+CK0Sj/oiFQzrwA0?= =?us-ascii?Q?q6yFREBf5QiIPlA9YiuuedIvgOl06dq+sf18HJCYwOZcOoX8FlkRmd05Hh4T?= =?us-ascii?Q?SVRq/BvDeBmOt3smC0Hr6sGUKjkyPnLtBEpR+N6CFFZKFBWiWy3hEHojAmHA?= =?us-ascii?Q?Quk1zex4du11cE3poNaNJmxQMJbxksZK8K8dCA5HAb5a0uCs3eVbSvOqxLdt?= =?us-ascii?Q?/hrLTPqMVwTglxsRvRfujQNHjVuoF8m4aPwGnISzEtdZPgyT3+MYQrx8sujF?= =?us-ascii?Q?0toyig83rhRWjq/zSQACWhSFGG4v0XpAVkOkH7BBFvhxNMT6GL+upsrGl6Uh?= =?us-ascii?Q?dgNona/DnTjauY7GJ+Ibb9IbdzRe0L7W2+/1aOyseKaIAg+iV1ky8l0eaXfF?= =?us-ascii?Q?+x6jqrWhuJmuphGyvjAnl7sLmE00lR11q+a8RlC0Xe7npLTKBUwg9OnsmE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alArrivalTime: 19 Oct 2016 00:19:20.0778 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1239 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-18_13:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1857 Lines: 43 On Tue, Oct 18, 2016 at 05:10:56PM -0700, Linus Torvalds wrote: >On Tue, Oct 18, 2016 at 4:42 PM, Chris Mason wrote: >> >> Seems to be the whole thing: > >Ahh. On lkml, so I do have it in my mailbox, but Dave changed the >subject line when he tested on ext4 rather than btrfs.. > >Anyway, the corrupted address is somewhat interesting. As Dave Jones >said, he saw > > list_add corruption. prev->next should be next (ffffe8ffff806648), >but was ffffc9000067fcd8. (prev=ffff880503878b80). > list_add corruption. prev->next should be next (ffffe8ffffc05648), >but was ffffc9000028bcd8. (prev=ffff880503a145c0). > >and Dave Chinner reports > > list_add corruption. prev->next should be next (ffffe8ffffc02808), >but was ffffc90005f6bda8. (prev=ffff88013363bb80). > >and it's worth noting that the "but was" is a remarkably consistent >vmalloc address (the ffffc9000.. pattern gives it away). In fact, it's >identical across two boots for DaveJ in the low 14 bits, and fairly >high up in those low 14 bots (0x3cd8). > >DaveC has a different address, but it's also in the vmalloc space, and >also looks like it is fairly high up in 14 bits (0x3da8). So in both >cases it's almost certainly a stack address with a fairly empty stack. >The differences are presumably due to different kernel configurations >and/or just different filesystems calling the same function that does >the same bad thing but now at different depths in the stack. > >Adding Andy to the cc, because this *might* be triggered by the >vmalloc stack code itself. Maybe the re-use of stacks showing some >problem? Maybe Chris (who can't see the problem) doesn't have >CONFIG_VMAP_STACK enabled? CONFIG_VMAP_STACK=y, but maybe I just need to hammer on process creation more. I'm testing in a hugely stripped down VM, so Dave might have more background stuff going on. -chris