From 70dd8b4c95778da347af5e6270066d050e90ffec Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Mon, 11 Jul 2022 16:03:51 +1000 Subject: [PATCH] execSan: Send SIGABRT signal to initial (main thread). (#7988) --- infra/experimental/sanitizers/ExecSan/execSan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/experimental/sanitizers/ExecSan/execSan.cpp b/infra/experimental/sanitizers/ExecSan/execSan.cpp index f36a2184c..cc074077e 100644 --- a/infra/experimental/sanitizers/ExecSan/execSan.cpp +++ b/infra/experimental/sanitizers/ExecSan/execSan.cpp @@ -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 ®s) {