]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/hyperv: check cpu mask after interrupt has been disabled
authorWei Liu <wei.liu@kernel.org>
Tue, 5 Jan 2021 17:50:43 +0000 (17:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:12 +0000 (18:26 +0100)
commit984f57e4258c08442595365ee4a7a65b9cbfb68b
tree5d35e1f01e16a5b50d5998fa446e4a655fbebe6f
parent1a202b9b9d238f6c88b00683ccd7da706c79c9d3
x86/hyperv: check cpu mask after interrupt has been disabled

commit ad0a6bad44758afa3b440c254a24999a0c7e35d5 upstream.

We've observed crashes due to an empty cpu mask in
hyperv_flush_tlb_others.  Obviously the cpu mask in question is changed
between the cpumask_empty call at the beginning of the function and when
it is actually used later.

One theory is that an interrupt comes in between and a code path ends up
changing the mask. Move the check after interrupt has been disabled to
see if it fixes the issue.

Signed-off-by: Wei Liu <wei.liu@kernel.org>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20210105175043.28325-1-wei.liu@kernel.org
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/hyperv/mmu.c