diff options
author | Aneesh Kumar K.V <[email protected]> | 2021-07-07 18:10:03 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-07-08 11:48:22 -0700 |
commit | a9cc9c3456551bf78acdd330713cf513816bbdd2 (patch) | |
tree | 29fa488b56e8277f8958e2b1f56907365cd372fc /scripts/gdb/linux/tasks.py | |
parent | f27a5c93cdd4dbcd2131099764aa188c7e2a2a88 (diff) |
selftest/mremap_test: avoid crash with static build
With a large mmap map size, we can overlap with the text area and using
MAP_FIXED results in unmapping that area. Switch to MAP_FIXED_NOREPLACE
and handle the EEXIST error.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Reviewed-by: Kalesh Singh <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Joel Fernandes <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions