summaryrefslogtreecommitdiffstats
path: root/Documentation/basic_profiling.txt
diff options
context:
space:
mode:
authorSha Zhengju <handai.szj@taobao.com>2013-09-13 00:13:48 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-13 00:38:02 +0200
commit3af3351676c3deecfd632f47719fb0d13a061ba8 (patch)
tree5374b3e010b49c9cec6f45e486bc7e3a3d205022 /Documentation/basic_profiling.txt
parentmemcg: rename RESOURCE_MAX to RES_COUNTER_MAX (diff)
downloadlinux-3af3351676c3deecfd632f47719fb0d13a061ba8.tar.xz
linux-3af3351676c3deecfd632f47719fb0d13a061ba8.zip
memcg: avoid overflow caused by PAGE_ALIGN
Since PAGE_ALIGN is aligning up(the next page boundary), so after PAGE_ALIGN, the value might be overflow, such as write the MAX value to *.limit_in_bytes. $ cat /cgroup/memory/memory.limit_in_bytes 18446744073709551615 # echo 18446744073709551615 > /cgroup/memory/memory.limit_in_bytes bash: echo: write error: Invalid argument Some user programs might depend on such behaviours(like libcg, we read the value in snapshot, then use the value to reset cgroup later), and that will cause confusion. So we need to fix it. Signed-off-by: Sha Zhengju <handai.szj@taobao.com> Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Jeff Liu <jeff.liu@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/basic_profiling.txt')
0 files changed, 0 insertions, 0 deletions