]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes for userspace ASAN
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:33 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:33 +0000 (11:23 -0700)
This is mostly disabling ASAN for some functions and adjusting overheads.
Code, touching the guest memory, currently cannot be instrumented.

open-vm-tools/lib/misc/dynbuf.c

index 08cc32526de11d8018d3a33c221c2bf27bf331d7..444f7e6b6021c45ad1d2e268c261584ffa51fda0 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -29,6 +29,7 @@
 
 #include "vmware.h"
 #include "dynbuf.h"
+#include "asan_common.h"
 
 
 /*
@@ -332,6 +333,8 @@ DynBuf_Enlarge(DynBuf *b,       // IN/OUT:
  *-----------------------------------------------------------------------------
  */
 
+// XXX The instrumentation assumes that "data" points to the heap, PR 1826914.
+DISABLE_ASAN
 Bool
 DynBuf_Append(DynBuf *b,        // IN/OUT:
               void const *data, // IN: