Skip to content

Exit early from signal handler #38

@stephenrkell

Description

@stephenrkell

In the recent literature on system call interposition I ran into a neat trick: instead of our convoluted ways of handling clone() et al inside the signal context, we can return early from the signal handler but having fixed up the on-stack context to divert control initially into a resume-side handler. This eventually restores control to the real trap context... but because the resume-side handler runs with the same stack as at the original trap context, it probably makes things a lot easier.

I forget in which paper I read this -- need to check. But probably we should use this technique.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions