RLIMIT_AS and RLIMIT_DATA totals lose records once the region table is stale

Aberta
#488 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
52/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
c

Direção de pesquisa

Start by reading the changes from #485 and find where the region table updates mappings and where RLIMIT_AS and RLIMIT_DATA are checked. Trace the add, remove, and reprotect paths, including behavior when the table is full and marked stale. Done means both limits still include dropped records after mappings are split, and mmap no longer needs a full table scan under a finite limit.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

After #485, RLIMIT_AS and RLIMIT_DATA are checked against totals summed from the region table on each call. Once regions_tracker_stale is set, the records the table dropped stay out of both totals for good, so a guest that fills the table to GUEST_MAX_REGIONS and then splits mappings can grow past either limit. Running vm_total and vm_data counters, updated wherever a mapping is added, removed or reprotected and kept even when the table has no free slot, would close that gap and also replace the full-table scan on every mmap under a finite limit.

Linguagem predominante
C
Estrelas
287
Forks
33
Merge médio
2d 17h
PRs com merge (30d)
18

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sysprog21/elfuse

Todas as issues de sysprog21/elfuse

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.