@@ -1107,18 +1107,20 @@ INTERCEPTOR(int, execve, const char *filename, char *const argv[],
1107
1107
}
1108
1108
1109
1109
#if SANITIZER_INTERCEPT_PROCESS_VM_READV
1110
- INTERCEPTOR (ssize_t , process_vm_readv, const struct iovec *local_iov,
1110
+ INTERCEPTOR (ssize_t , process_vm_readv, pid_t pid, const struct iovec *local_iov,
1111
1111
unsigned long liovcnt, const struct iovec *remote_iov,
1112
1112
unsigned long riovcnt, unsigned long flags) {
1113
1113
__rtsan_notify_intercepted_call (" process_vm_readv" );
1114
- return REAL (process_vm_readv)(local_iov, liovcnt, remote_iov, riovcnt, flags);
1114
+ return REAL (process_vm_readv)(pid, local_iov, liovcnt, remote_iov, riovcnt,
1115
+ flags);
1115
1116
}
1116
1117
1117
- INTERCEPTOR (ssize_t , process_vm_writev, const struct iovec *local_iov,
1118
- unsigned long liovcnt, const struct iovec *remote_iov,
1119
- unsigned long riovcnt, unsigned long flags) {
1118
+ INTERCEPTOR (ssize_t , process_vm_writev, pid_t pid,
1119
+ const struct iovec *local_iov, unsigned long liovcnt,
1120
+ const struct iovec *remote_iov, unsigned long riovcnt,
1121
+ unsigned long flags) {
1120
1122
__rtsan_notify_intercepted_call (" process_vm_writev" );
1121
- return REAL (process_vm_writev)(local_iov, liovcnt, remote_iov, riovcnt,
1123
+ return REAL (process_vm_writev)(pid, local_iov, liovcnt, remote_iov, riovcnt,
1122
1124
flags);
1123
1125
}
1124
1126
#define RTSAN_MAYBE_INTERCEPT_PROCESS_VM_READV \
0 commit comments