diff options
| author | David Hildenbrand <[email protected]> | 2022-12-23 16:56:16 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-01-18 17:12:50 -0800 |
| commit | 1ef488edd6c4d447784710974f049628c2890481 (patch) | |
| tree | a3577746e57294945403990ca3dd33a9a0986ee4 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 931298e103c228c4ce6d13e7b5781aeaaff37ac7 (diff) | |
mm/mprotect: drop pgprot_t parameter from change_protection()
Being able to provide a custom protection opens the door for
inconsistencies and BUGs: for example, accidentally allowing for more
permissions than desired by other mechanisms (e.g., softdirty tracking).
vma->vm_page_prot should be the single source of truth.
Only PROT_NUMA is special: there is no way we can erroneously allow
for more permissions when removing all permissions. Special-case using
the MM_CP_PROT_NUMA flag.
[[email protected]: PAGE_NONE might not be defined without CONFIG_NUMA_BALANCING]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Nadav Amit <[email protected]>
Cc: Peter Xu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions