pidfd monitor can watch an unrelated process after host pid reuse
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c, macos
- Área
- operating-systems
Línea de trabajo
Start at pidfd_monitor_thread and trace pidfd_create through the kill(hpid, 0) check and kevent() registration, then inspect how the rest of the process layer tracks host pids. Reproduce or reason through host pid reuse during that gap; done means the pidfd cannot report or wait on an unrelated process.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
pidfd_monitor_thread checks the target with kill(hpid, 0) and then registers EVFILT_PROC on hpid, the host pid recorded when the pidfd was created. If the target exits and macOS reuses that host pid before the monitor registers, the monitor ends up watching an unrelated process. The pidfd then reports the exit of that process, or waits on it, and not on the guest's target.
The window is between pidfd_create recording the host pid and the kevent() registration succeeding, so it needs fast pid reuse and is unlikely in practice. It is not specific to the pidfd table: anything in elfuse that holds a host pid across a gap has the same exposure, so the fix may belong with however the rest of the process layer tracks host pids.
Found while reviewing #399.
- Lenguaje dominante
- C
- Estrellas
- 271
- Forks
- 28
- Merge medio
- 2 d 18 h
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sysprog21/elfuse
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
Todos los issues de sysprog21/elfuse
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Policy query leaks host primary block (BSL_PrimaryBlock_deinit skipped) on two early-exit pathsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NASA-AMMOS/BSL#355 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
arancormonk/dsd-neo#660 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: remote-ls --updates reports up-to-date OCI refs because it ignores deployed Alt-idPosiblemente ocupada @Joao-kouznetz la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
#242 leftovers: dated narrative and shas in the social-features test planPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
EchoTools/nevr-runtime#264 ·
Los mantenedores suelen responder en 1 día