[PATCH 0/2] nvme-fabrics: bound reconnect_delay and keep_alive_tmo
Martin George
martinus.gpy at gmail.com
Fri Nov 13 02:09:49 PST 2026
reconnect_delay and keep_alive_tmo (kato) 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 both 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).
Martin George (2):
nvme-fabrics: bound reconnect_delay to avoid timer overflow
nvme-fabrics: bound keep_alive_tmo to avoid overflow
drivers/nvme/host/fabrics.c | 4 ++--
drivers/nvme/host/sysfs.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.53.0
More information about the Linux-nvme
mailing list