Received: by 10.192.165.148 with SMTP id m20csp5033384imm; Tue, 8 May 2018 20:33:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZriPjTmAKxlrZK6CeoRp2k2L/BQqxhVY1cgnP90HIrsBQUcra/qZJgdgAGdq0UTQDTGWslk X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr19606243plt.376.1525836831015; Tue, 08 May 2018 20:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525836830; cv=none; d=google.com; s=arc-20160816; b=rw+aDtN4Y/ZWbSS/xvGZG1+QkDznrKs22Y9Pd6XI3COBZfXDne+slQu9VdNd/oac1J MSOoFX0CCcC7qdHwtyiQ2AmDvhLU1u04fnDh0l+Ls2AxlBHjj540YIS58ikfBrnhlLD7 YlDg7m4RdaEyq1xYPVlYo8uwY+TXBLw6DHdw5kPU+DxN7BNbX8f3ckrvvycmaiivkAyc 2UbnEbEtVkCP8xXNpaX3kxb8NOizS6QVdlvWG0FGC2BqeHQNdpu/dl3tEYtbJk5pIZIS hFl+HkPJbrqOMPIqs1GTqrfVDMv/ak2gW1lHFlXSnhrLaqnv3sk1mHY0yiSqWypR4fF0 +V0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=B2Lho69m3xpDZM4uda2ShRzaoPY/CA/YZFOwWlTGXDg=; b=CPkUESWViIQUMcOb7kdHlHFe/rg6kLuzLICMD4VeGV5hQW/k9VshYzdkLj5tQCWO3j uZZkoq0jcHBCMYgeLMz7HanOwj3kj9Tr/J0fE0XhyRKq7q9wltNewlGR8nDxgtsjqy19 /pYBQVohoGcUmLlPapR7wBy+zx2LcR3Xh6YkYL0axKssE31yecZn1UFqWbsI2D864I5b kmOtIHd0xD8xN4quRjNf36qHRmdJTjNE/3W7ApPOVGPEXNWqCDSo7067HeS26c/+6fhf IP6ZU/z2YBrE9878LYcDRwozqpOUtgLVKBwMjZ0FxbcSZeFffHeyH987yf+tmUQcWqiq LlKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sandeen.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si11153047plb.220.2018.05.08.20.33.35; Tue, 08 May 2018 20:33:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sandeen.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933695AbeEIDcE (ORCPT + 99 others); Tue, 8 May 2018 23:32:04 -0400 Received: from sandeen.net ([63.231.237.45]:47690 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932579AbeEIDcC (ORCPT ); Tue, 8 May 2018 23:32:02 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id B4EDB4CDD38; Tue, 8 May 2018 22:30:37 -0500 (CDT) Subject: Re: WARNING: bad unlock balance in xfs_iunlock To: Eric Biggers , Dave Chinner Cc: Dmitry Vyukov , syzbot , "Darrick J. Wong" , LKML , linux-xfs@vger.kernel.org, syzkaller-bugs References: <20180403043854.GL1150@dastard> <20180501225159.GY23861@dastard> <20180509005011.GP23861@dastard> <20180509023721.GA711@sol.localdomain> From: Eric Sandeen Openpgp: preference=signencrypt Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= xsFNBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZaYg8AdJlyGKgp+TQ7B+wCjNTdVqMI1vDk2 BS6Rg851ay7AypbCPx2w4d8jIkQEgNjACHVDU89PNKAjScK1aTnW+HNUqg9BliCvuX5g4z2j gJBs57loTWAGe2Ve3cMy3VoQ40Wt3yKK0Eno8jfgzgb48wyycINZgnseMRhxc2c8hd51tftK LKhPj4c7uqjnBjrgOVaVBupGUmvLiePlnW56zJZ51BR5igWnILeOJ1ZIcf7KsaHyE6B1mG+X dmYtjDhjf3NAcoBWJuj8euxMB6TcQN2MrSXy5wSKaw40evooGwARAQABzSVFcmljIFIuIFNh bmRlZW4gPHNhbmRlZW5Ac2FuZGVlbi5uZXQ+wsF7BBMBAgAlAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAUCUzMzbAIZAQAKCRAgrhaS4T3e4Fr7D/wO+fenqVvHjq21SCjDCrt8HdVj aJ28B1SqSU2toxyg5I160GllAxEHpLFGdbFAhQfBtnmlY9eMjwmJb0sCIrkrB6XNPSPA/B2B UPISh0z2odJv35/euJF71qIFgWzp2czJHkHWwVZaZpMWWNvsLI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NwqmOWYF/6m+1gK/Y2gY3jAQnsWTru4RV TZGnKwEPmOCpSUvsTRXsVHgsWJ70qd0yOSjWuiv4b8vmD3+QFgyvCBxPMdP3xsxN5etheLMO gRwWpLn6yNFq/xtgs+ECgG+gR78yXQyA7iCs5tFs2OrMqV5juSMGmn0kxJUAEQEAAcLBXwQY AQIACQUCTrH31AIbDAAKCRAgrhaS4T3e4BKwD/0ZOOmUNOZCSOLAMjZx3mtYtjYgfUNKi0ki YPveGoRWTqbis8UitPtNrG4XxgzLOijSdOEzQwkdOIp/QnZhGNssMejCnsluK0GQd+RkFVWN mcQT78hBeGcnEMAXZKq7bkIKzvc06GFmkMbX/gAl6DiNGv0UNAX+5FYh+ucCJZSyAp3sA+9/ LKjxnTedX0aygXA6rkpX0Y0FvN/9dfm47+LGq7WAqBOyYTU3E6/+Z72bZoG/cG7ANLxcPool LOrU43oqFnD8QwcN56y4VfFj3/jDF2MX3xu4v2OjglVjMEYHTCxP3mpxesGHuqOit/FR+mF0 MP9JGfj6x+bj/9JMBtCW1bY/aPeMdPGTJvXjGtOVYblGZrSjXRn5++Uuy36CvkcrjuziSDG+ JEexGxczWwN4mrOQWhMT5Jyb+18CO+CWxJfHaYXiLEW7dI1AynL4jjn4W0MSiXpWDUw+fsBO Pk6ah10C4+R1Jc7dyUsKksMfvvhRX1hTIXhth85H16706bneTayZBhlZ/hK18uqTX+s0onG/ m1F3vYvdlE4p2ts1mmixMF7KajN9/E5RQtiSArvKTbfsB6Two4MthIuLuf+M0mI4gPl9SPlf fWCYVPhaU9o83y1KFbD/+lh1pjP7bEu/YudBvz7F2Myjh4/9GUAijrCTNeDTDAgvIJDjXuLX pA== Message-ID: Date: Tue, 8 May 2018 22:32:01 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509023721.GA711@sol.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/18 9:37 PM, Eric Biggers wrote: > On Wed, May 09, 2018 at 10:50:11AM +1000, Dave Chinner wrote: >> On Tue, May 08, 2018 at 09:56:01AM +0200, Dmitry Vyukov wrote: >>> On Wed, May 2, 2018 at 12:51 AM, Dave Chinner wrote: >>>>>>>> Hello, >>>>>>>> >>>>>>>> syzbot hit the following crash on upstream commit >>>>>>>> 86bbbebac1933e6e95e8234c4f7d220c5ddd38bc (Mon Apr 2 18:47:07 2018 +0000) >>>>>>>> Merge branch 'ras-core-for-linus' of >>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip >>>>>>>> syzbot dashboard link: >>>>>>>> https://syzkaller.appspot.com/bug?extid=84a67953651a971809ba >>>>>>>> >>>>>>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?id=5719304272084992 >>>>>>>> syzkaller reproducer: >>>>>>>> https://syzkaller.appspot.com/x/repro.syz?id=5767783983874048 >>>>>>> >>>>>>> What a mess. A hand built, hopelessly broken filesystem image made >>>>>>> up of hex dumps, written into a mmap()d region of memory, then >>>>>>> copied into a tmpfs file and mounted with the loop device. >>>>>>> >>>>>>> Engineers that can debug broken filesystems don't grow on trees. If >>>>>>> we are to have any hope of understanding what the hell this test is >>>>>>> doing, the bot needs to supply us with a copy of the built >>>>>>> filesystem image the test uses. We need to be able to point forensic >>>>>>> tools at the image to decode all the structures into human readable >>>>>>> format - if we are forced to do that by hand or jump through hoops >>>>>>> to create our own filesystem image than I'm certainly not going to >>>>>>> waste time looking at these reports... >>>>>> >>>>>> Hi Dave, >>>>>> >>>>>> Here is the image: >>>>>> https://drive.google.com/file/d/1jzhGGe5SBJcqfsjxCLHoh4Kazke1oTfC/view >>>>> >>>>> Have anybody looked at the bug and the image yet? >>>> >>>> Yes, I did that a couple of weeks ago. Couldn't reproduce on a TOT >>>> kernel here. >>> >>> Do you think it is fixed now? What fixed it? The bug was there. >> >> We merge fixes for fuzzing issues all the time. IIRC a big batch of >> them from the xfstests fuzzing infrastructure went into 4.17-rc1. >> >> If you want a commit, then do a bisect.... >> > > The fix was commit 8241f7f983b9728: > > #syz fix: xfs: don't iunlock the quota ip when quota block Ah, thanks. Interestingly that one was sent to the xfs list on 2/22, a couple months before this bug report. Took some time to get reviewed and merged upstream, and it actually landed upstream in Linus' kernel not long after this report... -Eric