[PATCH] nvme: reject invalid reconnect_delay sysfs values
Keith Busch
kbusch at kernel.org
Mon Nov 9 09:47:13 PST 2026
On Thu, 5 Nov 2026 21:58:07 +0800 (CST), shao.mingyin at zte.com.cn wrote:
> nvme_ctrl_reconnect_delay_store() stores whatever kstrtou32() accepted
> into opts->reconnect_delay without validating it. The nvme-fabrics
> option parser refuses reconnect_delay values that are zero or negative,
> and the rest of the driver relies on that: nvme_ctrl_loss_tmo_store()
> computes
>
> opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo,
> opts->reconnect_delay);
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme: reject invalid reconnect_delay sysfs values
commit: f92fe8dea19c743eb9e4d998ae0384344dd40091
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list