[PATCH v2 0/3] nvme-fabrics: bound reconnect_delay, kato and fast_io_fail_tmo
Keith Busch
kbusch at kernel.org
Fri Nov 20 11:54:24 PST 2026
On Fri, 13 Nov 2026 22:19:59 +0530, Martin George wrote:
> reconnect_delay, keep_alive_tmo (kato) and fast_io_fail_tmo are accepted
> in seconds but later multiplied by HZ (and, for kato, by 1000) in 32-bit
> arithmetic, so large values overflow and yield bogus timers. Bound all
> three at parse/store time so the conversions can't wrap.
>
> The target already does this for kato via NVMET_MAX_KATO, and the host
> recently fixed the same class for admin_timeout/io_timeout (4a5aeebf1a00)
> and partly for reconnect_delay (f92fe8dea19c).
>
> [...]
Thanks, applied to nvme-7.4.
[1/3] nvme-fabrics: bound reconnect_delay to avoid overflow
commit: af904d3b2c6d8581b03716f35a814e3899bc1ec9
[2/3] nvme-fabrics: bound keep_alive_tmo to avoid overflow
commit: 95312acf502748e63623069380c39fe5f055d245
[3/3] nvme-fabrics: bound fast_io_fail_tmo to avoid overflow
commit: ed666c3cbdce1c72521db41270694ff1e1b8631d
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list