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
|
|
|
|
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
|
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
|
|
|
|
fun:write=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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2013-08-16 05:18:53 +08:00
|
|
|
# TODO: custom
|
|
|
|
fun:snprintf=discard
|
2013-09-13 09:38:56 +08:00
|
|
|
fun:vsnprintf=discard
|
2013-08-16 05:18:53 +08:00
|
|
|
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
|