Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,18 +1107,20 @@ INTERCEPTOR(int, execve, const char *filename, char *const argv[],
}

#if SANITIZER_INTERCEPT_PROCESS_VM_READV
INTERCEPTOR(ssize_t, process_vm_readv, const struct iovec *local_iov,
INTERCEPTOR(ssize_t, process_vm_readv, pid_t pid, const struct iovec *local_iov,
unsigned long liovcnt, const struct iovec *remote_iov,
unsigned long riovcnt, unsigned long flags) {
__rtsan_notify_intercepted_call("process_vm_readv");
return REAL(process_vm_readv)(local_iov, liovcnt, remote_iov, riovcnt, flags);
return REAL(process_vm_readv)(pid, local_iov, liovcnt, remote_iov, riovcnt,
flags);
}

INTERCEPTOR(ssize_t, process_vm_writev, const struct iovec *local_iov,
unsigned long liovcnt, const struct iovec *remote_iov,
unsigned long riovcnt, unsigned long flags) {
INTERCEPTOR(ssize_t, process_vm_writev, pid_t pid,
const struct iovec *local_iov, unsigned long liovcnt,
const struct iovec *remote_iov, unsigned long riovcnt,
unsigned long flags) {
__rtsan_notify_intercepted_call("process_vm_writev");
return REAL(process_vm_writev)(local_iov, liovcnt, remote_iov, riovcnt,
return REAL(process_vm_writev)(pid, local_iov, liovcnt, remote_iov, riovcnt,
flags);
}
#define RTSAN_MAYBE_INTERCEPT_PROCESS_VM_READV \
Expand Down
Loading