diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-08-16 12:10:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-27 12:39:24 (GMT) |
commit | 536ab630f4db25fdfe7c46c027686ecad12150e7 (patch) | |
tree | 68fee21d3254ce2161bf97ea68d23496b5515054 /firmware/ess | |
parent | 4c7f54a0f9778abde87f0a96364c99bbf89e5786 (diff) | |
download | linux-536ab630f4db25fdfe7c46c027686ecad12150e7.tar.xz |
s390/mm: fix local TLB flushing vs. detach of an mm address space
commit b3e5dc45fd1ec2aa1de6b80008f9295eb17e0659 upstream.
The local TLB flushing code keeps an additional mask in the mm.context,
the cpu_attach_mask. At the time a global flush of an address space is
done the cpu_attach_mask is copied to the mm_cpumask in order to avoid
future global flushes in case the mm is used by a single CPU only after
the flush.
Trouble is that the reset of the mm_cpumask is racy against the detach
of an mm address space by switch_mm. The current order is first the
global TLB flush and then the copy of the cpu_attach_mask to the
mm_cpumask. The order needs to be the other way around.
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/ess')
0 files changed, 0 insertions, 0 deletions