Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

um: Fix potential race condition in TLB sync

During the TLB sync, we need to traverse and modify the page table,
so we should hold the page table lock. Since full SMP support for
threads within the same process is still missing, let's disable the
split page table lock for simplicity.

Fixes: 1e4ee5135d81 ("um: Add initial SMP support")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20260302235224.1915380-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Tiwei Bie and committed by
Johannes Berg
102331b6 1ccc861d

+2
+1
arch/um/kernel/tlb.c
··· 165 165 unsigned long addr, next; 166 166 int ret = 0; 167 167 168 + guard(spinlock_irqsave)(&mm->page_table_lock); 168 169 guard(spinlock_irqsave)(&mm->context.sync_tlb_lock); 169 170 170 171 if (mm->context.sync_tlb_range_to == 0)
+1
mm/Kconfig
··· 572 572 depends on !ARM || CPU_CACHE_VIPT 573 573 depends on !PARISC || PA20 574 574 depends on !SPARC32 575 + depends on !UML 575 576 576 577 config ARCH_ENABLE_SPLIT_PMD_PTLOCK 577 578 bool