]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xtensa: fix stop_machine_cpuslocked call in patch_text
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 16 Mar 2022 09:04:17 +0000 (02:04 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:30 +0000 (15:18 +0200)
commit6d06ab855affdca50238f3dc2cd008b49786ad0c
treec94f50b028279a8beb17b86cbc8f764c4e20c769
parent7d7190f97e5cb0031311bf20553a911e12466292
xtensa: fix stop_machine_cpuslocked call in patch_text

BugLink: https://bugs.launchpad.net/bugs/1971497
commit f406f2d03e07afc199dd8cf501f361dde6be8a69 upstream.

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: 64711f9a47d4 ("xtensa: implement jump_label support")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/xtensa/kernel/jump_label.c