diff options
| author | Amerigo Wang <[email protected]> | 2009-12-14 17:59:52 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-15 08:53:23 -0800 |
| commit | 70da2340fbc68e91e701762f785479ab495a0869 (patch) | |
| tree | f55055a8fa8cb8e00b72ae8f3629dc884515f5e9 /tools/perf/scripts/python | |
| parent | f096e59e844ba3c5d5a7b54b3deafd2aeeebf921 (diff) | |
'sysctl_max_map_count' should be non-negative
Jan Engelhardt reported we have this problem:
setting max_map_count to a value large enough results in programs dying at
first try. This is on 2.6.31.6:
15:59 borg:/proc/sys/vm # echo $[1<<31-1] >max_map_count
15:59 borg:/proc/sys/vm # cat max_map_count
1073741824
15:59 borg:/proc/sys/vm # echo $[1<<31] >max_map_count
15:59 borg:/proc/sys/vm # cat max_map_count
Killed
This is because we have a chance to make 'max_map_count' negative. but
it's meaningless. Make it only accept non-negative values.
Reported-by: Jan Engelhardt <[email protected]>
Signed-off-by: WANG Cong <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: James Morris <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions