Skip to content

sysctl: Restore minmax check for proc_do{int,ulong}vec_ms_jiffies_minmax().

Kuniyuki Iwashima linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sysctl: Make proc_dointvec_ms_jiffies_minmax() enforce minmax again.kernel/time/jiffies.c+1 -13 replies
2/2sysctl: Make proc_doulongvec_ms_jiffies_minmax() enforce minmax again.kernel/time/jiffies.c+9 -68 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] sysctl: Restore minmax check for proc_do{int,ulong}vec_ms_jiffies_minmax().

The recent refactoring accidentally removed the minmax check from proc_dointvec_ms_jiffies_minmax() and proc_doulongvec_ms_jiffies_minmax().

The series restores the validation, and patch 2 adds the INT_MAX limit for proc_doulongvec_ms_jiffies_minmax() to avoid silent truncation.

Kuniyuki Iwashima (2):
sysctl: Make proc_dointvec_ms_jiffies_minmax() enforce minmax again.
sysctl: Make proc_doulongvec_ms_jiffies_minmax() enforce minmax again.

 kernel/time/jiffies.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
Signature · 1 line
2.55.0.1003.g10538fe699-goog