From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796354579; b=k8DHmxpp6c2hnrMjI2rnEJZZDfKDCWrr0iAyJu16hcEfEf7Ke53v3EjGWK2uOEHbWcg1 8RG8Xqz5bhd5Ak0JC5inIDjkTVvvnq21TeEDA1jD5bW5gaPl4unPWOAe6GUuiflI2l9Ah qx0B4b1CEkCmE9j+T8ppcRbenIR3gRschIjINnSAoIG7beNWkFRzcsBoVYTKSvE/ghLeO 2uol33lm5/i9yTB73x36YIYo0XG9GsuWoWayIK0hR/2EJRQuzlT4L6OX7sCM0iMBNdnzg d92pYhhpjGz3yvQyl4K/vq1NlLzZZLEjl+BBeBx5oXfJf2hx1Oqq/vGsdnSxRIJdibw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796354579; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=QQxITyk/RDrZesiBIHjgY3OA70zqoWhxWGsstpnisNY=; b=jRgpBK+ZKG8OxQf5dbW+5vcEdPq6SL2NW9yHAZePblHdzZo64LMgI0oM8xJy0DiN7jmo z3cJqwkSEoFNfm7xadUhFFiktVCfgc2RCSsktbgAtC8YURSwd3sP8Pav8i6b3XTxBwwXf VYK/WVMBQhMj5Ug/9F/yf0lIZ91Q7CX0S/f9JZD7i88KkbFRMvGGxlZuB4NtxE+rPTzHm IVH5knWnIBu981XaI7Tjiq6jEfk2FFYKPJpSkZ76O4sKzI+/XQrl31eZkXjFGdRVtRNZC d7KPRwkVjrn+AZdqYnS78xtMtBLiTVhd56bdIRyd3fGmdqLRVtrkG/ypyppuHh+PE0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=bReYK3KR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEB0B606A32D; Fri, 4 Dec 2026 03:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=bReYK3KR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FB611F000C2; Fri, 4 Dec 2026 03:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796354579; bh=QQxITyk/RDrZesiBIHjgY3OA70zqoWhxWGsstpnisNY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=bReYK3KRmzlNqeZhEFE16nmDPjpo3IJNs5R3ytxEbTKgz3rbXsBr5QGxNbam6BhM9 7zPkfqhQeF0glLyQiN9irWcd526nHZHtnEwUfOrWGKQ0gqtCYmYRh1KJdIhEN6W0Vo ejIEXxGrJtHWu+D/VrucakPf48AWuMp7H7x3NPT8= Date: Thu, 3 Dec 2026 18:37:24 +0100 From: Greg Kroah-Hartman To: Nguyen Ngoc Thang Cc: Thomas Winischhofer , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+109061940215dd4b011e@syzkaller.appspotmail.com Subject: Re: [PATCH] usb: sisusbvga: stop early init on the first failed transfer Message-ID: <2026120354-evacuee-scalping-fa24@gregkh> References: <20260923150754.31652-1-ngocthang2710.1999@gmail.com> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260923150754.31652-1-ngocthang2710.1999@gmail.com> On Wed, Sep 23, 2026 at 10:07:53PM +0700, Nguyen Ngoc Thang wrote: > sisusb_probe() initializes the graphics device from within the hub's > enumeration work, i.e. with the parent hub's device lock held. > sisusb_do_init_gfxdevice() accumulates errors with "ret |=" and keeps > going after a failed transfer. If the device does not answer, every > remaining transfer sits out its full timeout (5s, retried 6 times), so > probe holds the hub lock for ~30s per access and about 10 minutes in > total. Anything that needs that lock, such as usbdev_open() and > usbdev_ioctl() on the root hub, is blocked for the duration and trips the > hung task detector. > > Return on the first error instead. Also fold the three identical BAR > setup sequences into a helper and the leading magic writes into a table. > The sequence of accesses is unchanged when the device responds. When you say "also" that means you need multiple patches. > Reproduced with a raw-gadget device (0711:0550, six bulk endpoints that > never complete I/O) on dummy_hcd: opening the root hub blocked for 603s > before, 29s after. That's fine, you are giving the system a broken device, you get a broken system :) thanks, greg k-h