Re: Re: [PATCH v1 1/2] sysctl: cap to ULONG_MAX in proc_get_long()

From: Alexey Dobriyan
Date: Mon Oct 15 2018 - 15:27:17 EST


> int kstrtoul_bounded(const char *s, unsigned int base,
> char **trailing, unsigned long long *res)

NO! The whole point is not have million variants of slightly different
integer parsing functions.
Cap it in the sysctl -- noone would care.