PT-2026-166568
CVE-2026-142845
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
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/list lru: don't copy stale shrinker id from non-memcg-aware shrinkers
With cgroup.memory=nokmem, shrinker memcg alloc() fails with -ENOSYS for
shrinkers without SHRINKER NONSLAB, and shrinker alloc() falls back to a
non-memcg-aware shrinker. On this fallback path, shrinker->id is never
assigned and keeps 0 from kzalloc(), which is a valid id belonging to
whichever memcg-aware shrinker registers first.
list lru init() copies shrinker->id unconditionally, so every list lru
backed by such a fallback shrinker (thp-deferred split, zswap-shrinker,
workingset shadow nodes, superblock lrus, ...) ends up with
lru->shrinker id == 0 instead of -1.
Under nokmem the list lru collapses to the shared per-node lists, but
list lru add() still calls set shrinker bit() against the memcg of
the added object. Most list lru users are unaffected because their
objects resolve to a NULL memcg without kmem accounting, but the THP
deferred split queue holds user folios, which are charged regardless of
nokmem. On a system where no SHRINKER NONSLAB shrinker registers,
shrinker nr max stays 0 and every memcg's shrinker info has map nr max
== 0, so the first folio added by khugepaged triggers on every boot:
WARNING: mm/shrinker.c:212 at set shrinker bit+0x99/0xa0
On systems where a SHRINKER NONSLAB shrinker (btrfs, xfs) did register and
expand the maps, there is no warning; instead bit 0 is set spuriously for
an unrelated shrinker.
shrinker->id is only meaningful while SHRINKER MEMCG AWARE is set, and all
readers inside mm/shrinker.c already check the flag before using the id.
Make list lru init() do the same and fall back to -1, so
set shrinker bit() is never reached with a bogus id. The stale
shrinker->id itself is left as is; cleaning that up is a separate topic.
Verified on a machine booting with cgroup.memory=nokmem and
CONFIG TRANSPARENT HUGEPAGE=y: the warning fires once per boot from
khugepaged, disappears when nokmem is removed from the command line, and
no longer triggers with this fix applied and nokmem set.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾