1 # --- T2-COPYRIGHT-BEGIN ---
2 # t2/package/*/linux/hotfix-execmem.patch
3 # Copyright (C) 2024 - 2025 The T2 SDE Project
4 # SPDX-License-Identifier: GPL-2.0 or patched project license
5 # --- T2-COPYRIGHT-END ---
7 Since f6bec26c0a7 (mm/execmem, arch: convert simple overrides of module_alloc to execmem)
8 sparc was accidentaly changed to map module memory w/ VM_FLUSH_RESET_PERMS, causing
9 page tables or memory corruption on each module load, making it even nearly impossible
10 to even successfully boot sun4u systems.
12 Signed-off-by: René Rebe <rene@exactcode.de>
14 index 0c4b36bc6d10..64404c517e93 100644
15 --- linux-6.13/mm/execmem.c.orig 2025-01-20 23:15:27.093329248 +0100
16 +++ linux-6.13/mm/execmem.c 2025-01-20 23:22:16.633328514 +0100
18 struct execmem_range *range = &execmem_info->ranges[type];
19 bool use_cache = range->flags & EXECMEM_ROX_CACHE;
20 unsigned long vm_flags = VM_FLUSH_RESET_PERMS;
24 pgprot_t pgprot = range->pgprot;