Skip to content

Commit f406f2d

Browse files
committed
xtensa: fix stop_machine_cpuslocked call in patch_text
patch_text must invoke patch_text_stop_machine on all online CPUs, but it calls stop_machine_cpuslocked with NULL cpumask. As a result only one CPU runs patch_text_stop_machine potentially leaving stale icache entries on other CPUs. Fix that by calling stop_machine_cpuslocked with cpu_online_mask as the last argument. Cc: stable@vger.kernel.org Fixes: 64711f9 ("xtensa: implement jump_label support") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 89b184f commit f406f2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/xtensa/kernel/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void patch_text(unsigned long addr, const void *data, size_t sz)
6161
.data = data,
6262
};
6363
stop_machine_cpuslocked(patch_text_stop_machine,
64-
&patch, NULL);
64+
&patch, cpu_online_mask);
6565
} else {
6666
unsigned long flags;
6767

0 commit comments

Comments
 (0)