Skip to content

Commit

Permalink
Allow set_robust_list for TSAN
Browse files Browse the repository at this point in the history
It might spawn a thread which will likely invoke that syscall.

PiperOrigin-RevId: 557762639
Change-Id: I26a7a79253338bbe83d22d1680256e5cdb914762
  • Loading branch information
happyCoder92 authored and copybara-github committed Aug 17, 2023
1 parent 18c64ae commit 5d13550
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sandboxed_api/sandbox2/policybuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ PolicyBuilder& PolicyBuilder::AllowLlvmSanitizers() {
if constexpr (sapi::sanitizers::IsASan()) {
AllowSyscall(__NR_sigaltstack);
}
if constexpr (sapi::sanitizers::IsTSan()) {
AllowSyscall(__NR_set_robust_list);
}
return *this;
}

Expand Down

0 comments on commit 5d13550

Please sign in to comment.