From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
patches@lists.linux.dev, Ira Weiny <ira.weiny@intel.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Kwangjin Ko <kwangjin.ko@sk.com>,
Dave Jiang <dave.jiang@intel.com>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.6 026/122] cxl/core: Fix initialization of mbox_cmd.size_out in get event
Date: Mon, 15 Apr 2024 16:19:51 +0200 [thread overview]
Message-ID: <20240415141954.158408073@linuxfoundation.org> (raw)
In-Reply-To: <20240415141953.365222063@linuxfoundation.org>
6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kwangjin Ko <kwangjin.ko@sk.com>
[ Upstream commit f7c52345ccc96343c0a05bdea3121c8ac7b67d5f ]
Since mbox_cmd.size_out is overwritten with the actual output size in
the function below, it needs to be initialized every time.
cxl_internal_send_cmd -> __cxl_pci_mbox_send_cmd
Problem scenario:
1) The size_out variable is initially set to the size of the mailbox.
2) Read an event.
- size_out is set to 160 bytes(header 32B + one event 128B).
- Two event are created while reading.
3) Read the new *two* events.
- size_out is still set to 160 bytes.
- Although the value of out_len is 288 bytes, only 160 bytes are
copied from the mailbox register to the local variable.
- record_count is set to 2.
- Accessing records[1] will result in reading incorrect data.
Fixes: 6ebe28f9ec72 ("cxl/mem: Read, trace, and clear events on driver load")
Tested-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Kwangjin Ko <kwangjin.ko@sk.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/cxl/core/mbox.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c
index e5f3592e54191..4b4c15e943380 100644
--- a/drivers/cxl/core/mbox.c
+++ b/drivers/cxl/core/mbox.c
@@ -971,13 +971,14 @@ static void cxl_mem_get_records_log(struct cxl_memdev_state *mds,
.payload_in = &log_type,
.size_in = sizeof(log_type),
.payload_out = payload,
- .size_out = mds->payload_size,
.min_out = struct_size(payload, records, 0),
};
do {
int rc, i;
+ mbox_cmd.size_out = mds->payload_size;
+
rc = cxl_internal_send_cmd(mds, &mbox_cmd);
if (rc) {
dev_err_ratelimited(dev,
--
2.43.0
next prev parent reply other threads:[~2024-04-15 14:33 UTC|newest]
Thread overview: 145+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-15 14:19 [PATCH 6.6 000/122] 6.6.28-rc1 review Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 001/122] smb3: fix Open files on server counter going negative Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 002/122] ata: libata-core: Allow command duration limits detection for ACS-4 drives Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 003/122] ata: libata-scsi: Fix ata_scsi_dev_rescan() error path Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 004/122] batman-adv: Avoid infinite loop trying to resize local TT Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 005/122] arm64: tlb: Fix TLBI RANGE operand Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 006/122] ARM: dts: imx7s-warp: Pass OV2680 link-frequencies Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 007/122] raid1: fix use-after-free for original bio in raid1_write_request() Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 008/122] ring-buffer: Only update pages_touched when a new page is touched Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 009/122] Bluetooth: Fix memory leak in hci_req_sync_complete() Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 010/122] drm/amd/pm: fixes a random hang in S4 for SMU v13.0.4/11 Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 011/122] platform/chrome: cros_ec_uart: properly fix race condition Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 012/122] ACPI: scan: Do not increase dep_unmet for already met dependencies Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 013/122] PM: s2idle: Make sure CPUs will wakeup directly on resume Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 014/122] media: cec: core: remove length check of Timer Status Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 015/122] ARM: OMAP2+: fix bogus MMC GPIO labels on Nokia N8x0 Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 016/122] ARM: OMAP2+: fix N810 MMC gpiod table Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 017/122] mmc: omap: fix broken slot switch lookup Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 018/122] mmc: omap: fix deferred probe Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 019/122] mmc: omap: restore original power up/down steps Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 020/122] ARM: OMAP2+: fix USB regression on Nokia N8x0 Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 021/122] firmware: arm_scmi: Make raw debugfs entries non-seekable Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 022/122] cxl/mem: Fix for the index of Clear Event Record Handle Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 023/122] cxl/core/regs: Fix usage of map->reg_type in cxl_decode_regblock() before assigned Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 024/122] drm/msm/dpu: dont allow overriding data from catalog Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 025/122] arm64: dts: imx8-ss-conn: fix usdhc wrong lpcg clock order Greg Kroah-Hartman
2024-04-15 14:19 ` Greg Kroah-Hartman [this message]
2024-04-15 14:19 ` [PATCH 6.6 027/122] Revert "drm/qxl: simplify qxl_fence_wait" Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 028/122] nouveau: fix function cast warning Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 029/122] scsi: hisi_sas: Modify the deadline for ata_wait_after_reset() Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 030/122] scsi: qla2xxx: Fix off by one in qla_edif_app_getstats() Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 031/122] net: openvswitch: fix unwanted error log on timeout policy probing Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 032/122] u64_stats: fix u64_stats_init() for lockdep when used repeatedly in one file Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 033/122] xsk: validate user input for XDP_{UMEM|COMPLETION}_FILL_RING Greg Kroah-Hartman
2024-04-15 14:19 ` [PATCH 6.6 034/122] octeontx2-pf: Fix transmit scheduler resource leak Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 035/122] block: fix q->blkg_list corruption during disk rebind Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 036/122] geneve: fix header validation in geneve[6]_xmit_skb Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 037/122] s390/ism: fix receive message buffer allocation Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 038/122] bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init() Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 039/122] bnxt_en: Fix error recovery for RoCE ulp client Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 040/122] bnxt_en: Reset PTP tx_avail after possible firmware reset Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 041/122] net: ks8851: Inline ks8851_rx_skb() Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 042/122] net: ks8851: Handle softirqs at the end of IRQ thread to fix hang Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 043/122] af_unix: Clear stale u->oob_skb Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 044/122] octeontx2-af: Fix NIX SQ mode and BP config Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 045/122] ipv6: fib: hide unused pn variable Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 046/122] ipv4/route: avoid unused-but-set-variable warning Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 047/122] ipv6: fix race condition between ipv6_get_ifaddr and ipv6_del_addr Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 048/122] Bluetooth: ISO: Align broadcast sync_timeout with connection timeout Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 049/122] Bluetooth: ISO: Dont reject BT_ISO_QOS if parameters are unset Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 050/122] Bluetooth: hci_sync: Use QoS to determine which PHY to scan Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 051/122] Bluetooth: hci_sync: Fix using the same interval and window for Coded PHY Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 052/122] Bluetooth: SCO: Fix not validating setsockopt user input Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 053/122] Bluetooth: l2cap: Dont double set the HCI_CONN_MGMT_CONNECTED bit Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 054/122] netfilter: complete validation of user input Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 055/122] net/mlx5: SF, Stop waiting for FW as teardown was called Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 056/122] net/mlx5: Register devlink first under devlink lock Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 057/122] net/mlx5: offset comp irq index in name by one Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 058/122] net/mlx5: Properly link new fs rules into the tree Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 059/122] net/mlx5: Correctly compare pkt reformat ids Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 060/122] net/mlx5e: Fix mlx5e_priv_init() cleanup flow Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 061/122] net/mlx5e: HTB, Fix inconsistencies with QoS SQs number Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 062/122] net/mlx5e: Do not produce metadata freelist entries in Tx port ts WQE xmit Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 063/122] net: sparx5: fix wrong config being used when reconfiguring PCS Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 064/122] Revert "s390/ism: fix receive message buffer allocation" Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 065/122] net: dsa: mt7530: trap link-local frames regardless of ST Port State Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 066/122] af_unix: Do not use atomic ops for unix_sk(sk)->inflight Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 067/122] af_unix: Fix garbage collector racing against connect() Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 068/122] net: ena: Fix potential sign extension issue Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 069/122] net: ena: Wrong missing IO completions check order Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 070/122] net: ena: Fix incorrect descriptor free behavior Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 071/122] net: ena: Move XDP code to its new files Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 072/122] net: ena: Pass ena_adapter instead of net_device to ena_xmit_common() Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 073/122] net: ena: Use tx_ring instead of xdp_ring for XDP channel TX Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 074/122] net: ena: Set tx_info->xdpf value to NULL Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 075/122] tracing: hide unused ftrace_event_id_fops Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 076/122] iommu/vt-d: Fix wrong use of pasid config Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 077/122] iommu/vt-d: Allocate local memory for page request queue Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 078/122] selftests: mptcp: use += operator to append strings Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 079/122] btrfs: qgroup: correctly model root qgroup rsv in convert Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 080/122] btrfs: qgroup: fix qgroup prealloc rsv leak in subvolume operations Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 081/122] btrfs: record delayed inode root in transaction Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 082/122] btrfs: qgroup: convert PREALLOC to PERTRANS after record_root_in_trans Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 083/122] io_uring/net: restore msg_control on sendzc retry Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 084/122] kprobes: Fix possible use-after-free issue on kprobe registration Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 085/122] scsi: sg: Avoid sg device teardown race Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 086/122] scsi: sg: Avoid race in error handling & drop bogus warn Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 087/122] accel/ivpu: Fix deadlock in context_xa Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 088/122] drm/vmwgfx: Enable DMA mappings with SEV Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 089/122] drm/i915/vrr: Disable VRR when using bigjoiner Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 090/122] drm/amdkfd: Reset GPU on queue preemption failure Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 091/122] drm/ast: Fix soft lockup Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 092/122] drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr() Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 093/122] drm/client: Fully protect modes[] with dev->mode_config.mutex Greg Kroah-Hartman
2024-04-15 14:20 ` [PATCH 6.6 094/122] arm64: dts: imx8qm-ss-dma: fix can lpcg indices Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 095/122] arm64: dts: imx8-ss-dma: " Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 096/122] arm64: dts: imx8-ss-dma: fix adc " Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 097/122] arm64: dts: imx8-ss-conn: fix usb " Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 098/122] arm64: dts: imx8-ss-lsio: fix pwm " Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 099/122] arm64: dts: imx8-ss-dma: fix spi " Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 100/122] vhost: Add smp_rmb() in vhost_vq_avail_empty() Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 101/122] vhost: Add smp_rmb() in vhost_enable_notify() Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 102/122] perf/x86: Fix out of range data Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 103/122] x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=n Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 104/122] selftests: timers: Fix abs() warning in posix_timers test Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 105/122] x86/apic: Force native_apic_mem_read() to use the MOV instruction Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 106/122] irqflags: Explicitly ignore lockdep_hrtimer_exit() argument Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 107/122] x86/bugs: Fix return type of spectre_bhi_state() Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 108/122] x86/bugs: Fix BHI documentation Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 109/122] x86/bugs: Cache the value of MSR_IA32_ARCH_CAPABILITIES Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 110/122] x86/bugs: Rename various ia32_cap variables to x86_arch_cap_msr Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 111/122] x86/bugs: Fix BHI handling of RRSBA Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 112/122] x86/bugs: Clarify that syscall hardening isnt a BHI mitigation Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 113/122] x86/bugs: Remove CONFIG_BHI_MITIGATION_AUTO and spectre_bhi=auto Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 114/122] x86/bugs: Replace CONFIG_SPECTRE_BHI_{ON,OFF} with CONFIG_MITIGATION_SPECTRE_BHI Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 115/122] drm/i915/cdclk: Fix CDCLK programming order when pipes are active Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 116/122] drm/i915: Disable port sync when bigjoiner is used Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 117/122] drm/amdgpu: Reset dGPU if suspend got aborted Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 118/122] drm/amdgpu: always force full reset for SOC21 Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 119/122] drm/amdgpu: fix incorrect number of active RBs for gfx11 Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 120/122] drm/amd/display: Program VSC SDP colorimetry for all DP sinks >= 1.4 Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 121/122] drm/amd/display: Set VSC SDP Colorimetry same way for MST and SST Greg Kroah-Hartman
2024-04-15 14:21 ` [PATCH 6.6 122/122] drm/amd/display: fix disable otg wa logic in DCN316 Greg Kroah-Hartman
2024-04-15 18:12 ` [PATCH 6.6 000/122] 6.6.28-rc1 review Florian Fainelli
2024-04-15 23:52 ` Kelsey Steele
2024-04-16 0:05 ` Mark Brown
2024-04-16 9:16 ` Naresh Kamboju
2024-04-16 6:26 ` Ron Economos
2024-04-16 7:44 ` Harshit Mogalapalli
2024-04-16 10:13 ` Takeshi Ogasawara
2024-04-16 10:34 ` Mark Brown
2024-04-16 11:04 ` Marc Zyngier
2024-04-16 11:14 ` Mark Brown
2024-04-16 13:07 ` Naresh Kamboju
2024-04-16 13:22 ` Marc Zyngier
2024-04-16 17:28 ` Catalin Marinas
2024-04-17 7:05 ` Greg Kroah-Hartman
2024-04-17 20:06 ` Catalin Marinas
2024-04-18 11:07 ` Marc Zyngier
2024-04-18 11:21 ` Catalin Marinas
2024-04-19 10:40 ` Greg Kroah-Hartman
2024-04-19 10:50 ` Marc Zyngier
2024-04-19 11:05 ` Greg Kroah-Hartman
2024-04-16 10:37 ` Jon Hunter
2024-04-16 14:17 ` Pascal Ernster
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=20240415141954.158408073@linuxfoundation.org \
--to=gregkh@linuxfoundation.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=dave.jiang@intel.com \
--cc=ira.weiny@intel.com \
--cc=kwangjin.ko@sk.com \
--cc=patches@lists.linux.dev \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
/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