diff options
| author | Huacai Chen <chenhuacai@loongson.cn> | 2025-12-31 15:19:10 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-12-31 15:19:10 +0800 |
| commit | d5be446948b379f1d1a8e7bc6656d13f44c5c7b1 (patch) | |
| tree | 9bda87ca4967e9caabe36b1b72008f26b3a1ddc6 /tools/perf/scripts/python/git@git.tavy.me:linux-stable.git | |
| parent | 807e5d383ca8bf6c0ac0fddd5edf9dda92e97c5d (diff) | |
LoongArch: Set correct protection_map[] for VM_NONE/VM_SHARED
For 32BIT platform _PAGE_PROTNONE is 0, so set a VMA to be VM_NONE or
VM_SHARED will make pages non-present, then cause Oops with kernel page
fault.
Fix it by set correct protection_map[] for VM_NONE/VM_SHARED, replacing
_PAGE_PROTNONE with _PAGE_PRESENT.
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
