* [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests
@ 2026-12-02 3:35 Hongyu Xie
2026-12-02 3:46 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Hongyu Xie @ 2026-12-02 3:35 UTC (permalink / raw)
To: Shuah Khan, shuah, valentina.manea.m, gregkh
Cc: i, bgmerrell, linux-usb, linux-kernel,
syzbot+b6f11035e572f08bc20f, syzbot+a7edecbf389d11a369d4,
syzbot+bfa320b67fcbe2583c6f
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
complete via RET_UNLINK or RET_SUBMIT, and tear down the connection via
VDEV_EVENT_ERROR_TCP if any request expires. Stop the timer with
timer_delete_sync() on connection cleanup and timer_shutdown_sync()
before VDEV_EVENT_REMOVED on controller stop.
Close three races on the same paths:
- Search both priv_rx and priv_tx in pickup_urb_and_free_priv() so
vhci_cleanup_unlink_list() and vhci_recv_ret_unlink() reclaim URBs
whose CMD_SUBMIT is still on priv_tx.
- In vhci_recv_ret_submit(), leave priv on priv_rx and keep the
watchdog armed across blocking payload reads, freeing priv and
unlinking the URB under vhci->lock -> vdev->priv_lock right before
giveback (and use the same locking in vhci_recv_ret_unlink()).
- Copy seqnum/unlink_seqnum under vdev->priv_lock in
dequeue_from_unlink_tx() so vhci_complete_unlink_locked() can free
completed unlink entries immediately.
Reproduced and verified with usbipd exporting g_serial on usbip-vudc
and usbip attach through a SIGSTOP'd TCP relay: deauthorizing the
device hangs indefinitely in usb_kill_urb() without this patch, and
returns cleanly after the 5 s watchdog tears down the link with it.
Fixes: 04679b3489e0 ("Staging: USB/IP: add client driver")
Reported-by: syzbot+b6f11035e572f08bc20f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspotmail.com/bug?id=58aef18c1ad93d87652f24a0bc7a74b6d98ac710
Reported-by: syzbot+a7edecbf389d11a369d4@syzkaller.appspotmail.com
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>
---
Changes in v4:
- Search priv_tx as well as priv_rx in pickup_urb_and_free_priv().
- Keep priv and unlink_timer live across blocking payload reads in
vhci_recv_ret_submit(), and hold vhci->lock -> vdev->priv_lock around
priv removal and urb unlink in both RET_SUBMIT and RET_UNLINK paths.
- Copy seqnum fields under priv_lock in dequeue_from_unlink_tx(), drop
vhci_unlink::completed, and free completed unlinks immediately.
- Link to v3: https://lore.kernel.org/r/179579060266.47199.14552707473292683159@kylinos.cn
Changes in v3:
- Use timer_reduce() and re-arm to the earliest remaining deadline.
- Clear matching unlinks when RET_SUBMIT completes the URB first.
- Use timer_delete_sync() on cleanup and timer_shutdown_sync() before
VDEV_EVENT_REMOVED in vhci_stop().
- Link to v2: https://lore.kernel.org/r/179577001740.23588.17598940424505809386@kylinos.cn
Changes in v2:
- Add regular-setup reproducer and test details to the commit message.
- Link to v1: https://lore.kernel.org/r/20261006125652.10296-1-xiehongyu1@kylinos.cn
drivers/usb/usbip/vhci.h | 9 +++
drivers/usb/usbip/vhci_hcd.c | 102 ++++++++++++++++++++++++++++++++
drivers/usb/usbip/vhci_rx.c | 111 +++++++++++++++++++++++++----------
drivers/usb/usbip/vhci_tx.c | 26 ++++----
4 files changed, 205 insertions(+), 43 deletions(-)
diff --git a/drivers/usb/usbip/vhci.h b/drivers/usb/usbip/vhci.h
index 5659dce1526e..56383469736d 100644
--- a/drivers/usb/usbip/vhci.h
+++ b/drivers/usb/usbip/vhci.h
@@ -11,6 +11,7 @@
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/sysfs.h>
+#include <linux/timer.h>
#include <linux/types.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
@@ -44,6 +45,9 @@ struct vhci_device {
struct list_head unlink_tx;
struct list_head unlink_rx;
+ /* watchdog for unanswered unlink requests */
+ struct timer_list unlink_timer;
+
/* vhci_tx thread sleeps for this queue */
wait_queue_head_t waitq_tx;
};
@@ -65,6 +69,9 @@ struct vhci_unlink {
/* seqnum of the unlink target */
unsigned long unlink_seqnum;
+
+ /* timeout deadline in jiffies */
+ unsigned long expires;
};
enum hub_speed {
@@ -124,6 +131,8 @@ extern struct attribute_group vhci_attr_group;
/* vhci_hcd.c */
void rh_port_connect(struct vhci_device *vdev, enum usb_device_speed speed);
+void vhci_rearm_unlink_timer_locked(struct vhci_device *vdev);
+void vhci_complete_unlink_locked(struct vhci_device *vdev, __u32 seqnum);
/* vhci_sysfs.c */
int vhci_init_attr_group(void);
diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c
index 39e8faf4c18c..0c6859bbbecb 100644
--- a/drivers/usb/usbip/vhci_hcd.c
+++ b/drivers/usb/usbip/vhci_hcd.c
@@ -19,6 +19,9 @@
#define DRIVER_AUTHOR "Takahiro Hirofuchi"
#define DRIVER_DESC "USB/IP 'Virtual' Host Controller (VHCI) Driver"
+/* Timeout waiting for RET_UNLINK before tearing down the connection. */
+#define VHCI_UNLINK_TIMEOUT_MS 5000
+
/*
* TODO
* - update root hub emulation
@@ -846,6 +849,95 @@ static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flag
return ret;
}
+static bool vhci_unlink_next_deadline(struct vhci_device *vdev,
+ unsigned long *expires)
+{
+ struct vhci_unlink *unlink;
+ bool found = false;
+
+ lockdep_assert_held(&vdev->priv_lock);
+
+ list_for_each_entry(unlink, &vdev->unlink_rx, list) {
+ if (!found || time_before(unlink->expires, *expires)) {
+ *expires = unlink->expires;
+ found = true;
+ }
+ }
+ list_for_each_entry(unlink, &vdev->unlink_tx, list) {
+ if (!found || time_before(unlink->expires, *expires)) {
+ *expires = unlink->expires;
+ found = true;
+ }
+ }
+
+ return found;
+}
+
+void vhci_rearm_unlink_timer_locked(struct vhci_device *vdev)
+{
+ unsigned long expires = 0;
+
+ if (vhci_unlink_next_deadline(vdev, &expires))
+ mod_timer(&vdev->unlink_timer, expires);
+ else
+ timer_delete(&vdev->unlink_timer);
+}
+
+void vhci_complete_unlink_locked(struct vhci_device *vdev, __u32 seqnum)
+{
+ struct vhci_unlink *unlink, *tmp;
+ bool changed = false;
+
+ lockdep_assert_held(&vdev->priv_lock);
+
+ if (list_empty(&vdev->unlink_rx) && list_empty(&vdev->unlink_tx))
+ return;
+
+ list_for_each_entry_safe(unlink, tmp, &vdev->unlink_rx, list) {
+ if (unlink->unlink_seqnum == seqnum) {
+ list_del(&unlink->list);
+ kfree(unlink);
+ changed = true;
+ }
+ }
+ list_for_each_entry_safe(unlink, tmp, &vdev->unlink_tx, list) {
+ if (unlink->unlink_seqnum == seqnum) {
+ list_del(&unlink->list);
+ kfree(unlink);
+ changed = true;
+ }
+ }
+
+ if (changed)
+ vhci_rearm_unlink_timer_locked(vdev);
+}
+
+static void vhci_unlink_timeout(struct timer_list *t)
+{
+ struct vhci_device *vdev = timer_container_of(vdev, t, unlink_timer);
+ unsigned long expires = 0;
+ unsigned long flags;
+ bool expired = false;
+
+ spin_lock_irqsave(&vdev->priv_lock, flags);
+ if (vhci_unlink_next_deadline(vdev, &expires)) {
+ if (time_after_eq(jiffies, expires))
+ expired = true;
+ else
+ mod_timer(&vdev->unlink_timer, expires);
+ }
+ spin_unlock_irqrestore(&vdev->priv_lock, flags);
+
+ if (!expired)
+ return;
+
+ dev_info(hcd_dev(vhci_hcd_to_hcd(vdev_to_vhci_hcd(vdev))),
+ "peer did not reply to an unlink request within %d msecs\n",
+ VHCI_UNLINK_TIMEOUT_MS);
+
+ usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_TCP);
+}
+
/*
* vhci_rx gives back the urb after receiving the reply of the urb. If an
* unlink pdu is sent or not, vhci_rx receives a normal return pdu and gives
@@ -968,6 +1060,11 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
/* send cmd_unlink and try to cancel the pending URB in the
* peer */
list_add_tail(&unlink->list, &vdev->unlink_tx);
+
+ unlink->expires =
+ jiffies + msecs_to_jiffies(VHCI_UNLINK_TIMEOUT_MS);
+ timer_reduce(&vdev->unlink_timer, unlink->expires);
+
wake_up(&vdev->waitq_tx);
spin_unlock(&vdev->priv_lock);
@@ -1029,6 +1126,8 @@ static void vhci_device_unlink_cleanup(struct vhci_device *vdev)
/* give back URB of unanswered unlink request */
vhci_cleanup_unlink_list(vdev, &vdev->unlink_rx);
+
+ timer_delete_sync(&vdev->unlink_timer);
}
/*
@@ -1143,6 +1242,8 @@ static void vhci_device_init(struct vhci_device *vdev)
init_waitqueue_head(&vdev->waitq_tx);
+ timer_setup(&vdev->unlink_timer, vhci_unlink_timeout, 0);
+
vdev->ud.eh_ops.shutdown = vhci_shutdown_connection;
vdev->ud.eh_ops.reset = vhci_device_reset;
vdev->ud.eh_ops.unusable = vhci_device_unusable;
@@ -1267,6 +1368,7 @@ static void vhci_stop(struct usb_hcd *hcd)
for (rhport = 0; rhport < VHCI_HC_PORTS; rhport++) {
struct vhci_device *vdev = &vhci_hcd->vdev[rhport];
+ timer_shutdown_sync(&vdev->unlink_timer);
usbip_event_add(&vdev->ud, VDEV_EVENT_REMOVED);
usbip_stop_eh(&vdev->ud);
}
diff --git a/drivers/usb/usbip/vhci_rx.c b/drivers/usb/usbip/vhci_rx.c
index a678e7c89837..1c1066b5115b 100644
--- a/drivers/usb/usbip/vhci_rx.c
+++ b/drivers/usb/usbip/vhci_rx.c
@@ -9,38 +9,48 @@
#include "usbip_common.h"
#include "vhci.h"
-/* get URB from transmitted urb queue. caller must hold vdev->priv_lock */
-struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum)
+static void vhci_log_urb_status(struct urb *urb, __u32 seqnum)
+{
+ int status = urb->status;
+
+ usbip_dbg_vhci_rx("find urb seqnum %u\n", seqnum);
+
+ switch (status) {
+ case -ENOENT:
+ fallthrough;
+ case -ECONNRESET:
+ dev_dbg(&urb->dev->dev,
+ "urb seq# %u was unlinked %ssynchronously\n",
+ seqnum, status == -ENOENT ? "" : "a");
+ break;
+ case -EINPROGRESS:
+ /* no info output */
+ break;
+ default:
+ dev_dbg(&urb->dev->dev,
+ "urb seq# %u may be in a error, status %d\n",
+ seqnum, status);
+ }
+}
+
+/* Caller must hold vhci->lock and vdev->priv_lock. */
+static struct urb *pickup_urb_and_free_priv_from_list(struct vhci_device *vdev,
+ struct list_head *head,
+ __u32 seqnum,
+ bool log_status)
{
struct vhci_priv *priv, *tmp;
struct urb *urb = NULL;
- int status;
- list_for_each_entry_safe(priv, tmp, &vdev->priv_rx, list) {
+ lockdep_assert_held(&vdev->priv_lock);
+
+ list_for_each_entry_safe(priv, tmp, head, list) {
if (priv->seqnum != seqnum)
continue;
urb = priv->urb;
- status = urb->status;
-
- usbip_dbg_vhci_rx("find urb seqnum %u\n", seqnum);
-
- switch (status) {
- case -ENOENT:
- fallthrough;
- case -ECONNRESET:
- dev_dbg(&urb->dev->dev,
- "urb seq# %u was unlinked %ssynchronously\n",
- seqnum, status == -ENOENT ? "" : "a");
- break;
- case -EINPROGRESS:
- /* no info output */
- break;
- default:
- dev_dbg(&urb->dev->dev,
- "urb seq# %u may be in a error, status %d\n",
- seqnum, status);
- }
+ if (log_status)
+ vhci_log_urb_status(urb, seqnum);
list_del(&priv->list);
kfree(priv);
@@ -52,6 +62,36 @@ struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum)
return urb;
}
+/* Search priv_rx and priv_tx; caller must hold vhci->lock & priv_lock. */
+struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum)
+{
+ struct urb *urb;
+
+ urb = pickup_urb_and_free_priv_from_list(vdev, &vdev->priv_rx, seqnum,
+ true);
+ if (urb)
+ return urb;
+
+ return pickup_urb_and_free_priv_from_list(vdev, &vdev->priv_tx, seqnum,
+ true);
+}
+
+static struct urb *find_urb_by_seqnum(struct vhci_device *vdev, __u32 seqnum)
+{
+ struct vhci_priv *priv;
+
+ lockdep_assert_held(&vdev->priv_lock);
+
+ list_for_each_entry(priv, &vdev->priv_rx, list) {
+ if (priv->seqnum == seqnum) {
+ vhci_log_urb_status(priv->urb, seqnum);
+ return priv->urb;
+ }
+ }
+
+ return NULL;
+}
+
static void vhci_recv_ret_submit(struct vhci_device *vdev,
struct usbip_header *pdu)
{
@@ -61,8 +101,9 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,
struct urb *urb;
unsigned long flags;
+ /* Keep priv and unlink_timer live across blocking payload reads. */
spin_lock_irqsave(&vdev->priv_lock, flags);
- urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum);
+ urb = find_urb_by_seqnum(vdev, pdu->base.seqnum);
spin_unlock_irqrestore(&vdev->priv_lock, flags);
if (!urb) {
@@ -101,6 +142,11 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,
usbip_dbg_vhci_rx("now giveback urb %u\n", pdu->base.seqnum);
spin_lock_irqsave(&vhci->lock, flags);
+ spin_lock(&vdev->priv_lock);
+ pickup_urb_and_free_priv_from_list(vdev, &vdev->priv_rx,
+ pdu->base.seqnum, false);
+ vhci_complete_unlink_locked(vdev, pdu->base.seqnum);
+ spin_unlock(&vdev->priv_lock);
usb_hcd_unlink_urb_from_ep(vhci_hcd_to_hcd(vhci_hcd), urb);
spin_unlock_irqrestore(&vhci->lock, flags);
@@ -123,6 +169,7 @@ static struct vhci_unlink *dequeue_pending_unlink(struct vhci_device *vdev,
usbip_dbg_vhci_rx("found pending unlink, %lu\n",
unlink->seqnum);
list_del(&unlink->list);
+ vhci_rearm_unlink_timer_locked(vdev);
spin_unlock_irqrestore(&vdev->priv_lock, flags);
return unlink;
@@ -152,11 +199,13 @@ static void vhci_recv_ret_unlink(struct vhci_device *vdev,
return;
}
- spin_lock_irqsave(&vdev->priv_lock, flags);
+ spin_lock_irqsave(&vhci->lock, flags);
+ spin_lock(&vdev->priv_lock);
urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum);
- spin_unlock_irqrestore(&vdev->priv_lock, flags);
+ spin_unlock(&vdev->priv_lock);
if (!urb) {
+ spin_unlock_irqrestore(&vhci->lock, flags);
/*
* I get the result of a unlink request. But, it seems that I
* already received the result of its submit result and gave
@@ -165,16 +214,14 @@ static void vhci_recv_ret_unlink(struct vhci_device *vdev,
pr_info("the urb (seqnum %u) was already given back\n",
pdu->base.seqnum);
} else {
- usbip_dbg_vhci_rx("now giveback urb %u\n", pdu->base.seqnum);
-
/* If unlink is successful, status is -ECONNRESET */
urb->status = pdu->u.ret_unlink.status;
- pr_info("urb->status %d\n", urb->status);
-
- spin_lock_irqsave(&vhci->lock, flags);
usb_hcd_unlink_urb_from_ep(vhci_hcd_to_hcd(vhci_hcd), urb);
spin_unlock_irqrestore(&vhci->lock, flags);
+ usbip_dbg_vhci_rx("now giveback urb %u\n", pdu->base.seqnum);
+ pr_info("urb->status %d\n", urb->status);
+
usb_hcd_giveback_urb(vhci_hcd_to_hcd(vhci_hcd), urb, urb->status);
}
diff --git a/drivers/usb/usbip/vhci_tx.c b/drivers/usb/usbip/vhci_tx.c
index 32e6fabccf72..17e53b1137cb 100644
--- a/drivers/usb/usbip/vhci_tx.c
+++ b/drivers/usb/usbip/vhci_tx.c
@@ -166,34 +166,38 @@ static int vhci_send_cmd_submit(struct vhci_device *vdev)
return err;
}
-static struct vhci_unlink *dequeue_from_unlink_tx(struct vhci_device *vdev)
+static bool dequeue_from_unlink_tx(struct vhci_device *vdev,
+ unsigned long *seqnum,
+ unsigned long *unlink_seqnum)
{
- struct vhci_unlink *unlink, *tmp;
+ struct vhci_unlink *unlink;
unsigned long flags;
spin_lock_irqsave(&vdev->priv_lock, flags);
- list_for_each_entry_safe(unlink, tmp, &vdev->unlink_tx, list) {
+ unlink = list_first_entry_or_null(&vdev->unlink_tx,
+ struct vhci_unlink, list);
+ if (unlink) {
+ *seqnum = unlink->seqnum;
+ *unlink_seqnum = unlink->unlink_seqnum;
list_move_tail(&unlink->list, &vdev->unlink_rx);
- spin_unlock_irqrestore(&vdev->priv_lock, flags);
- return unlink;
}
spin_unlock_irqrestore(&vdev->priv_lock, flags);
- return NULL;
+ return unlink;
}
static int vhci_send_cmd_unlink(struct vhci_device *vdev)
{
- struct vhci_unlink *unlink = NULL;
+ unsigned long seqnum, unlink_seqnum;
struct msghdr msg;
struct kvec iov;
size_t txsize;
size_t total_size = 0;
- while ((unlink = dequeue_from_unlink_tx(vdev)) != NULL) {
+ while (dequeue_from_unlink_tx(vdev, &seqnum, &unlink_seqnum)) {
int ret;
struct usbip_header pdu_header;
@@ -201,14 +205,14 @@ static int vhci_send_cmd_unlink(struct vhci_device *vdev)
memset(&msg, 0, sizeof(msg));
memset(&iov, 0, sizeof(iov));
- usbip_dbg_vhci_tx("setup cmd unlink, %lu\n", unlink->seqnum);
+ usbip_dbg_vhci_tx("setup cmd unlink, %lu\n", seqnum);
/* 1. setup usbip_header */
pdu_header.base.command = USBIP_CMD_UNLINK;
- pdu_header.base.seqnum = unlink->seqnum;
+ pdu_header.base.seqnum = seqnum;
pdu_header.base.devid = vdev->devid;
pdu_header.base.ep = 0;
- pdu_header.u.cmd_unlink.seqnum = unlink->unlink_seqnum;
+ pdu_header.u.cmd_unlink.seqnum = unlink_seqnum;
usbip_header_correct_endian(&pdu_header, 1);
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests
2026-12-02 3:35 [PATCH v4] usbip: vhci_hcd: time out unanswered unlink requests Hongyu Xie
@ 2026-12-02 3:46 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-02 3:46 UTC (permalink / raw)
To: Hongyu Xie; +Cc: linux-usb
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-02 3:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox