Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3556362ybv; Mon, 10 Feb 2020 02:06:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxh0Z4mKmrEQ4QqTeNT/goJVV6vGQIXvp0VfJi8hFGEZYJmgz6jymf3JFaHkClzCvpVg0P1 X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr337486oie.78.1581329205770; Mon, 10 Feb 2020 02:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581329205; cv=none; d=google.com; s=arc-20160816; b=agzg5nnsK5y+xVWRA+0T5xVjYOR9BS6AWPwpE3USn/GpDwrtOEiCwgriVSly8ObK3n zSKuakdQT5XzTMo2PECaHgvF/lo/YpwFtLXgAbFYp6+mUXAH5GaCzdyZSR1J9LAScA53 Dt7WhFkesaGo1R4P8+O2UiWGWgYvwKcLMdirZbzLqc1bo1kwgkiP4mILoHIwGCo7Bc3e HD2opqBKrGC3ZWaAga7p6r04rfBhyzsXrOE555QAb2mAZvS4BX/WOU/3NECoQgEMwvHx 3Z+rpozIrxoIJ8iaSNn5rLH14uzzvfS1tiGXkwZ/ywEXH8J2JNTmEWvg2KroeQncCqfJ 1vAg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PCyW7d3yD8rdQcJuU4iNOWP0ir+kes1g3GxX1tS+nIM=; b=P75yCezdF0pRuLFu6+3LNtTVKiHdZmIfYX+zaK8jj2E7L9Gjiwah5HnAHA6Jat05AT RRqCN++mGYLdYtACuABTWS3Xi3tGNvwxh9ciocmFcNZ4itP08E0VRYUmB62RC6yHI01I JNQopePTlE00+U0fUED4Uwa1q35SmqOwUeYqw3x6UTu/fpBAz9C5TH9Bxkc9diaLu0iM AYmz6KeqAM5iHO2657WwLrZuVPGdbvI+Qj/d/ueiqoPI+lCjDnAUav16ECxcrFFDL0rG mSyCA1B0F+9oEZ3uDxSlZLuCvHrPfqLLQbM6p4zyiPYZE0is9li8mhy4lUu4CTK3QEhE NQVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=br6ln5d3; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a124si5244219oii.138.2020.02.10.02.06.33; Mon, 10 Feb 2020 02:06:45 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=br6ln5d3; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbgBJKGY (ORCPT + 99 others); Mon, 10 Feb 2020 05:06:24 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38721 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbgBJKGX (ORCPT ); Mon, 10 Feb 2020 05:06:23 -0500 Received: by mail-qt1-f196.google.com with SMTP id c24so4684308qtp.5 for ; Mon, 10 Feb 2020 02:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PCyW7d3yD8rdQcJuU4iNOWP0ir+kes1g3GxX1tS+nIM=; b=br6ln5d33r3VljnRfT08wgJeVi4x+Moeg3pPcWdn6VhIfJ5VGKswjjudyehvj11E3g Nd1Z+RN2yeAZ7sdctTk0cMOB5bxmZxB2kHLlI1ogGQr63AUXTvSVqzAql/3qb5/7mfJt C5v7bhzSdL9kuhzYXkC3ayu5aLVGxBTAexRr8l0vQE2ha/+C377tGAS/rtdpYA7BeLcD Ikys6TyqloxXVqI1+PT6aRpk8mKq4dm4/B0UxkJaadVPSZ0uu56td7sd3PfMrYjDrLdK krsun01rRfoU4LjFH+W3zVOvurcVotDrAVM7KmoWn3oK7m3nE9rvsgi/31fQuTIHVBOD xhMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PCyW7d3yD8rdQcJuU4iNOWP0ir+kes1g3GxX1tS+nIM=; b=qd5j9O7G0N8nOHLRmKhY2x/3xFMoOrmN5l5FZ0dPAoLikwxSIXP9JzdduAcHK3/A4m IAaEJxYIabeU5qY1AvUsMBORRA9AzPQNdeGaNixdO+oO48GPE7CMOcqhLm/YKnTNP+Pv WYwPeOChL6ql/jLSCvmApSHO2aSyc0r9+NvBvfcj3RqHDGduMdFoKRWxNSYczasDRsWP y4MEPEWdIBQUa8qpDzMmBWGyC8lcGQCabFMzUE5rwdTDapFEb+WrxyxivFvls8SlLJrN PC7sUFSQIop+5uFu68N1fT+eebypwwdUFB+FcBRewKDvRuHNfRT9dscHSHkO6Adcb/Ds Luzw== X-Gm-Message-State: APjAAAXnxjbXTRipogLtm88GfLQBxwmw2OVhEENIIOTwdApqAM5JDQ6M h9BMfss59l/bmVszShUN/2yKFfH6jhkSmo2e+nEO6A== X-Received: by 2002:ac8:71d7:: with SMTP id i23mr9400499qtp.50.1581329182468; Mon, 10 Feb 2020 02:06:22 -0800 (PST) MIME-Version: 1.0 References: <0000000000003313f0058fea8435@google.com> <8736ek9qir.fsf@miraculix.mork.no> <1574159504.28617.5.camel@suse.de> <87pnho85h7.fsf@miraculix.mork.no> In-Reply-To: From: Dmitry Vyukov Date: Mon, 10 Feb 2020 11:06:11 +0100 Message-ID: Subject: Re: INFO: task hung in wdm_flush To: Tetsuo Handa 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?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 23, 2019 at 7:52 AM Dmitry Vyukov wrote: > > On Tue, Nov 19, 2019 at 12:34 PM Bj=C3=B8rn Mork wrote: > > > > Oliver Neukum writes: > > > Am Dienstag, den 19.11.2019, 10:14 +0100 schrieb Bj=C3=B8rn Mork: > > > > > >> Anyway, I believe this is not a bug. > > >> > > >> wdm_flush will wait forever for the IN_USE flag to be cleared or the > > > > > > Damn. Too obvious. So you think we simply have pending output that do= es > > > just not complete? > > > > I do miss a lot of stuff so I might be wrong, but I can't see any other > > way this can happen. The out_callback will unconditionally clear the > > IN_USE flag and wake up the wait_queue. > > > > >> DISCONNECTING flag to be set. The only way you can avoid this is by > > >> creating a device that works normally up to a point and then complet= ely > > >> ignores all messages, > > > > > > Devices may crash. I don't think we can ignore that case. > > > > Sure, but I've never seen that happen without the device falling off th= e > > bus. Which is a disconnect. > > > > But I am all for handling this *if* someone reproduces it with a real > > device. I just don't think it's worth the effort if it's only a > > theoretical problem. > > > > >> but without resetting or disconnecting. It is > > >> obviously possible to create such a device. But I think the current > > >> error handling is more than sufficient, unless you show me some way = to > > >> abuse this or reproduce the issue with a real device. > > > > > > Malicious devices are real. Potentially at least. > > > But you are right, we need not bend over to handle them well, but we > > > ought to be able to handle them. > > > > Sure, we need to handle malicious devices. But only if they can be use= d > > for real harm. > > > > This warning requires physical acceess and is only slightly annoying. > > Like a USB device making loud farting sounds. You'd just disconnect th= e > > device. No need for Linux to detect the sound and handle it > > automatically, I think. > > Hi Bj=C3=B8rn, > > Besides the production use you are referring to, there are 2 cases we > should take into account as well: > 1. Testing. > Any kernel testing system needs a binary criteria for detecting kernel > bugs. It seems right to detect unkillable hung tasks as kernel bugs. > Which means that we need to resolve this in some way regardless of the > production scenario. > 2. Reliable killing of processes. > It's a very important property that an admin or script can reliably > kill whatever process/container they need to kill for whatever reason. > This case results in an unkillable process, which means scripts will > fail, automated systems will misbehave, admins will waste time (if > they are qualified to resolve this at all). On Mon, Feb 10, 2020 at 11:00 AM Tetsuo Handa wrote: > > Hello. > > Will you check whether patch testing is working? I tried > > #syz test: https://github.com/google/kasan.git usb-fuzzer > > but the reproducer did not trigger crash for both "with a patch" > and "without a patch", despite dashboard is still adding crashes. > I suspect something is wrong. Is it possible that reproducer is > trying to test a bug which was already fixed but a different new > bug is still reported as the same bug?