[compiler-rt] [compiler-rt] adding fchmodat2 syscall introduced in Linux 6.6. (PR #82275)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 11:52:49 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: David CARLIER (devnexen)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/82275.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc (+9)
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
index c10943b3e48793..fb3cef1a56e7a6 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
@@ -2808,6 +2808,15 @@ PRE_SYSCALL(fchownat)
POST_SYSCALL(fchownat)
(long res, long dfd, const void *filename, long user, long group, long flag) {}
+PRE_SYSCALL(fchmodat2)(long dfd, const void *filename, long mode, long flag) {
+ if (filename)
+ PRE_READ(filename,
+ __sanitizer::internal_strlen((const char *)filename) + 1);
+}
+
+POST_SYSCALL(fchmodat2)(long res, long dfd, const void *filename, long mode, long flag) {}
+
+
PRE_SYSCALL(openat)(long dfd, const void *filename, long flags, long mode) {
if (filename)
PRE_READ(filename,
``````````
</details>
https://github.com/llvm/llvm-project/pull/82275
More information about the llvm-commits
mailing list