1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/hotfix-execmem.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Since f6bec26c0a7 (mm/execmem, arch: convert simple overrides of module_alloc to execmem)
15 sparc was accidentaly changed to map module memory w/ VM_FLUSH_RESET_PERMS, causing
16 page tables or memory corruption on each module load, making it even nearly impossible
17 to even successfully boot sun4u systems.
19 Signed-off-by: René Rebe <rene@exactcode.de>
21 index 0c4b36bc6d10..64404c517e93 100644
24 @@ -17,6 +17,9 @@ static struct execmem_info default_execmem_info __ro_after_init;
26 bool kasan = range->flags & EXECMEM_KASAN_SHADOW;
27 unsigned long vm_flags = VM_FLUSH_RESET_PERMS;
31 gfp_t gfp_flags = GFP_KERNEL | __GFP_NOWARN;
32 unsigned long start = range->start;
33 unsigned long end = range->end;