PT-2026-162889
CVE-2026-99922
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
mm/madvise: add cond resched() in THP branch of madvise cold or pageout pte range()
During stress testing with stress-ng on a 256-CPU system, a softlockup was
observed when madvise(MADV COLD) was called on a 31GB memory region backed
by transparent hugepages. The region contains 15935 THP PMD entries, and
the softlockup was triggered after 14485 of them had been processed.
The THP branch of madvise cold or pageout pte range() has no scheduling
point. walk pmd range() invokes it once per 2MB PMD entry with no
cond resched() anywhere in the loop. Each iteration calls
pmdp invalidate() which issues a synchronous TLB shootdown (dsb ish)
waiting for all CPUs to acknowledge. This operation can be time-consuming
under heavy system load, causing the accumulated time across all PMD
entries to exceed the softlockup threshold (20s) and panic when
softlockup panic=1. On a CONFIG PREEMPT NONE=y kernel, there is no other
opportunity to reschedule during this entire traversal.
The regular PTE path already has an unconditional cond resched() at the
function tail (introduced by commit 9c276cc65a58 ("mm: introduce
MADV COLD") and commit 1a4e58cce84e ("mm: introduce MADV PAGEOUT") when
MADV COLD and MADV PAGEOUT were first introduced) and a conditional one
inside the loop (commit b2f557a21bc8 ("mm/madvise: add cond resched() in
madvise cold or pageout pte range()")). The THP branch never received
equivalent treatment.
Fix by adding cond resched() at the huge unlock exit path after
spin unlock(ptl) and reclaim pages(), which is the single exit point for
all goto paths in the THP branch.
Crash log:
watchdog: BUG: soft lockup - CPU#63 stuck for 23s! [stress-ng-vm:1665914]
...
Call trace:
pmdp invalidate+0x48/0x68
madvise cold or pageout pte range+0x84c/0xb00
walk pmd range.isra.0+0x1ac/0x3b0
walk pud range+0x120/0x190
walk pgd range+0x170/0x1b8
walk page range+0x184/0x198
walk page range vma+0x94/0x128
madvise cold+0xd8/0x198
madvise vma behavior+0x234/0x638
madvise walk vmas.constprop.0+0xdc/0x210
madvise do behavior+0xa8/0x328
do madvise+0xd8/0x140
arm64 sys madvise+0x2c/0xe0
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾