Messages in this thread | | | Date | Thu, 26 Nov 2009 19:48:46 +0300 | From | Alexey Dobriyan <> | Subject | Re: Programs die when max_map_count is too large |
| |
> IMO, the problem is 'sysctl_max_map_count' is actually signed int, > while when writing to it, the value is treated as unsigned.
The problem is the loop in simple_strtoul(), some people were so afraid to touch so they even came up with strict_* variants.
> A better fix which I could imagine is to fix sysctl to understand > signed int's.
- int map_count; + unsigned int map_count;
This is incomplete at least.
| |