Skip to content

Commit e5d9310

Browse files
committed
Revert "[compiler-rt][sanitizer_common] copy_file_range syscall interception. (#125816)" and fix
This reverts commit 7521207. This reverts commit 5f6a3e6.
1 parent 9a32af2 commit e5d9310

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,28 +3205,6 @@ POST_SYSCALL(futex)
32053205
COMMON_SYSCALL_BLOCKING_END();
32063206
}
32073207

3208-
PRE_SYSCALL(copy_file_range)
3209-
(int fdin, __sanitizer___kernel_off_t *offin, int fdout,
3210-
__sanitizer___kernel_off_t *offout, SIZE_T size, unsigned int flags) {
3211-
if (offin != nullptr) {
3212-
PRE_READ(offin, sizeof(*offin));
3213-
}
3214-
if (offout != nullptr) {
3215-
PRE_READ(offout, sizeof(*offout));
3216-
}
3217-
}
3218-
3219-
POST_SYSCALL(copy_file_range)
3220-
(SSIZE_T, int fdin, __sanitizer___kernel_off_t *offin, int fdout,
3221-
__sanitizer___kernel_off_t *offout, SIZE_T size, unsigned int flags) {
3222-
if (offin != nullptr) {
3223-
POST_WRITE(offin, sizeof(*offin));
3224-
}
3225-
if (offout != nullptr) {
3226-
POST_WRITE(offout, sizeof(*offout));
3227-
}
3228-
}
3229-
32303208
} // extern "C"
32313209

32323210
# undef PRE_SYSCALL

compiler-rt/test/sanitizer_common/TestCases/Linux/copy_file_range.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)