sysctl: Fixes nsm_local_state bounds
authorNicolas Bouchinet <nicolas.bouchinet@ssi.gouv.fr>
Mon, 24 Feb 2025 09:58:17 +0000 (10:58 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Mar 2025 13:11:13 +0000 (09:11 -0400)
commit87480a8ce567340a518d992678224c09afab5f11
treed6ced69b3f74a859c4c5361628f76626f56d71b4
parent261e3bbf9747e9c7c87b3bce519df94754e24ed8
sysctl: Fixes nsm_local_state bounds

Bound nsm_local_state sysctl writings between SYSCTL_ZERO
and SYSCTL_INT_MAX.

The proc_handler has thus been updated to proc_dointvec_minmax.

Signed-off-by: Nicolas Bouchinet <nicolas.bouchinet@ssi.gouv.fr>
[ cel: updated to handle zero - UINT_MAX instead ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc.c