aboutsummaryrefslogtreecommitdiffstats
path: root/executor/subprocess.h
Commit message (Collapse)AuthorAgeFilesLines
* executor: don't kill executor exec process groupDmitry Vyukov2024-10-241-1/+0
| | | | | | | | | Killing a process group (negative pid) only makes sense when the process is a group leader (called setsid/setpgrp/setpgid). Executor exec process is not a group leader, so don't try to kill its group. For our controlled executor subprocesses we rely on PR_SET_PDEATHSIG for reliable killing of all child subprocesses.
* executor: fix max signal/cover filter mapping into subprocessesDmitry Vyukov2024-06-281-1/+9
| | | | | | | | | | | There is a quirk related to posix_spawn_file_actions_adddup2: it just executes the specified dup's in order in the child process. In our case we do dups as follows: 20 -> 4 (output region) 4 -> 5 (max signal) So we dup the output region onto 4 first, and then dup the same output region (fd 4 becomes the output region) onto 5 (max signal). So we have output region as both output region and max signal.
* executor: disable lsan for exec subprocessesDmitry Vyukov2024-06-261-2/+4
| | | | | Somehow it's very slow in syzbot arm64 image. This speeds up pkg/runtest tests a hundred of times.
* executor: add runner modeDmitry Vyukov2024-06-241-0/+129
Move all syz-fuzzer logic into syz-executor and remove syz-fuzzer. Also restore syz-runtest functionality in the manager. Update #4917 (sets most signal handlers to SIG_IGN)