Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553AbcJKPVS (ORCPT ); Tue, 11 Oct 2016 11:21:18 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:58928 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752894AbcJKPVP (ORCPT ); Tue, 11 Oct 2016 11:21:15 -0400 Subject: Re: btrfs bio linked list corruption. To: Dave Jones , Al Viro , Josef Bacik , David Sterba , , Linux Kernel References: <20161011144507.okg6baqvodn2m2lh@codemonkey.org.uk> <20161011151139.GD19539@ZenIV.linux.org.uk> <20161011151904.qimdy3rra63fri7n@codemonkey.org.uk> From: Chris Mason Message-ID: Date: Tue, 11 Oct 2016 11:20:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161011151904.qimdy3rra63fri7n@codemonkey.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c091:180::ee4c] X-ClientProxiedBy: BN6PR07CA0005.namprd07.prod.outlook.com (10.173.33.143) To MWHPR15MB1246.namprd15.prod.outlook.com (10.175.3.8) X-MS-Office365-Filtering-Correlation-Id: 2e1fe522-5d58-4131-5fc6-08d3f1ea2d4f X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1246;2:6SFbmvNdrylnCgQ6oTfK2VoYE4Mw+pXDdRWgtS7j99vc8ecbKdLFKcwFjCWW5V6MPbODC33nXoHamKbh2sXl1mbPHanyYIlts0ZBSs7mYdJ/1t9WePu83cDgd+LijjibEDLtzROLtGrrf7kuCIOYAjEeH73EAH0hKMG90HV7eZ1Q/QPEx7thJXfdCFZSd35NfcHaK818NjEtO7PF+8mbaw==;3:DP2Hz9Bg9eE7sW1d9EtS5xSXM1L7zk37jwpmJabTcSaEqEfzEn2Xexp0POzoN1wVFNO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LCxkG7NffGwmZ/qwoWALCCGZNop5HKVm7VZY07/8p9XO8tmzzSjO7wMGbFTOTKQldz6bCGPOz8e2xt/AqAPkrHQvJeT5oyAUWgz52EzWa5V+oCgtjIXY8eBKpYEVfazq945sE6jT0YXNGn6ZyFStVfM8qcU4jSyg7Oa4Xsjt5GoPyM/i6RCwayI4BfVUVzz6nGrk1DHJpmlVZNBBpeO7OOU9lR2ZZl7KTYZh3qMoAlLBXb2ECGk/57DuHJCT6eCGu94IAQaEQKLu3RVNvtPGmkZcttFxIR5bCh98T7vH6bO7fHMxKlLBBUfJoSfsgy/Mmg15S85cb2N00HoTmf960/weM6MtbhYrzZLNpxoJy+RfdqkCmh8IHqQGyrCeP9ZOIt2odiORA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:MWHPR15MB1246;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1246; X-Forefront-PRVS: 00922518D8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(377454003)(189002)(199003)(24454002)(23746002)(50986999)(105586002)(36756003)(92566002)(65826007)(101416001)(86362001)(31696002)(83506001)(6666003)(230700001)(5660300001)(189998001)(7846002)(1706002)(586003)(6116002)(7736002)(107886002)(68736007)(2906002)(305945005)(5001770100001)(76176999)(42186005)(54356999)(50466002)(64126003)(65806001)(97736004)(77096005)(33646002)(4001350100001)(2950100002)(47776003)(106356001)(65956001)(81166006)(8676002)(81156014)(31686004)(3826002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1246;H:[IPv6:2620:10d:c0a1:1110::1023];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR15MB1246;23:6ksrv6TLZAazp48HBuklNiiJR2jPtZpWGKr0T?= =?Windows-1252?Q?O62OsySk37BHi+b04BufJsQr77dOBuOi8p3VwGRyKPQAu0AZBAVVigXS?= =?Windows-1252?Q?LdB4LzyC1w4XAM4dv8brn9JZHr4WOQX9J5EDvPXqCh8noPHBCryROLAd?= =?Windows-1252?Q?li5XZjke7WaqoiDwxC45giS2EIOh0y9L6EvvB/zY2NSAR9LX7FJbC9Os?= =?Windows-1252?Q?TTQDvsmlnfuevBelpv0Ag2SGgeT/962gjBAdUqzWBPdUP+6xNL1F/PHF?= =?Windows-1252?Q?sdHdX7x6bbAQzOxHVuPstqBf58k8PbNnTX4Nt8wW6Cu1ChQwQ+VVo6hN?= =?Windows-1252?Q?fEwAMcJcmVMXi5Uavvj3TAQFyviH/TKEr2LZV8ivKlWWTF9Sz+m5Pxpb?= =?Windows-1252?Q?yJY9WoRPH1tCbZNKGEM6UsZltklXNglT1UvESmuI68Act39ljujBNRsg?= =?Windows-1252?Q?gwoswL0APaUraLNFyusEHYnRkl1iTDl1xvA+VsQlqYsAox+dQj7ND3Zb?= =?Windows-1252?Q?KEEwZubw/9SkasYKe8kpmMPfOs+KVH2IpMHCMeQ9MngMR/bJBxqRGOTv?= =?Windows-1252?Q?I+sAeFJz1oJ3ugiL5oB38dBbRQWcAnyQ69XI/aQDQtcBcoZk/IAfXdd3?= =?Windows-1252?Q?n7ysaIDT4gulGL6nNqp7LEZM/O8wurn1bnyx/XHwE2O7bR9CIxPRaCXX?= =?Windows-1252?Q?QnBwPC+Y+NpFdOGZ4hEt399lZWyco88XBJlFOz4MgkdHfhPe7UvZxxn5?= =?Windows-1252?Q?b4QiijMmusk8LWRFy2Q54KgqCsJqVGfhStbK0pcgYM7aocaypmOjaEr8?= =?Windows-1252?Q?IOaOOb0V1BtIlUQlyom8BtEE3h0oVZSBid31zMZY/vw6oxNLv7DcQxUD?= =?Windows-1252?Q?YfrCxwqAdUXdAWGGIzddHv+ptJC7d4lYxQY7WHrFaUi7jsCbxn4yi2OE?= =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B2BgsSq/88rQdQwl5NF0FgKirpSk/oLEcasjyLxCk+LqNZtMOkmJY9jg24PE747HHTz656qLV2hA=;7:ABQwwXbhzcdsOglwWsdAdgkhxrZopIM+0nOn0rMpyqVM/WKKjPkY7h+Eibucac576etcrQ320vvtDd3AXV5CzXdrCSHSRiHWTMV/lnnHsUm32fIquU3/KA/YrwbkJYwGzxGgOujsf76zSYIAibS3RWq5qSi4VF3GTWkHEJeNq0usPrPuteGT0+Ys5iFwpMS4dFMKjOSf3c72XypRco7mcH8dHT6LSPbRgO6M/EcBaIcEHtrYEplaEp4V/U27rYFoAJlVUQDrZHfsK+4traCN6EZtpQ4e8KDrEx9L7+oDNmF48RIyVTDm5cPKrZakLu/q4uArEbOVxnVkIdwhdtW2xBQXnSccjKGzDxIySsNI3Mo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1246;20:ogqmY7qTuEJ9Gk7zMwUyTYaVLgvTshELkht20w/sxO8FAHD3RNY1k/5qHGWChgh0FYfMtKY/7LuhiANRRLCWBtEJyueeSTlAvr0ZrxODun0Q1IYWWxP+HkMtdeGyboMZ2wvOI2DnnuEFtypqLln7BfM9yLSmqeuGlLp75o+L/lc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2016 15:20:46.2209 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1246 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-11_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 26 On 10/11/2016 11:19 AM, Dave Jones wrote: > On Tue, Oct 11, 2016 at 04:11:39PM +0100, Al Viro wrote: > > On Tue, Oct 11, 2016 at 10:45:08AM -0400, Dave Jones wrote: > > > This is from Linus' current tree, with Al's iovec fixups on top. > > > > Those iovec fixups are in the current tree... > > ah yeah, git quietly dropped my local copy when I rebased so I didn't notice. > > > TBH, I don't see anything > > in splice-related stuff that could come anywhere near that (short of > > some general memory corruption having random effects of that sort). > > > > Could you try to bisect that sucker, or is it too hard to reproduce? > > Only hit it the once overnight so far. Will see if I can find a better way to > reproduce today. This call trace is reading metadata so we can finish the truncate. I'd say adding more memory pressure would make it happen more often. I'll try to trigger. -chris