Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 11418277: Allow ASanified Chrome to use sched_getaffinity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_seccomp_bpf_linux.cc
===================================================================
--- content/common/sandbox_seccomp_bpf_linux.cc (revision 170769)
+++ content/common/sandbox_seccomp_bpf_linux.cc (working copy)
@@ -1253,6 +1253,10 @@
// The hook needs dup(), lseek(), and close() to be allowed.
return Sandbox::Trap(GpuOpenSIGSYS_Handler, NULL);
}
+#if defined(ADDRESS_SANITIZER)
+ // Allow to call sched_getaffinity under AddressSanitizer.
+ case __NR_sched_getaffinity:
jln (very slow on Chromium) 2012/12/04 00:16:09 You need to add return ErrorCode(ErrorCode::ERR_AL
+#endif
default:
if (IsEventFd(sysno))
return ErrorCode(ErrorCode::ERR_ALLOWED);
@@ -1274,6 +1278,10 @@
case __NR_mremap: // See crbug.com/149834.
case __NR_pread64:
case __NR_pwrite64:
+#if defined(ADDRESS_SANITIZER)
+ // Allow to call sched_getaffinity() under AddressSanitizer.
+ case __NR_sched_getaffinity:
+#endif
case __NR_sched_get_priority_max:
case __NR_sched_get_priority_min:
case __NR_sched_getparam:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698