64-byte os_alloc_mem leak in reusemappingdbMap (kbusMapFbAperture) survives client exit (595.99.02)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- c, linux
- Domínio
- operating-systems, performance
Direção de pesquisa
Start by tracing reusemappingdbMap and kbusMapFbAperture_GM107 in the kernel module sources, then follow the allocation and cleanup paths shown in the issue’s stack trace. Reproduce with the listed headless Chromium or vulkaninfo workload and compare surviving 64-byte allocations after client exit. Done means the allocations are released and repeated runs return the slab count to baseline.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Note: This issue was written by my clanker. While I try to verify its steps as much as possible, it might not be 100% correct.
Summary
Each short-lived Vulkan client that maps video memory to the CPU leaves 64-byte os_alloc_mem allocations behind
after it exits. They are inserted by reusemappingdbMap under kbusMapFbAperture_GM107 and are never freed, so they
accumulate in kmalloc-64 (SUnreclaim) until a reboot.
Environment
- GPU: NVIDIA GeForce RTX 4090 (AD102)
- Driver: NVIDIA open kernel modules 595.99.02 (
nvidia-driver-595-open, Ubuntu 24.04) - Kernel: 7.0.0-44-generic,
CONFIG_RANDOM_KMALLOC_CACHES=y - Desktop: X11 (Cinnamon); the clients below are headless and use no display
- Client: headless Chromium (Playwright
chrome-headless-shell),--use-angle=vulkan --enable-gpu, drawing WebGL2
Evidence
A bpftrace window of 30 minutes remembered every 64-byte kmalloc by pointer, with its process and kernel stack, and
forgot it at its kfree. Survivors whose process had exited by the end of the window cannot be freed by anyone:
551 survivors, 539 of them from exited chrome-headless processes
__kmalloc_noprof+655
os_alloc_mem+213
_portMemAllocNonPagedUntracked+44
_portMemAllocatorAlloc+43
mapInsertNew_IMPL+44
reusemappingdbMap+811
kbusMapFbAperture_GM107+712
memMap_IMPL+2134
serverMap+781
rmapiMapToCpuWithSecInfoV2+422
rmapiMapToCpuWithSecInfoTlsV2+100
Nv04MapMemoryWithSecInfo+105
A separate perf measurement (every 64-byte kmalloc, kfree and fork, attributed to the workload's own process tree,
5 s after it exits) shows the same per launch: 10 headless Chromium launches drawing 60 WebGL frames each left 11
os_alloc_mem objects; 30 vulkaninfo --summary runs left 11 as well.
Reproducer
- Launch headless Chromium with
--use-angle=vulkan --enable-gpu --enable-features=Vulkan --ignore-gpu-blocklist. - Draw a WebGL2 canvas for 60 frames, then close the browser.
- Repeat; count 64-byte kmalloc objects (sum of
kmalloc-64and everykmalloc-rnd-*-64in/proc/slabinfo). - The count does not return to its baseline; the surviving allocations carry the stack above.
Impact
Small per client (one or a few 64-byte objects per launch), but unbounded: CI machines and test suites that launch
GPU browsers thousands of times a day accumulate it in unreclaimable slab until a reboot.
- Linguagem predominante
- C
- Estrelas
- 17.7k
- Forks
- 2k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/open-gpu-kernel-modules
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Mantenedores costumam responder em até 1 dia
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootTalvez já em andamento @SammyTourani assumiu há 69 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de NVIDIA/open-gpu-kernel-modules
Issues semelhantes
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameAbertagame: 010065A014024000 ios
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
seedds/nxnative#3714 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
yugabyte/yugabyte-db#40355 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Jstar269/nakagawa-recomp#3753 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
ly05010419/MacNativeGames#2474 ·
Mantenedores costumam responder em até 1 dia