2013-08-15 02:54:06 +08:00
|
|
|
fun:main=uninstrumented
|
|
|
|
fun:main=discard
|
|
|
|
|
2013-11-19 14:33:13 +08:00
|
|
|
###############################################################################
|
|
|
|
# DFSan interface functions
|
|
|
|
###############################################################################
|
2013-08-15 02:54:06 +08:00
|
|
|
fun:dfsan_union=uninstrumented
|
|
|
|
fun:dfsan_union=discard
|
|
|
|
fun:dfsan_create_label=uninstrumented
|
|
|
|
fun:dfsan_create_label=discard
|
|
|
|
fun:dfsan_set_label=uninstrumented
|
|
|
|
fun:dfsan_set_label=discard
|
|
|
|
fun:dfsan_add_label=uninstrumented
|
|
|
|
fun:dfsan_add_label=discard
|
|
|
|
fun:dfsan_get_label=uninstrumented
|
|
|
|
fun:dfsan_get_label=custom
|
|
|
|
fun:dfsan_read_label=uninstrumented
|
|
|
|
fun:dfsan_read_label=discard
|
2014-03-27 05:09:53 +08:00
|
|
|
fun:dfsan_get_label_count=uninstrumented
|
|
|
|
fun:dfsan_get_label_count=discard
|
2013-08-15 02:54:06 +08:00
|
|
|
fun:dfsan_get_label_info=uninstrumented
|
|
|
|
fun:dfsan_get_label_info=discard
|
|
|
|
fun:dfsan_has_label=uninstrumented
|
|
|
|
fun:dfsan_has_label=discard
|
|
|
|
fun:dfsan_has_label_with_desc=uninstrumented
|
|
|
|
fun:dfsan_has_label_with_desc=discard
|
2014-04-25 01:42:16 +08:00
|
|
|
fun:dfsan_set_write_callback=uninstrumented
|
|
|
|
fun:dfsan_set_write_callback=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
|
2013-11-19 14:33:13 +08:00
|
|
|
###############################################################################
|
|
|
|
# glibc
|
|
|
|
###############################################################################
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:malloc=discard
|
|
|
|
fun:realloc=discard
|
|
|
|
fun:free=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
# Functions that return a value that depends on the input, but the output might
|
|
|
|
# not be necessarily data-dependent on the input.
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:isalpha=functional
|
|
|
|
fun:isdigit=functional
|
|
|
|
fun:isprint=functional
|
|
|
|
fun:isxdigit=functional
|
|
|
|
fun:isalnum=functional
|
|
|
|
fun:ispunct=functional
|
|
|
|
fun:isspace=functional
|
|
|
|
fun:tolower=functional
|
|
|
|
fun:toupper=functional
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
# Functions that return a value that is data-dependent on the input.
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:btowc=functional
|
2013-09-13 09:38:56 +08:00
|
|
|
fun:exp=functional
|
|
|
|
fun:exp2=functional
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:fabs=functional
|
|
|
|
fun:finite=functional
|
|
|
|
fun:floor=functional
|
|
|
|
fun:fmod=functional
|
|
|
|
fun:isinf=functional
|
|
|
|
fun:isnan=functional
|
2013-09-13 09:38:56 +08:00
|
|
|
fun:log=functional
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:modf=functional
|
|
|
|
fun:pow=functional
|
|
|
|
fun:round=functional
|
2013-09-13 09:38:56 +08:00
|
|
|
fun:sqrt=functional
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:wctob=functional
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
# Functions that produce an output that does not depend on the input (shadow is
|
|
|
|
# zeroed automatically).
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:__assert_fail=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:__ctype_b_loc=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:__cxa_atexit=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:__errno_location=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:__newlocale=discard
|
|
|
|
fun:__sbrk=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:__sigsetjmp=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:__uselocale=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:__wctype_l=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:access=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:alarm=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:atexit=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:bind=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:chdir=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:close=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:closedir=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:connect=discard
|
|
|
|
fun:dladdr=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:dlclose=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:fclose=discard
|
|
|
|
fun:feof=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:ferror=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:fflush=discard
|
|
|
|
fun:fileno=discard
|
|
|
|
fun:fopen=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:fprintf=discard
|
|
|
|
fun:fputc=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:fputc=discard
|
|
|
|
fun:fputs=discard
|
|
|
|
fun:fputs=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:fseek=discard
|
|
|
|
fun:ftell=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:fwrite=discard
|
|
|
|
fun:getenv=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:getuid=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:geteuid=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:getpagesize=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:getpid=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:kill=discard
|
|
|
|
fun:listen=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:lseek=discard
|
|
|
|
fun:mkdir=discard
|
|
|
|
fun:mmap=discard
|
|
|
|
fun:munmap=discard
|
|
|
|
fun:open=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:pipe=discard
|
|
|
|
fun:posix_fadvise=discard
|
|
|
|
fun:posix_memalign=discard
|
|
|
|
fun:prctl=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:printf=discard
|
|
|
|
fun:pthread_sigmask=discard
|
|
|
|
fun:putc=discard
|
|
|
|
fun:putchar=discard
|
|
|
|
fun:puts=discard
|
|
|
|
fun:rand=discard
|
|
|
|
fun:random=discard
|
|
|
|
fun:remove=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:sched_getcpu=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:sched_get_priority_max=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:sched_setaffinity=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:sched_yield=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:sem_destroy=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:sem_init=discard
|
|
|
|
fun:sem_post=discard
|
|
|
|
fun:sem_wait=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:send=discard
|
|
|
|
fun:sendmsg=discard
|
|
|
|
fun:sendto=discard
|
|
|
|
fun:setsockopt=discard
|
|
|
|
fun:shutdown=discard
|
2013-09-13 09:38:56 +08:00
|
|
|
fun:sleep=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:socket=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:strerror=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:strspn=discard
|
|
|
|
fun:strcspn=discard
|
|
|
|
fun:symlink=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:syscall=discard
|
2013-12-05 00:53:10 +08:00
|
|
|
fun:unlink=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:uselocale=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
|
2013-11-19 14:33:13 +08:00
|
|
|
# Functions that produce output does not depend on the input (need to zero the
|
|
|
|
# shadow manually).
|
|
|
|
fun:calloc=custom
|
|
|
|
fun:clock_gettime=custom
|
|
|
|
fun:dlopen=custom
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:fgets=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:fstat=custom
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:getcwd=custom
|
|
|
|
fun:get_current_dir_name=custom
|
|
|
|
fun:gethostname=custom
|
|
|
|
fun:getrlimit=custom
|
|
|
|
fun:getrusage=custom
|
2013-12-19 03:25:34 +08:00
|
|
|
fun:nanosleep=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:pread=custom
|
|
|
|
fun:read=custom
|
2013-12-19 03:25:34 +08:00
|
|
|
fun:socketpair=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:stat=custom
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:time=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
# Functions that produce an output that depend on the input (propagate the
|
|
|
|
# shadow manually).
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:ctime_r=custom
|
|
|
|
fun:inet_pton=custom
|
|
|
|
fun:localtime_r=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:memcpy=custom
|
|
|
|
fun:memset=custom
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:strcpy=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:strdup=custom
|
|
|
|
fun:strncpy=custom
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:strtod=custom
|
|
|
|
fun:strtol=custom
|
|
|
|
fun:strtoll=custom
|
|
|
|
fun:strtoul=custom
|
|
|
|
fun:strtoull=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
# Functions that produce an output that is computed from the input, but is not
|
|
|
|
# necessarily data dependent.
|
2013-12-19 03:25:34 +08:00
|
|
|
fun:memchr=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:memcmp=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:strcasecmp=custom
|
|
|
|
fun:strchr=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:strcmp=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
fun:strlen=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
fun:strncasecmp=custom
|
|
|
|
fun:strncmp=custom
|
2013-12-19 03:25:34 +08:00
|
|
|
fun:strrchr=custom
|
|
|
|
fun:strstr=custom
|
2013-11-19 14:33:13 +08:00
|
|
|
|
2014-04-25 01:42:16 +08:00
|
|
|
# Functions which take action based on global state, such as running a callback
|
|
|
|
# set by a sepperate function.
|
|
|
|
fun:write=custom
|
|
|
|
|
2013-11-19 14:33:13 +08:00
|
|
|
# Functions that take a callback (wrap the callback manually).
|
2013-08-29 04:18:25 +08:00
|
|
|
fun:dl_iterate_phdr=custom
|
2013-08-16 05:18:53 +08:00
|
|
|
|
2013-11-26 19:45:58 +08:00
|
|
|
fun:getpwuid_r=custom
|
|
|
|
fun:poll=custom
|
|
|
|
fun:sched_getaffinity=custom
|
|
|
|
fun:select=custom
|
|
|
|
fun:sigemptyset=custom
|
|
|
|
fun:sigaction=custom
|
|
|
|
fun:gettimeofday=custom
|
|
|
|
|
2014-10-08 18:01:42 +08:00
|
|
|
# sprintf-like
|
|
|
|
fun:sprintf=custom
|
|
|
|
fun:snprintf=custom
|
|
|
|
|
2013-08-16 05:18:53 +08:00
|
|
|
# TODO: custom
|
|
|
|
fun:asprintf=discard
|
|
|
|
fun:qsort=discard
|
2013-11-19 14:33:13 +08:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# pthread
|
|
|
|
###############################################################################
|
|
|
|
fun:pthread_equal=discard
|
|
|
|
fun:pthread_getspecific=discard
|
|
|
|
fun:pthread_key_create=discard
|
|
|
|
fun:pthread_key_delete=discard
|
|
|
|
fun:pthread_mutex_destroy=discard
|
|
|
|
fun:pthread_mutex_init=discard
|
|
|
|
fun:pthread_mutex_lock=discard
|
|
|
|
fun:pthread_mutex_trylock=discard
|
|
|
|
fun:pthread_mutex_unlock=discard
|
|
|
|
fun:pthread_mutexattr_destroy=discard
|
|
|
|
fun:pthread_mutexattr_init=discard
|
|
|
|
fun:pthread_mutexattr_settype=discard
|
|
|
|
fun:pthread_once=discard
|
|
|
|
fun:pthread_self=discard
|
|
|
|
fun:pthread_setspecific=discard
|
|
|
|
|
|
|
|
# Functions that take a callback (wrap the callback manually).
|
|
|
|
fun:pthread_create=custom
|
2014-11-06 01:21:08 +08:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# libffi/libgo
|
|
|
|
###############################################################################
|
|
|
|
# Functions that are written in asm or are called from asm.
|
|
|
|
fun:ffi_call_unix64=uninstrumented
|
|
|
|
fun:ffi_call_unix64=discard
|
|
|
|
fun:ffi_closure_unix64_inner=uninstrumented
|
|
|
|
fun:ffi_closure_unix64_inner=discard
|
|
|
|
fun:ffi_closure_unix64=uninstrumented
|
|
|
|
fun:ffi_closure_unix64=discard
|
|
|
|
fun:__go_get_closure=uninstrumented
|
|
|
|
fun:__go_get_closure=discard
|
|
|
|
fun:__go_makefunc_can_recover=uninstrumented
|
|
|
|
fun:__go_makefunc_can_recover=discard
|
|
|
|
fun:__go_makefunc_returning=uninstrumented
|
|
|
|
fun:__go_makefunc_returning=discard
|
|
|
|
fun:reflect.MakeFuncStubGo=uninstrumented
|
|
|
|
fun:reflect.MakeFuncStubGo=discard
|
|
|
|
fun:reflect.makeFuncStub=uninstrumented
|
|
|
|
fun:reflect.makeFuncStub=discard
|
2015-05-07 06:41:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# lib/Fuzzer
|
|
|
|
###############################################################################
|
|
|
|
# Replaces __sanitizer_cov_trace_cmp with __dfsw___sanitizer_cov_trace_cmp
|
|
|
|
fun:__sanitizer_cov_trace_cmp=custom
|
|
|
|
fun:__sanitizer_cov_trace_cmp=uninstrumented
|
2016-08-18 09:23:27 +08:00
|
|
|
fun:__sanitizer_cov_trace_cmp1=custom
|
|
|
|
fun:__sanitizer_cov_trace_cmp1=uninstrumented
|
|
|
|
fun:__sanitizer_cov_trace_cmp2=custom
|
|
|
|
fun:__sanitizer_cov_trace_cmp2=uninstrumented
|
|
|
|
fun:__sanitizer_cov_trace_cmp4=custom
|
|
|
|
fun:__sanitizer_cov_trace_cmp4=uninstrumented
|
|
|
|
fun:__sanitizer_cov_trace_cmp8=custom
|
|
|
|
fun:__sanitizer_cov_trace_cmp8=uninstrumented
|
2015-07-31 09:07:12 +08:00
|
|
|
# Similar for __sanitizer_cov_trace_switch
|
|
|
|
fun:__sanitizer_cov_trace_switch=custom
|
|
|
|
fun:__sanitizer_cov_trace_switch=uninstrumented
|
2015-05-07 06:41:34 +08:00
|
|
|
|
2015-05-23 09:56:39 +08:00
|
|
|
# Ignores all other __sanitizer callbacks.
|
2015-07-28 08:57:07 +08:00
|
|
|
fun:__sanitizer_cov=uninstrumented
|
|
|
|
fun:__sanitizer_cov=discard
|
|
|
|
fun:__sanitizer_cov_module_init=uninstrumented
|
|
|
|
fun:__sanitizer_cov_module_init=discard
|
|
|
|
fun:__sanitizer_cov_with_check=uninstrumented
|
|
|
|
fun:__sanitizer_cov_with_check=discard
|
2015-08-06 02:20:15 +08:00
|
|
|
fun:__sanitizer_set_death_callback=uninstrumented
|
|
|
|
fun:__sanitizer_set_death_callback=discard
|
|
|
|
fun:__sanitizer_update_counter_bitset_and_clear_counters=uninstrumented
|
|
|
|
fun:__sanitizer_update_counter_bitset_and_clear_counters=discard
|
|
|
|
|
|
|
|
# Ignores the dfsan wrappers.
|
|
|
|
fun:__dfsw_*=uninstrumented
|
|
|
|
fun:__dfsw_*=discard
|
2015-05-07 06:41:34 +08:00
|
|
|
|
|
|
|
# Don't add extra parameters to the Fuzzer callback.
|
|
|
|
fun:LLVMFuzzerTestOneInput=uninstrumented
|