linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: [PATCH v1 1/2] sysctl: cap to ULONG_MAX in proc_get_long()
@ 2018-10-15 19:27 Alexey Dobriyan
  2018-10-15 19:32 ` Christian Brauner
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2018-10-15 19:27 UTC (permalink / raw)
  To: christian; +Cc: linux-kernel

> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-15 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-15 19:27 Re: [PATCH v1 1/2] sysctl: cap to ULONG_MAX in proc_get_long() Alexey Dobriyan
2018-10-15 19:32 ` Christian Brauner
2018-10-15 21:15   ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).