[PATCH] asan/tsan/msan: common interceptors for linux aio

Evgeniy Stepanov eugenis at google.com
Tue Nov 26 06:03:56 PST 2013


  LGTM with comments


================
Comment at: sanitizer_common/sanitizer_common_syscalls.inc:1284
@@ -1271,3 +1283,3 @@
 POST_SYSCALL(io_getevents)(long res, long ctx_id, long min_nr, long nr,
-                           void *events, void *timeout) {
+                           __sanitizer_iocb **iocbpp, void *timeout) {
   if (res >= 0) {
----------------
This is not __sanitizer_iocb. It's struct io_event.


================
Comment at: sanitizer_common/sanitizer_common_syscalls.inc:1323
@@ +1322,3 @@
+      COMMON_SYSCALL_FD_ACQUIRE(iocb->aio_fildes);
+      POST_WRITE(iocb, sizeof(__sanitizer_iocb));
+    }
----------------
sizeof(*iocb)


http://llvm-reviews.chandlerc.com/D2269



More information about the llvm-commits mailing list