aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2021-02-24 12:07:05 -0800
committerLinus Torvalds <[email protected]>2021-02-24 13:38:32 -0800
commit1d88433bb00853bed0c776b6ad9156855c127da0 (patch)
treebb18ee45ffd9f622b81af7f0c2c2fefb715418da /tools/perf/scripts/python
parentc78a7f3639932c48b4e1d329fc80fd26aa1a2fa3 (diff)
mm/hugetlb: fix use after free when subpool max_hpages accounting is not enabled
If a hugetlbfs filesystem is created with the min_size option and without the size option, used_hpages is always 0 and might lead to release subpool prematurely because it indicates no pages are used now while there might be. In order to fix this issue, we should check used_hpages == 0 iff max_hpages accounting is enabled. As max_hpages accounting should be enabled in most common case, this is not worth a Cc stable. [[email protected]: new changelog] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Hongxiang Lou <[email protected]> Signed-off-by: Miaohe Lin <[email protected]> Reviewed-by: Mike Kravetz <[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