Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4929212ybv; Tue, 11 Feb 2020 06:05:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwy8Vkyv9M8xTefGAsVvP8GqB3MouPALJFPk4+OpI5YlvK4mlSllYhq4mYfn63/8cYVFQa6 X-Received: by 2002:a9d:6452:: with SMTP id m18mr5165616otl.366.1581429950114; Tue, 11 Feb 2020 06:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581429950; cv=none; d=google.com; s=arc-20160816; b=0um/dDktLM/dg4W7zZgDL+vF768vbH+dhWSU4giqW0YdFH0L8qJO5k1LM1dMJhcxAM wdPe/aKs/Wj4xdkMonogPCdPIuZGMUnwTx+gBY0gMlxGLV4jH6TaIpXL/fpYNjYLHASs 6qSEuzfaGY1YtGt/UXmR0hp7Afg1KPOKzrahTocKsVoLv4bSu1xXDwGCS1lw6JP9CNDG 3hn3ptaHFUNFaUPurDOOtZFRgprFiCQV+Awd2pr/0HUhwrYgMOeMW99f2eTLJxa+5pz3 HaDv3QXXGcF7MgHH7XtPnA8kY03h9GKYVSa5clTjIFkQmBjMkOP4eg0MkVVgMCL0YkTV 0Hwg== 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:references:cc:to:from:subject; bh=N02hxzAdPzTcWxKptBAum4rPdjMVfzNLr412dvGGr/I=; b=Lp8xoUn+1/xTsYI3ByZ+Np6uooswR5Ur7b5H8W8gsPHeXk1oRuBo6LrHVYjnNyZKor UqIAfNmpjtkigubmpLGNcrKH4nWvMe0oYPvgngeSNKpJiJi705kSSXE9LR7zrGs6bGUy aqif2Y0L/7o4vQ9/nTDsnmNKWixvqQp+81vE4DjCKrxKy+dIIu3HloU8O+NJlql3tvNB 0SEHxRyImWkV+t4Lf66C7r/WpfYutKCuIFoLPvoQ70enHa0IxKJyq/fsDkE2oJOqPLwy o2UzYWvK39UJhnSUe/7dRcTBtkE1ueMrK9EJjwVy1/4wmPmBDhVodxVQdEMuoiMMwN8C 2A2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si2022493otd.245.2020.02.11.06.05.09; Tue, 11 Feb 2020 06:05:50 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728926AbgBKN4X (ORCPT + 99 others); Tue, 11 Feb 2020 08:56:23 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:62562 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729928AbgBKN4W (ORCPT ); Tue, 11 Feb 2020 08:56:22 -0500 Received: from fsav109.sakura.ne.jp (fsav109.sakura.ne.jp [27.133.134.236]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 01BDtXDV028263; Tue, 11 Feb 2020 22:55:33 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav109.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav109.sakura.ne.jp); Tue, 11 Feb 2020 22:55:33 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav109.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 01BDtS6W028248 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Feb 2020 22:55:33 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: INFO: task hung in wdm_flush From: Tetsuo Handa To: Dmitry Vyukov Cc: Oliver Neukum , syzbot , Andrey Konovalov , Jia-Ju Bai , Sebastian Andrzej Siewior , Colin King , Greg Kroah-Hartman , LKML , USB list , syzkaller-bugs , yuehaibing@huawei.com, =?UTF-8?Q?Bj=c3=b8rn_Mork?= References: <0000000000003313f0058fea8435@google.com> <8736ek9qir.fsf@miraculix.mork.no> <1574159504.28617.5.camel@suse.de> <87pnho85h7.fsf@miraculix.mork.no> Message-ID: Date: Tue, 11 Feb 2020 22:55:25 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/02/11 0:21, Tetsuo Handa wrote: > On 2020/02/11 0:06, Dmitry Vyukov wrote: >>> On Mon, Feb 10, 2020 at 4:03 PM Tetsuo Handa >>> wrote: >>>> >>>> On 2020/02/10 21:46, Tetsuo Handa wrote: >>>>> On 2020/02/10 19:09, Dmitry Vyukov wrote: >>>>>> You may also try on the exact commit the bug was reported, because >>>>>> usb-fuzzer is tracking branch, things may change there. >>>>> >>>>> OK. I explicitly tried >>>>> >>>>> #syz test: https://github.com/google/kasan.git e5cd56e94edde38ca4dafae5a450c5a16b8a5f23 >>>>> >>>>> but syzbot still cannot reproduce this bug using the reproducer... >>>> >>>> It seems that there is non-trivial difference between kernel config in dashboard >>>> and kernel config in "syz test:" mails. Maybe that's the cause... >> >> >> syzkaller runs oldconfig when building any kernels: >> https://github.com/google/syzkaller/blob/master/pkg/build/linux.go#L56 >> Is that difference what oldconfig produces? >> > > Here is the diff (with "#" lines excluded) between dashboard and "syz test:" mails. > I feel this difference is bigger than what simple oldconfig would cause. > I explicitly tried a commit as of the first report (instead of the latest report) #syz test: https://github.com/google/kasan.git e96407b497622d03f088bcf17d2c8c5a1ab066c8 and syzbot reproduced this bug using the reproducer. Therefore, it seems that differences in the kernel config used for "syz test:" was inappropriate but "syz test:" failed to detect it. Since there might be changes which fixed different bugs (and in order to confirm that proposed patch cleanly applies to the current kernel without causing other problems), I guess that people tend to test using the latest commit (instead of a commit as of the first report). I suggest "syz test:" to retest without proposed patch when proposed patch did not reproduce the bug. If retesting without proposed patch did not reproduce the bug, we can figure out that something is wrong (maybe the bug is difficult to reproduce, maybe the bug was already fixed, maybe kernel config was inappropriate, maybe something else). Regarding the bug for this report, debug printk() reported that WDM_IN_USE was not cleared for some reason. While we need to investigate why WDM_IN_USE was not cleared, I guess that wdm_write() should clear WDM_IN_USE upon error ( https://syzkaller.appspot.com/x/patch.diff?x=17ec7ee9e00000 ) so that we will surely wake up somebody potentially waiting on WDM_IN_USE. [ 38.587596][ T2807] wdm_flush: file=ffff8881d488bb80 flags=2 [ 40.214039][ T2807] wdm_flush: file=ffff8881d63fb400 flags=2 [ 40.304390][ T2842] wdm_flush: file=ffff8881d5e22500 flags=0 [ 40.371742][ T2869] wdm_flush: file=ffff8881d4964c80 flags=0 [ 40.429954][ T2844] wdm_flush: file=ffff8881d5937b80 flags=0 [ 40.461538][ T2858] wdm_flush: file=ffff8881d488b400 flags=0 [ 40.464909][ T2863] wdm_flush: file=ffff8881d488ea00 flags=0 [ 41.576761][ T2896] wdm_flush: file=ffff8881d43dea00 flags=2 [ 41.949941][ T2909] wdm_flush: file=ffff8881d63c3b80 flags=2 [ 43.760828][ T2899] wdm_flush: file=ffff8881d3d7a000 flags=2 [ 43.857364][ T2911] wdm_flush: file=ffff8881d63c2000 flags=2 [ 43.857501][ T2904] wdm_flush: file=ffff8881d3d7a280 flags=2 [ 43.866560][ T2906] wdm_flush: file=ffff8881d5ce4780 flags=2 [ 43.876210][ T2897] wdm_flush: file=ffff8881d385db80 flags=2 [ 72.308895][ T2909] INFO: task syz-executor.0:2909 blocked for more than 30 seconds. [ 72.316860][ T2909] wdm_flush: file=ffff8881d63c3b80 flags=2 [ 74.228916][ T2906] INFO: task syz-executor.1:2906 blocked for more than 30 seconds. [ 74.228921][ T2911] INFO: task syz-executor.3:2911 blocked for more than 30 seconds. [ 74.228935][ T2911] wdm_flush: file=ffff8881d63c2000 flags=2 [ 74.236949][ T2906] wdm_flush: file=ffff8881d5ce4780 flags=2 [ 74.236991][ T2904] INFO: task syz-executor.4:2904 blocked for more than 30 seconds. [ 74.245459][ T2897] INFO: task syz-executor.2:2897 blocked for more than 30 seconds. [ 74.251305][ T2904] wdm_flush: file=ffff8881d3d7a280 flags=2 [ 74.257129][ T2897] wdm_flush: file=ffff8881d385db80 flags=2 [ 74.257951][ T2899] INFO: task syz-executor.5:2899 blocked for more than 30 seconds. [ 74.294465][ T2899] wdm_flush: file=ffff8881d3d7a000 flags=2