diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-03-06 22:26:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-06 22:26:36 +0100 |
commit | 82354fce168c7cb037644bf4443b3e1b7559976c (patch) | |
tree | 39e2f997a23ea386e5045acce67e8819690b7036 /arch/powerpc/lib/code-patching.c | |
parent | 7ab02bd36eb444654183ad6c5b15211ddfa32a8f (diff) | |
parent | b1536481c81fb604074da799e4f2d2038a1663f7 (diff) |
Merge branch 'sched/urgent' into sched/core, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
-rw-r--r-- | arch/powerpc/lib/code-patching.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index af97fbb3c257..f84e0337cc02 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c @@ -108,7 +108,7 @@ static int text_area_cpu_up(unsigned int cpu) unsigned long addr; int err; - area = get_vm_area(PAGE_SIZE, VM_ALLOC); + area = get_vm_area(PAGE_SIZE, 0); if (!area) { WARN_ONCE(1, "Failed to create text area for cpu %d\n", cpu); @@ -493,7 +493,9 @@ static int __do_patch_instructions_mm(u32 *addr, u32 *code, size_t len, bool rep orig_mm = start_using_temp_mm(patching_mm); + kasan_disable_current(); err = __patch_instructions(patch_addr, code, len, repeat_instr); + kasan_enable_current(); /* context synchronisation performed by __patch_instructions */ stop_using_temp_mm(patching_mm, orig_mm); |