Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144521424
D22239.1775173727.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22239.1775173727.diff
View Options
Index: head/sys/sys/cdefs.h
===================================================================
--- head/sys/sys/cdefs.h
+++ head/sys/sys/cdefs.h
@@ -872,6 +872,13 @@
/* Function should not be analyzed. */
#define __no_lock_analysis __lock_annotate(no_thread_safety_analysis)
+/* Function or variable should not be sanitized, ie. by AddressSanitizer */
+#if __has_attribute(no_sanitize)
+#define __nosanitizeaddress __attribute__((no_sanitize("address")))
+#else
+#define __nosanitizeaddress
+#endif
+
/* Guard variables and structure members by lock. */
#define __guarded_by(x) __lock_annotate(guarded_by(x))
#define __pt_guarded_by(x) __lock_annotate(pt_guarded_by(x))
Index: head/sys/sys/linker_set.h
===================================================================
--- head/sys/sys/linker_set.h
+++ head/sys/sys/linker_set.h
@@ -61,6 +61,7 @@
__GLOBL(__CONCAT(__stop_set_,set)); \
static void const * qv \
__set_##set##_sym_##sym __section("set_" #set) \
+ __nosanitizeaddress \
__used = &(sym)
#define __MAKE_SET(set, sym) __MAKE_SET_QV(set, sym, __MAKE_SET_CONST)
#else /* !__GNUCLIKE___SECTION */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 11:48 PM (12 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28250316
Default Alt Text
D22239.1775173727.diff (1 KB)
Attached To
Mode
D22239: Don't sanitize linker_set
Attached
Detach File
Event Timeline
Log In to Comment