diff options
| author | SeongJae Park <[email protected]> | 2020-06-08 04:40:04 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-08 18:05:55 +0000 |
| commit | 92fb1db26eefc11554820f11ce8e92007da2fbf4 (patch) | |
| tree | 5de7e60db1dad71f124f9ec55d421022bed61122 /lib/dynamic_debug.c | |
| parent | Merge tag 'char-misc-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
| download | kernel-92fb1db26eefc11554820f11ce8e92007da2fbf4.tar.gz kernel-92fb1db26eefc11554820f11ce8e92007da2fbf4.zip | |
mm/page_idle.c: skip offline pages
'Idle page tracking' users can pass random pfn that might be mapped to an
offline page. To avoid accessing such pages, this commit modifies the
'page_idle_get_page()' to use 'pfn_to_online_page()' instead of
'pfn_valid()' and 'pfn_to_page()' combination, so that the pfn mapped to
an offline page can be skipped.
Reported-by: David Hildenbrand <[email protected]>
Signed-off-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Pankaj Gupta <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
