diff options
| author | Miaohe Lin <[email protected]> | 2022-04-28 23:16:08 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:08 -0700 |
| commit | 3f26c88bd66cd8ab1731763c68df7fe23a7671c0 (patch) | |
| tree | 9c5ee0b98a77a60040ce32354699b449295e4b51 /tools/perf/scripts/python/flamegraph.py | |
| parent | 69a041ff505806c95b24b8d5cab43e66aacd91e6 (diff) | |
mm/migration: fix potential invalid node access for reclaim-based migration
If we failed to setup hotplug state callbacks for mm/demotion:online in
some corner cases, node_demotion will be left uninitialized. Invalid node
might be returned from the next_demotion_node() when doing reclaim-based
migration. Use kcalloc to allocate node_demotion to fix the issue.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: ac16ec835314 ("mm: migrate: support multiple target nodes demotion")
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions