Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3559190ybv; Mon, 10 Feb 2020 02:10:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxAXXdLVbNZjCxOuLGYgcHAZWRbqohxfMQSQDVtYieCX1kj0OeQtGEDNEKvPclpn1Cih06l X-Received: by 2002:aca:c0c5:: with SMTP id q188mr320952oif.169.1581329404562; Mon, 10 Feb 2020 02:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581329404; cv=none; d=google.com; s=arc-20160816; b=Ir72eOZFsoibFp3oJ0S4OAufCClkFuK/QXW2WhNvOB7sob4/xml4enr/iTDGepZ/M4 iMNmr/a1nm59NXfLOsIMuy1VflKnItR3dpSOWgHKTjjP8Ga6p3DjvnfjjkZ2JzCYL+Lo Ie3JzH8GOK7Sgjyxzr/FZeWkKTtHgJAxxp/Jr69TdqRbwRsSbuUG82fgIn6yXDRATHNU Aixt5J49yT4rVrrsS/OPO5doBAZRu7X87MegPs2BsFImc/K0SUdwr23zCXpp4aSB7FX5 WGSBzmcpzni5BYFNh13fe8ZMLpPQ+kPmzEt4luvkOW2vGQcX+WNnGpsRK+s0jx/QwZvE GjYA== 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=PXT4A14zipK3Cgte0ZS99wrAYDgnIKCZLFZ4fFQsg4Y=; b=VtUET2AnUELLXDikYHl+Z99wECljUeSsqiOLfcwvmubK7BdjGLIeNxcUmsuOnJ/8lY c9YQ9d/iFV/x/Xn4gBRu/BRnYnHLMKiNmK3bhrdDxuiVW/XRarBHCaCoc3S/R13iC773 32ahP7TwT2PecYV+5NrzXX8yLP02DOpyW3kTAAHSXGpPbLXG3tLXk7ntZAE/S1vbYBgi Vul0gE1PSMD7ICR06U9hrLEEuXV6518Wc+fsbiODIwXkbQ88rupN+Rxb625xJH0cG4nA GZuORWVhMJ4BNszGN0H3/55dxslWQ8LNoN1c6cdmrCWKHyQbl3c40z8SW9DDT2PDochE sUpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="o/lSSmTA"; 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 u79si9041873oia.11.2020.02.10.02.09.53; Mon, 10 Feb 2020 02:10:04 -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="o/lSSmTA"; 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 S1727507AbgBJKJm (ORCPT + 99 others); Mon, 10 Feb 2020 05:09:42 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:43809 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbgBJKJm (ORCPT ); Mon, 10 Feb 2020 05:09:42 -0500 Received: by mail-qk1-f195.google.com with SMTP id p7so937724qkh.10 for ; Mon, 10 Feb 2020 02:09:41 -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=PXT4A14zipK3Cgte0ZS99wrAYDgnIKCZLFZ4fFQsg4Y=; b=o/lSSmTA2AtHywO9qZ9nrQtdrnhlDZ7z87lEC8/1LnVo8g6dQaSWznEZ10SYbimtQS fkCZzOmknltG/EhlpFk1ZiwrmSdOZXJAF4Ekz2EofuUNQlU48uVSQXnYEsN9YQyBnEpG sKW1xLaMW/MN6386m0w3biG7qJB4VwT1P2pUWqRCu+Dm7S+LhewLtylconJzHxpzYwUs 1RTIn92EWksb8wtzn/pG/OUHOrULBLyeHLgV+yMVA1vaAkR5mjrG+udUdyAd5sWCKuYJ 3+9Cq1vzxmsfVk9tHvhrSRVQDpFFdoPkIj3bKg5i07iEQrXJYGCPULDkTavkLB5rXFc8 9cOA== 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=PXT4A14zipK3Cgte0ZS99wrAYDgnIKCZLFZ4fFQsg4Y=; b=rYcws+vfjH4Uk4OEyPfMTvt9gk1y2e2IlnaOQrPQwaGDzyt+s1Sfp1vWFMZSEYppv6 FJnEIAMEBCrFrraJBHmUiZMSHYNogQFgoE87tlhKMaKQcNsJthIDiDAxD7TPyfuisdaO PFrFI3wHCuGadRKLqS86qwKnFJCO2ON7LEeyHEUtc+iWGDkgFW1nm2ztwFGB70l1uSnf pIQEqZS9d+BYTu+F2j2xBSWW5vIiDOFOKd/pAfryLZjAIRztF7+1SAFjiY/hDhsA0JUU AR/CzCaEa7yY2R0Tn7wdbFqn+eMhRwYXEd1k9dothY2Oc02RVentkD6+5bZc9310ecSy S6nw== X-Gm-Message-State: APjAAAWZqG8OPR2XgeO91yV/3pWLSmzlcpFyFOe5qAnJzmKhIFTBDPec /7oE+KgzHkgAuKdR5oCEbqPpUBUzK+uCoBvYD14aXg== X-Received: by 2002:a37:9d95:: with SMTP id g143mr569163qke.256.1581329380706; Mon, 10 Feb 2020 02:09:40 -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:09:29 +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 Mon, Feb 10, 2020 at 11:06 AM Dmitry Vyukov 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 t= he > > > > > > > > Damn. Too obvious. So you think we simply have pending output that = does > > > > just not complete? > > > > > > I do miss a lot of stuff so I might be wrong, but I can't see any oth= er > > > 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 b= y > > > >> creating a device that works normally up to a point and then compl= etely > > > >> 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 = the > > > 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 curren= t > > > >> error handling is more than sufficient, unless you show me some wa= y 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 w= e > > > > ought to be able to handle them. > > > > > > Sure, we need to handle malicious devices. But only if they can be u= sed > > > 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 = the > > > 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? Hi Tetsuo, The simplest and fastest you may try is to request testing on another, simpler bug. I have not seen any other signals suggesting that patch testing in general is somehow broken. You may also try on the exact commit the bug was reported, because usb-fuzzer is tracking branch, things may change there. If the old bug was fixed, but syzbot is not aware, new bugs being piled into the same bucket is exactly what will happen. So that's definitely possible.