Skip to content

Unlink daemon liveness is sampled at ADD_PROCESS and lags the exit worker #1592

Open

Description

@Koichi98

has_alive_unlink_daemon() (agnocast_kmod/agnocast_ioctl.c:806) scans proc_info_htable, which exit_worker_thread drains asynchronously, so a daemon killed abruptly still reads as alive and a process registering in that window is not told to spawn a replacement.

Checking PF_EXITING on the entry's task instead of trusting the table would narrow that window to the time between the signal and do_exit().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions