Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to abort VMM when parent process dies #4172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 8, 2023

  1. Add option to abort VMM when parent process dies

    If Firecracker is being monitored by a parent process that unexpectedly
    terminates, it will be abandoned up the process tree, likely to
    a process that doesn't know what do with it (such as init). This becomes
    even trickier if the process was running in a mount namespace that was
    controlled by the parent process, as the API socket is now inaccessible.
    
    If the parent process was also keeping handles on other resources used by the
    Firecracker VMM, these could be re-used by new processes and cause
    conflicts with the now orphaned Firecracker.
    
    This adds a flag to set the parent death signal (SIGUSR2 in this
    instance) that the process will receive when its parent process exits
    before the VMM does. Receipt of this signal will cause the VMM to
    abruptly abort, much like the SIGILL signal. While a graceful shutdown
    would be preferable, since the parent process may have been controlling
    outside resources for Firecracker (disks, networking, etc.), it's
    indeterminate whether or not it is safe to continue running the VM.
    
    Signed-off-by: Josh Seba <[email protected]>
    jseba committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    bf00b57 View commit details
    Browse the repository at this point in the history