Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755892AbcJRXeU (ORCPT ); Tue, 18 Oct 2016 19:34:20 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:53870 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752128AbcJRXeJ (ORCPT ); Tue, 18 Oct 2016 19:34:09 -0400 Date: Tue, 18 Oct 2016 19:31:48 -0400 From: Chris Mason To: Jens Axboe CC: Dave Jones , Al Viro , Josef Bacik , David Sterba , , Linux Kernel , Linus Torvalds Subject: Re: bio linked list corruption. Message-ID: <20161018233148.GA93792@clm-mbp.masoncoding.com> Mail-Followup-To: Chris Mason , Jens Axboe , Dave Jones , Al Viro , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, Linux Kernel , Linus Torvalds References: <20161011144507.okg6baqvodn2m2lh@codemonkey.org.uk> <20161018224205.bjgloslaxcej2td2@codemonkey.org.uk> 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: [172.101.197.43] X-ClientProxiedBy: BL2PR01CA0046.prod.exchangelabs.com (10.141.66.46) To DM5PR15MB1243.namprd15.prod.outlook.com (10.173.209.137) X-MS-Office365-Filtering-Correlation-Id: 4a0f7668-aafc-4271-8e2d-08d3f7af3cc0 X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1243;2:1K05gAVfhyV2Dt1uZbqLUG+S9Bi08ruLROOCxuO9OtkCWvDDKnrU+KtpcOvCVAcxTsZTDofABY3kA3qb6xbY/S/vU5omtbw9gZSEQehlU7yKFFnKgaK4o87JEOHA3DwIZyjceGvZIZsMDCdQfYJMwM6rXfzvyi4v1ZMMfWa8D/cbN0T9J7SHJSFW/wsHaVlhSJGTCoq79EWDt+7J1ixt+w==;3:RbmlkYzx80GL59oW/1GOHPJ7akTgGE6+x13C9BPx1Y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d1wVEwv0rg74MNV/54AY9cQac5R0MPY=;4:4roEvhNnKqy5vWEIzofIGJr2gPJcihNDiJihN8Xu+6Nrwd+HAMSTUpOOT7ui+KwM5D1AWZ/DYQ4g+ny0jHgRE4qRamkuu98UJm3RvmBwNTv4oOVasBtOyEN24a0/MbGcLPXGM7b+EOO/RTrfnmXEjD8q+k9b/DPegkcvkVp6qJy/0gpReHA+4tl5E2YdvrJlGaQABpn6RNwc/IESxyGxdB/PUmTCrmPlXKyYYKl/0JS4tiS3WYSCanJPzQ1lRDzbbgukwV096VQDXfu6a+An3oNTBjMJ6lgY6D7dAF4jbW2L/809wliAjPJAjy35/8DMMJJByCg5C5j758rmQnMOKvtR6gqT/Uh6NyhzF4AGPtN5VB0jeFY6lpmTaidLSPWDqWMyEyYyw8QmPs3ULntjbQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:DM5PR15MB1243;BCL:0;PCL:0;RULEID:;SRVR:DM5PR15MB1243; X-Forefront-PRVS: 00997889E7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(377454003)(24454002)(189002)(199003)(81166006)(54356999)(42186005)(2906002)(81156014)(8676002)(76176999)(4326007)(92566002)(69596002)(77096005)(50986999)(575784001)(5660300001)(106356001)(1076002)(105586002)(6116002)(586003)(3846002)(50466002)(86362001)(9686002)(53416004)(101416001)(6636002)(6666003)(66066001)(23726003)(189998001)(2950100002)(3480700004)(7736002)(110136003)(4001350100001)(68736007)(97736004)(47776003)(305945005)(7846002)(83506001)(19580395003)(33656002)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1243;H:clm-mbp.masoncoding.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-asc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j3+hS0c6Yk9qE=;24:tD3Fcrm1hW17L647o6wlunVRZVFlP+w2APlpDYtzXfil9dpMs3u5daka1GC0CjNGwi+dpSEjsq/eCgIE+z+LTq7oTdKQ6QNF/peSiA/KjRg=;7:ECDusqert+wW5hzKl4Ov4S2eImV9ofB47VO3KlAYE7Q5kTLYNEHTbWpDexYykj805Mz6B0QxHl1eJT8n0o9QzZKtd+h7WJuZoctYwqZf7NuqOTWiXJOh8b9otek9Uy1VSfxB4LM4CoUN02U/BDXiTLnlysg4h09xG1U7i08L9NtdxfgVo+WqyE+s4zLhntzDQwH0ElDTaVu3yWNL9T6WqGo8TsbGQlIKXdEufOKU+pLGd5RbU44NBu3th7uHsPRXjFZpKuSalQ1K5Cz0DwiwO7cnRx0no5DGxUudsHssgB4ImuB8vBZhEKhU2aAJ4YcrmzA77fUeYi9SnaZcBujE7WKQWHMHhEDxYHutd8hn1Xc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1243;20:n7F34tVDBaJRGWoWgx0/n0Ne/72arMsvw/1IP+6VT7RWpZQTWBcm8g+9QjpQGbm5Yk0GAQLn6ABjWyZ+fn4rsEJZPmn1nPPyC6FB/G7xRgEFNZhRpIstWZclnejvWiUyQ5DmUQqm3MDMC0GWkylyh/rqufW13VI+8fNPVD3p4uk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2016 23:33:59.2135 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1243 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_12:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2922 Lines: 60 On Tue, Oct 18, 2016 at 05:12:41PM -0600, Jens Axboe wrote: >On 10/18/2016 04:42 PM, Dave Jones wrote: >>So Chris had me do a run on ext4 just for giggles. It took a while, but >>eventually this fell out... >> >> >>WARNING: CPU: 3 PID: 21324 at lib/list_debug.c:33 __list_add+0x89/0xb0 >>list_add corruption. prev->next should be next (ffffe8ffffc05648), but was ffffc9000028bcd8. (prev=ffff880503a145c0). >>CPU: 3 PID: 21324 Comm: modprobe Not tainted 4.9.0-rc1-think+ #1 >> ffffc90000a6b7b8 ffffffff81320e3c ffffc90000a6b808 0000000000000000 >> ffffc90000a6b7f8 ffffffff8107a711 0000002100000246 ffff8805039f1740 >> ffff880503a145c0 ffffe8ffffc05648 ffffe8ffffa05600 ffff880502c39548 >>Call Trace: >> [] dump_stack+0x4f/0x73 >> [] __warn+0xc1/0xe0 >> [] warn_slowpath_fmt+0x5a/0x80 >> [] __list_add+0x89/0xb0 >> [] blk_sq_make_request+0x2f8/0x350 >> [] ? generic_make_request+0xec/0x240 >> [] generic_make_request+0xf9/0x240 >> [] submit_bio+0x78/0x150 >> [] ? __find_get_block+0x126/0x130 >> [] submit_bh_wbc+0x16f/0x1e0 >> [] ? __end_buffer_read_notouch+0x20/0x20 >> [] ll_rw_block+0xa8/0xb0 >> [] __breadahead+0x3f/0x70 >> [] __ext4_get_inode_loc+0x37c/0x3d0 >> [] ext4_iget+0x8d/0xb90 >> [] ? d_alloc_parallel+0x329/0x700 >> [] ext4_iget_normal+0x2a/0x30 >> [] ext4_lookup+0x136/0x250 >> [] lookup_slow+0x12d/0x220 >> [] walk_component+0x1e7/0x310 >> [] ? path_init+0x4d8/0x520 >> [] path_lookupat+0x62/0x120 >> [] ? getname_flags+0x32/0x180 >> [] filename_lookup+0xa8/0x130 >> [] ? strncpy_from_user+0x46/0x170 >> [] ? getname_flags+0x4e/0x180 >> [] user_path_at_empty+0x31/0x40 >> [] vfs_fstatat+0x61/0xc0 >> [] ? __lock_acquire.isra.32+0x1cf/0x8c0 >> [] SYSC_newstat+0x2e/0x60 >> [] ? __this_cpu_preempt_check+0x13/0x20 >> [] SyS_newstat+0x9/0x10 >> [] do_syscall_64+0x5c/0x170 >> [] entry_SYSCALL64_slow_path+0x25/0x25 >> >>So this one isn't a btrfs specific problem as I first thought. >> >>This sometimes reproduces within minutes, sometimes hours, which makes >>it a pain to bisect. It only started showing up this merge window though. > >Chinner reported the same thing on XFS, I'll look into it asap. Jens, not sure if you saw the whole thread. This has triggered bad page state errors, and also corrupted a btrfs list. It hurts me to say, but it might not actually be your fault. -chris