diff options
| author | Adrian Hunter <[email protected]> | 2023-09-11 14:21:14 +0300 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-04 10:32:22 -0700 |
| commit | e538a582097878c536c68002c79722e4a037c080 (patch) | |
| tree | 00f5c86426f41bf79ce70f4e461b984824b9c1e6 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 7cd34dd3c9bf1d67ce7d1ab3fe8886c583ae0d9a (diff) | |
proc/kcore: do not try to access unaccepted memory
Support for unaccepted memory was added recently, refer commit
dcdfdd40fa82 ("mm: Add support for unaccepted memory"), whereby a virtual
machine may need to accept memory before it can be used.
Do not try to access unaccepted memory because it can cause the guest to
fail.
For /proc/kcore, which is read-only and does not support mmap, this means a
read of unaccepted memory will return zeros.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Adrian Hunter <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Borislav Petkov (AMD) <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions