Files
Zhan Xusheng fdd6553e1e time/jiffies: Saturate in mult_hz() instead of wrapping
Return ULONG_MAX for values that don't fit an unsigned long.
proc_int_u2k_conv_uop() now correctly rejects a result above INT_MAX.

This is the erroneous behaviour that is being fixed. The input has to
exceed ULONG_MAX / HZ for the product to wrap, so the value below is
specific to CONFIG_HZ=1000:

  # echo 18446744073709552 > /proc/sys/net/ipv4/tcp_keepalive_time
  # cat /proc/sys/net/ipv4/tcp_keepalive_time
  0

That value is now rejected with an error.

The original bound ("*u_ptr > INT_MAX / HZ") was removed in commit
2dc164a48e ("sysctl: Create converter functions with two new macros").

Fixes: 2dc164a48e ("sysctl: Create converter functions with two new macros")
Cc: [email protected]
Signed-off-by: Zhan Xusheng <[email protected]>
Signed-off-by: Joel Granados <[email protected]>
2026-09-29 10:00:40 +02:00
..
2026-02-24 08:41:51 +01:00
2026-03-26 15:44:23 +01:00
2026-01-11 06:09:11 -10:00
2026-07-08 17:03:28 +02:00
2026-06-02 21:27:25 +02:00