Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hongyu Xie" <xiehongyu1@kylinos.cn>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests
Date: Wed, 02 Dec 2026 03:46:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-244804@kernel.org> (raw)
In-Reply-To: <179618252653.6035.16935625331395123264@kylinos.cn>

> 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).
> 
> 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
> 
> 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=7ff8ae4abed51ff2354c1addb664143ec26ca588
> Reported-by: syzbot+bfa320b67fcbe2583c6f@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspotmail.com/bug?id=048da78aba1a3a6139509492b2be505b2d223762
> Link: https://lore.kernel.org/all/1d6db53d-07ab-46ad-adc4-d09c95b2c83f@mail.kernel.org/
> Signed-off-by: Hongyu Xie <xiehongyu1@kylinos.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/179618252653.6035.16935625331395123264@kylinos.cn?part=1

      reply	other threads:[~2026-12-02  3:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  3:35 [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests Hongyu Xie
2026-12-02  3:46 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-244804@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xiehongyu1@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox