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=1796183202; b=PBqWKnZE6Hsrvp+qD1RWv8alEaLdxeOpokFonKXh5dY40oa6EJMyoObZC9rIOYsiuMUN 64oBib2l/SnKlgVgMrZMBmeTtZiQkn7h7BpzfYNW5zDenZrNXL+waixtELFytUKCpu+iY we0shwFpzEP0nUI6oMaIMK9BOEvOhvdFGqx582UYemL18pZQrs5GRc7NSawfeRomvLJ/1 pOo6mzcm2ZyQAOJ1bFEOmmgBLD3nJkzYR2obPddFCCu+ErMBNqN7AA7AA0a0VECE3OQTk LtJVYnpilISnh/Ed0vuHPbrrLyzjmbHFX9d9Bs+QuQnCPrpBh2ge7Ss334QFLbG8J/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796183202; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=65cwW9g2439U1aKepgtaxvJNb/dPN5mJ3PMNi0U14wA=; b=hfMJariGXSrCfmo4kvUIq9AlWxCXelQNo1fhVfduR/LveJ7BXQVcc9MW1AhRH2vITv1s YSYml7KkSXOx3mfPXGBxx1UgQvRBD+C8b1m/vmJ/Ae2S+n+1naJbsV8VX7f7oF9bEe44j R0zaMSNIede4NtBscomNUJ/tOIWWzFPu32EZCCpXTyC9pOVeA8dVmtXJ3LNZn+iw4rKT6 tulVBZNpjhfPIHc5OkdBWyYHlRAIR1LHEC4nI034PTpTbNfkk/j6jeXWiOipZi+Cfh7sQ vn5mqXbDMP5u6K5c0uWocSgmAuYHtVKIBat5RDFvT1IkZ2TRBqJsty2pQ1zNP1RGvFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZHtp7jVP; 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 4777B606A31A for ; Wed, 2 Dec 2026 03:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZHtp7jVP Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB5501F000C1; Wed, 2 Dec 2026 03:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796183201; bh=65cwW9g2439U1aKepgtaxvJNb/dPN5mJ3PMNi0U14wA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ZHtp7jVPyVSHKJIghUfvOyggVP+5uuMTiyI5wLWVT+exEAkukOomWdD85VeGXJTe5 a1UqA6clxY5Dlm704NEm8MN3+aEA+kfo5DunjThuLBGu7YEX1f4G+NLXCIQ+ns0F/3 w+YRVq/QYo2acaJlettWBBMfo3H+dTl+srIbJVJQJebDh/Oj4IVzaO9zZDQDWBxg4N aWgmZMXyGtMZnLu9TCQ02Sy0D1OJUIQBN+MtcfFgbWv9ky7gW/ZoowNg8oxljMAygV PkFrS2lXzrvTXa+e/hRi9sticEoUmU5aAHag5gISdkZi4G8s8cazWNh7FL0ibt3Hp8 1XSwqCc7akIWA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests Reply-To: sashiko-reviews@lists.linux.dev To: "Hongyu Xie" Cc: linux-usb@vger.kernel.org In-Reply-To: <179618252653.6035.16935625331395123264@kylinos.cn> References: <179618252653.6035.16935625331395123264@kylinos.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 03:46:41 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > When the TCP connection stays open, vhci_urb_dequeue() queues a > CMD_UNLINK PDU and waits for the peer to send RET_UNLINK (or > RET_SUBMIT) before giving the URB back. If the peer stops replying, > usb_kill_urb() hangs forever. When that happens in hub_event() or > hub_port_init(), the hub holds address0_mutex and device locks, > wedging the rest of the USB stack (second attach, usbfs, udev). >=20 > syzbot reports this in three bugs: > INFO: task hung in hub_port_init > INFO: task hung in hub_event > INFO: task hung in usbdev_release >=20 > Record a per-request deadline (5 s) on struct vhci_unlink and arm a > per-device watchdog timer with timer_reduce() so newer unlinks cannot > postpone an older deadline. Re-arm or cancel the timer as unlinks > [ ... ] > Closes: https://syzkaller.appspotmail.com/bug?id=3D7ff8ae4abed51ff2354c1a= ddb664143ec26ca588 > Reported-by: syzbot+bfa320b67fcbe2583c6f@syzkaller.appspotmail.com > Closes: https://syzkaller.appspotmail.com/bug?id=3D048da78aba1a3a61395094= 92b2be505b2d223762 > Link: https://lore.kernel.org/all/1d6db53d-07ab-46ad-adc4-d09c95b2c83f@ma= il.kernel.org/ > Signed-off-by: Hongyu Xie Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179618252653.6035.1= 6935625331395123264@kylinos.cn?part=3D1