diff options
| author | Miles Chen <[email protected]> | 2018-12-28 00:33:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-12-28 12:11:46 -0800 |
| commit | c8f61cfc871fadfb73ad3eacd64fda457279e911 (patch) | |
| tree | e66a7f8da6dc30887b8ab19afa71127a0493a84d /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 4e45f712d82c6b7a37e02faf388173ad12ab464d (diff) | |
mm/page_owner: clamp read count to PAGE_SIZE
The (root-only) page owner read might allocate a large size of memory with
a large read count. Allocation fails can easily occur when doing high
order allocations.
Clamp buffer size to PAGE_SIZE to avoid arbitrary size allocation
and avoid allocation fails due to high order allocation.
[[email protected]: use min_t()]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Miles Chen <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions