All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvme-fabrics: bound reconnect_delay and keep_alive_tmo
@ 2026-11-13 10:09 Martin George
  2026-11-13 10:09 ` [PATCH 1/2] nvme-fabrics: bound reconnect_delay to avoid timer overflow Martin George
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin George @ 2026-11-13 10:09 UTC (permalink / raw)
  To: linux-nvme, hch; +Cc: kbusch, sagi

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-13 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 10:09 [PATCH 0/2] nvme-fabrics: bound reconnect_delay and keep_alive_tmo Martin George
2026-11-13 10:09 ` [PATCH 1/2] nvme-fabrics: bound reconnect_delay to avoid timer overflow Martin George
2026-11-13 10:09 ` [PATCH 2/2] nvme-fabrics: bound keep_alive_tmo to avoid overflow Martin George
2026-11-13 13:01 ` [PATCH 0/2] nvme-fabrics: bound reconnect_delay and keep_alive_tmo Laurence Oberman
2026-11-13 15:16   ` Martin George

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.