execSan: Send SIGABRT signal to initial (main thread). (#7988)

This commit is contained in:
Oliver Chang 2022-07-11 16:03:51 +10:00 committed by GitHub
parent e9c42d0ed5
commit 70dd8b4c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void report_bug(std::string bug_type) {
// to the root process.
// Note: this may not be reliable or consistent if shell injection happens
// in an async way.
kill(g_root_pid, SIGABRT);
tgkill(g_root_pid, g_root_pid, SIGABRT);
}
void inspect_for_injection(pid_t pid, const user_regs_struct &regs) {