Files
twx-linux/kernel
Liping Zhang a2148222e3 sysctl: report EINVAL if value is larger than UINT_MAX for proc_douintvec
commit 425fffd886 upstream.

Currently, inputting the following command will succeed but actually the
value will be truncated:

  # echo 0x12ffffffff > /proc/sys/net/ipv4/tcp_notsent_lowat

This is not friendly to the user, so instead, we should report error
when the value is larger than UINT_MAX.

Fixes: e7d316a02f ("sysctl: handle error writing UINT_MAX to u32 fields")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Cc: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-15 11:57:46 +02:00
..
2016-06-24 10:18:17 -07:00
…
…
…
…
…
…
…
…
…
2017-06-14 13:16:23 +02:00
…
…
…
…
…
2015-11-23 09:44:58 +01:00
…
…
…
…
…
2017-05-20 14:27:02 +02:00
2017-07-05 14:37:19 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…