[PATCH] nvme: avoid wrapping admin_timeout and io_timeout
Keith Busch
kbusch at kernel.org
Fri Nov 6 08:13:29 PST 2026
On Fri, 6 Nov 2026 14:25:16 +0800, Yingjie Wang wrote:
> NVME_ADMIN_TIMEOUT and NVME_IO_TIMEOUT multiply the admin_timeout and
> io_timeout module parameters by HZ in unsigned int arithmetic, and
> nvme_fw_act_work() does the same through secs_to_jiffies(). The parameters
> accept any unsigned int, so values above UINT_MAX / HZ wrap. With HZ=1000,
> io_timeout=4294968 becomes 704 jiffies, and a controller created afterwards
> times out I/O after 0.7 seconds instead of about 49.7 days. On 32-bit
> systems, results above MAX_JIFFY_OFFSET are also unsafe relative delays and
> can be treated as already expired.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvme: avoid wrapping admin_timeout and io_timeout
commit: 4a5aeebf1a00360bcc53c9e29fcd8d47aefa4c1d
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list