linux-stable/arch
Bibo Mao 899cb83e64 hugetlb: clear huge pte during flush function on mips platform
[ Upstream commit 33ae8f801a ]

If multiple threads are accessing the same huge page at the same
time, hugetlb_cow will be called if one thread write the COW huge
page. And function huge_ptep_clear_flush is called to notify other
threads to clear the huge pte tlb entry. The other threads clear
the huge pte tlb entry and reload it from page table, the reload
huge pte entry may be old.

This patch fixes this issue on mips platform, and it clears huge
pte entry before notifying other threads to flush current huge
page entry, it is similar with other architectures.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:17:42 +02:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-26 10:29:57 +02:00
arc ARCv2: save ABI registers across signal handling 2021-06-30 08:48:54 -04:00
arm ARM: dts: at91: sama5d4: fix pinctrl muxing 2021-07-20 16:17:28 +02:00
arm64 arm64: perf: Disable PMU while processing counter overflows 2021-06-30 08:48:56 -04:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon hexagon: work around compiler crash 2020-01-17 19:45:55 +01:00
ia64 ia64: mca_drv: fix incorrect array size calculation 2021-07-20 16:17:34 +02:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips hugetlb: clear huge pte during flush function on mips platform 2021-07-20 16:17:42 +02:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-01-27 14:46:24 +01:00
openrisc openrisc: Define memory barrier mb 2021-06-03 08:36:22 +02:00
parisc parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers 2021-04-16 11:57:48 +02:00
powerpc powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers 2021-06-16 11:53:02 +02:00
s390 s390: appldata depends on PROC_SYSCTL 2021-07-20 16:17:40 +02:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:31:15 +01:00
sparc sparc64: Fix opcode filtering in handling of no fault loads 2021-03-30 14:40:09 +02:00
tile
um um: Mark all kernel symbols as local 2021-05-22 10:57:42 +02:00
unicore32
x86 x86/fpu: Reset state for all signal restore failures 2021-06-30 08:48:56 -04:00
xtensa xtensa: disable preemption around cache alias management calls 2020-11-24 13:05:56 +01:00
.gitignore
Kconfig mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race 2020-11-18 18:28:03 +01:00