diff options
author | Liping Zhang <[email protected]> | 2017-04-07 23:51:07 +0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-04-08 10:27:40 -0700 |
commit | 425fffd886bae3d127a08fa6a17f2e31e24ed7ff (patch) | |
tree | 7daa21454af6e1a533b6bfc4ba9015b09612b8e6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 8b65bb57d87a66cd156f856f28f2bd72d7b2395e (diff) |
sysctl: report EINVAL if value is larger than UINT_MAX for proc_douintvec
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: e7d316a02f68 ("sysctl: handle error writing UINT_MAX to u32 fields")
Signed-off-by: Liping Zhang <[email protected]>
Cc: Subash Abhinov Kasiviswanathan <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions