|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
projects/compiler-rt/lib/msan/msan_interface_internal.h 68 void __msan_unpoison(const void *a, uptr size);
References
projects/compiler-rt/lib/msan/msan.cpp 546 __msan_unpoison(dst, size);
projects/compiler-rt/lib/msan/msan_allocator.cpp 34 __msan_unpoison((void *)p, size);
projects/compiler-rt/lib/msan/msan_interceptors.cpp 138 __msan_unpoison(ptr, res *size);
161 __msan_unpoison(dest, sz);
174 __msan_unpoison(memptr, sizeof(*memptr));
260 __msan_unpoison(sret, sizeof(*sret));
303 __msan_unpoison(dest + copy_size, n - copy_size);
354 __msan_unpoison(buf, n + 1);
382 __msan_unpoison(dest + dest_size + copy_size, 1); // \0
475 __msan_unpoison(str, 4 * (res + 1));
542 if (res != -1 && dest) __msan_unpoison(dest, sizeof(wchar_t));
550 if (res != (SIZE_T)-1 && dest) __msan_unpoison(dest, sizeof(wchar_t));
580 __msan_unpoison(s, n * sizeof(wchar_t));
602 __msan_unpoison(tv, 16);
604 __msan_unpoison(tz, 8);
612 __msan_unpoison(b, sizeof(*b));
613 __msan_unpoison(c, sizeof(*c));
614 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1);
627 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1);
636 __msan_unpoison(envp, sizeof(*envp));
637 __msan_unpoison(*envp, REAL(strlen)(*envp) + 1);
640 __msan_unpoison(envp, sizeof(*envp));
676 __msan_unpoison(buf, __sanitizer::struct_stat_sz);
689 __msan_unpoison(buf, __sanitizer::struct_stat64_sz);
710 if (!res) __msan_unpoison(buf, __sanitizer::struct_stat_sz);
721 if (!res) __msan_unpoison(buf, __sanitizer::struct_stat64_sz);
735 __msan_unpoison(pipefd, sizeof(int[2]));
743 __msan_unpoison(pipefd, sizeof(int[2]));
751 __msan_unpoison(sv, sizeof(int[2]));
760 __msan_unpoison(s, REAL(strlen)(s) + 1);
790 if (!res) __msan_unpoison(rlim, __sanitizer::struct_rlimit64_sz);
801 if (!res) __msan_unpoison(old_rlimit, __sanitizer::struct_rlimit_sz);
812 if (!res) __msan_unpoison(old_rlimit, __sanitizer::struct_rlimit64_sz);
845 __msan_unpoison(utsname, __sanitizer::struct_utsname_sz);
858 __msan_unpoison(name, real_len);
869 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res);
884 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res);
965 if (res != (void *)-1) __msan_unpoison(res, RoundUpTo(length, GetPageSize()));
973 __msan_unpoison(usage, __sanitizer::struct_rusage_sz);
1012 __msan_unpoison(si, sizeof(__sanitizer_sigaction));
1013 __msan_unpoison(uc, __sanitizer::ucontext_t_sz);
1057 __msan_unpoison(th, __sanitizer::pthread_t_sz);
1068 __msan_unpoison(key, sizeof(*key));
1081 __msan_unpoison(retval, sizeof(*retval));
1092 __msan_unpoison(tzname[0], REAL(strlen)(tzname[0]) + 1);
1094 __msan_unpoison(tzname[1], REAL(strlen)(tzname[1]) + 1);
1210 __msan_unpoison(aparent, sizeof(*aparent));
1211 __msan_unpoison(aworker, sizeof(*aworker));
1229 __msan_unpoison(aparent, sizeof(*aparent));
1407 __msan_unpoison(oldact, sizeof(__sanitizer_sigaction));
1448 __msan_unpoison(info, sizeof(*info));
1450 __msan_unpoison(info->dli_fname, REAL(strlen)(info->dli_fname) + 1);
1452 __msan_unpoison(info->dli_sname, REAL(strlen)(info->dli_sname) + 1);
1461 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1);
1475 __msan_unpoison(info, size);
1477 __msan_unpoison(info->dlpi_phdr, struct_ElfW_Phdr_sz * info->dlpi_phnum);
1479 __msan_unpoison(info->dlpi_name, REAL(strlen)(info->dlpi_name) + 1);
1493 __msan_unpoison(p, ds.shm_segsz);
1533 __msan_unpoison(dest + copy_size, (n - copy_size) * sizeof(wchar_t));
1577 __msan_unpoison(s, n);
1593 __msan_unpoison(s, REAL(strlen)(s) + 1);
projects/compiler-rt/lib/msan/msan_thread.cpp 35 __msan_unpoison((void *)stack_bottom_, stack_top_ - stack_bottom_);
37 __msan_unpoison((void *)tls_begin_, tls_end_ - tls_begin_);
41 __msan_unpoison((void *)(dtls->dtv[i].beg), dtls->dtv[i].size);
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc 419 COMMON_INTERCEPTOR_INITIALIZE_RANGE(domain, REAL(strlen)(domain) + 1);
1318 COMMON_INTERCEPTOR_INITIALIZE_RANGE(tm->tm_zone,
2284 COMMON_INTERCEPTOR_INITIALIZE_RANGE(s, REAL(strlen)(s) + 1);
2290 COMMON_INTERCEPTOR_INITIALIZE_RANGE(s, REAL(strlen)(s) + 1);
2296 COMMON_INTERCEPTOR_INITIALIZE_RANGE(s, REAL(strlen)(s) + 1);
3687 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
3731 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
3769 COMMON_INTERCEPTOR_INITIALIZE_RANGE(dir, dir->d_reclen);
3776 COMMON_INTERCEPTOR_INITIALIZE_RANGE(a, sizeof(*a));
3777 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*a, (*a)->d_reclen);
3778 COMMON_INTERCEPTOR_INITIALIZE_RANGE(b, sizeof(*b));
3779 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*b, (*b)->d_reclen);
3822 COMMON_INTERCEPTOR_INITIALIZE_RANGE(dir, dir->d_reclen);
3829 COMMON_INTERCEPTOR_INITIALIZE_RANGE(a, sizeof(*a));
3830 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*a, (*a)->d_reclen);
3831 COMMON_INTERCEPTOR_INITIALIZE_RANGE(b, sizeof(*b));
3832 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*b, (*b)->d_reclen);
4401 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
4409 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, sizeof(*res));
4752 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
4783 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
4812 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
5176 COMMON_INTERCEPTOR_INITIALIZE_RANGE((void *)dtv->beg, dtv->size);
5770 COMMON_INTERCEPTOR_INITIALIZE_RANGE(fp, sizeof(*fp));
5777 COMMON_INTERCEPTOR_INITIALIZE_RANGE(fp->_IO_read_base,
5960 COMMON_INTERCEPTOR_INITIALIZE_RANGE(obstack, sizeof(*obstack));
5962 COMMON_INTERCEPTOR_INITIALIZE_RANGE(obstack->chunk,
5990 COMMON_INTERCEPTOR_INITIALIZE_RANGE(
6009 if (m) COMMON_INTERCEPTOR_INITIALIZE_RANGE(*m->addr, *m->size);
6026 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*m->addr, *m->size);
6070 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res)+1);
6170 COMMON_INTERCEPTOR_INITIALIZE_RANGE(offset, sizeof(*offset));
6367 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, REAL(strlen)(res) + 1);
6417 COMMON_INTERCEPTOR_INITIALIZE_RANGE(srcaddr,
6597 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmp_sz);
6605 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmp_sz);
6613 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmp_sz);
6630 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmpx_sz);
6638 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmpx_sz);
6646 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, __sanitizer::struct_utmpx_sz);
9289 COMMON_INTERCEPTOR_INITIALIZE_RANGE(*m->addr, *m->size);
9584 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
9602 COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc 137 POST_WRITE(iovec[i].iov_base, sz);
163 POST_WRITE(msg->msg_iov[i].iov_base, msg->msg_iov[i].iov_len);
165 POST_WRITE(msg->msg_control, msg->msg_controllen);
180 POST_WRITE(msg->msg_hdr.msg_iov[i].iov_base,
183 POST_WRITE(msg->msg_hdr.msg_control, msg->msg_hdr.msg_controllen);
184 POST_WRITE(&msg->msg_len, sizeof(msg->msg_len));
186 if (timeout) POST_WRITE(timeout, struct_timespec_sz);
198 POST_WRITE(buf, res);
206 if (tloc) POST_WRITE(tloc, sizeof(long));
214 if (tptr) POST_WRITE(tptr, sizeof(long));
222 if (tv) POST_WRITE(tv, timeval_sz);
223 if (tz) POST_WRITE(tz, struct_timezone_sz);
231 if (tv) POST_WRITE(tv, timeval_sz);
232 if (tz) POST_WRITE(tz, struct_timezone_sz);
241 if (txc_p) POST_WRITE(txc_p, struct_timex_sz);
250 if (tbuf) POST_WRITE(tbuf, struct_tms_sz);
262 if (rqtp) POST_WRITE(rqtp, struct_timespec_sz);
263 if (rmtp) POST_WRITE(rmtp, struct_timespec_sz);
299 if (ruid) POST_WRITE(ruid, sizeof(unsigned));
300 if (euid) POST_WRITE(euid, sizeof(unsigned));
301 if (suid) POST_WRITE(suid, sizeof(unsigned));
309 if (rgid) POST_WRITE(rgid, sizeof(unsigned));
310 if (egid) POST_WRITE(egid, sizeof(unsigned));
311 if (sgid) POST_WRITE(sgid, sizeof(unsigned));
332 if (grouplist) POST_WRITE(grouplist, res * sizeof(*grouplist));
377 if (grouplist) POST_WRITE(grouplist, gidsetsize * sizeof(*grouplist));
396 if (dataptr) POST_WRITE(dataptr, __user_cap_data_struct_sz);
414 if (set) POST_WRITE(set, old_sigset_t_sz);
422 if (set) POST_WRITE(set, old_sigset_t_sz);
423 if (oset) POST_WRITE(oset, old_sigset_t_sz);
431 if (value) POST_WRITE(value, struct_itimerval_sz);
439 if (value) POST_WRITE(value, struct_itimerval_sz);
440 if (ovalue) POST_WRITE(ovalue, struct_itimerval_sz);
450 if (timer_event_spec) POST_WRITE(timer_event_spec, struct_sigevent_sz);
451 if (created_timer_id) POST_WRITE(created_timer_id, sizeof(long));
459 if (setting) POST_WRITE(setting, struct_itimerspec_sz);
475 if (old_setting) POST_WRITE(old_setting, struct_itimerspec_sz);
493 if (tp) POST_WRITE(tp, struct_timespec_sz);
502 if (tx) POST_WRITE(tx, struct_timex_sz);
511 if (tp) POST_WRITE(tp, struct_timespec_sz);
523 if (rmtp) POST_WRITE(rmtp, struct_timespec_sz);
535 if (param) POST_WRITE(param, struct_sched_param_sz);
553 if (param) POST_WRITE(param, struct_sched_param_sz);
569 if (user_mask_ptr) POST_WRITE(user_mask_ptr, len);
589 if (interval) POST_WRITE(interval, struct_timespec_sz);
619 if (segments) POST_WRITE(segments, struct_kexec_segment_sz);
636 if (stat_addr) POST_WRITE(stat_addr, sizeof(int));
637 if (ru) POST_WRITE(ru, struct_rusage_sz);
647 if (infop) POST_WRITE(infop, siginfo_t_sz);
648 if (ru) POST_WRITE(ru, struct_rusage_sz);
656 if (stat_addr) POST_WRITE(stat_addr, sizeof(int));
664 if (tidptr) POST_WRITE(tidptr, sizeof(int));
688 if (set) POST_WRITE(set, sigsetsize);
689 if (oset) POST_WRITE(oset, sigsetsize);
697 if (set) POST_WRITE(set, sigsetsize);
710 if (uinfo) POST_WRITE(uinfo, siginfo_t_sz);
719 if (uinfo) POST_WRITE(uinfo, siginfo_t_sz);
739 if (uinfo) POST_WRITE(uinfo, siginfo_t_sz);
782 POST_WRITE(dev_name,
785 POST_WRITE(dir_name,
788 POST_WRITE(type, __sanitizer::internal_strlen((const char *)type) + 1);
797 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
806 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
829 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz);
841 if (buf) POST_WRITE(buf, struct_statfs_sz);
852 if (buf) POST_WRITE(buf, struct_statfs64_sz);
860 if (buf) POST_WRITE(buf, struct_statfs_sz);
868 if (buf) POST_WRITE(buf, struct_statfs64_sz);
881 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz);
889 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz);
901 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat_sz);
913 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat_sz);
921 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat_sz);
930 if (ubuf) POST_WRITE(ubuf, struct_ustat_sz);
943 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat64_sz);
951 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat64_sz);
963 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat64_sz);
1012 if (value) POST_WRITE(value, res);
1027 if (value) POST_WRITE(value, res);
1039 if (value) POST_WRITE(value, res);
1050 if (list) POST_WRITE(list, res);
1061 if (list) POST_WRITE(list, res);
1069 if (list) POST_WRITE(list, res);
1151 POST_WRITE(vec, (len + GetPageSizeCached() - 1) / GetPageSizeCached());
1240 if (fildes) POST_WRITE(fildes, sizeof(int) * 2);
1247 if (fildes) POST_WRITE(fildes, sizeof(int) * 2);
1280 if (ctx) POST_WRITE(ctx, sizeof(*ctx));
1284 if (*ctx) POST_WRITE(*ctx, 32);
1300 if (ioevpp) POST_WRITE(ioevpp, res * sizeof(*ioevpp));
1301 if (timeout) POST_WRITE(timeout, struct_timespec_sz);
1324 POST_WRITE(buf, len);
1332 POST_WRITE(iovec[v].iov_base, iovec[v].iov_len);
1352 POST_WRITE(result, sizeof(*result));
1355 POST_WRITE(iocb, sizeof(*iocb));
1364 if (offset) POST_WRITE(offset, sizeof(*offset));
1373 if (offset) POST_WRITE(offset, sizeof(*offset));
1385 POST_WRITE(buf, __sanitizer::internal_strlen((const char *)buf) + 1);
1560 POST_WRITE(filename,
1562 if (times) POST_WRITE(times, struct_utimbuf_sz);
1571 POST_WRITE(filename,
1573 if (utimes) POST_WRITE(utimes, timeval_sz);
1587 if (result) POST_WRITE(result, sizeof(long long));
1620 if (buf) POST_WRITE(buf, res);
1674 POST_WRITE(buf, __sanitizer::internal_strlen((const char *)buf) + 1);
1711 POST_WRITE(buf, __sanitizer::internal_strlen((const char *)buf) + 1);
1727 if (dirent) POST_WRITE(dirent, res);
1735 if (dirent) POST_WRITE(dirent, res);
1746 POST_WRITE(optval,
1758 POST_WRITE(optval,
1760 if (optlen) POST_WRITE(optlen, sizeof(int));
1769 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1778 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1787 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1788 if (arg2) POST_WRITE(arg2, sizeof(unsigned));
1798 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1799 if (arg2) POST_WRITE(arg2, sizeof(unsigned));
1809 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1810 if (arg2) POST_WRITE(arg2, sizeof(unsigned));
1820 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
1821 if (arg2) POST_WRITE(arg2, sizeof(unsigned));
1840 if (arg4) POST_WRITE(arg4, sizeof(*arg4));
1860 if (buf) POST_WRITE(buf, res);
1870 if (buf) POST_WRITE(buf, res);
1871 if (arg4) POST_WRITE(arg4, sizeof(*arg4));
1872 if (arg5) POST_WRITE(arg5, sizeof(int));
1884 if (sv) POST_WRITE(sv, sizeof(int) * 2);
1891 if (args) POST_WRITE(args, sizeof(long));
1904 if (ufds) POST_WRITE(ufds, nfds * sizeof(*ufds));
1916 if (inp) POST_WRITE(inp, sizeof(*inp));
1917 if (outp) POST_WRITE(outp, sizeof(*outp));
1918 if (exp) POST_WRITE(exp, sizeof(*exp));
1919 if (tvp) POST_WRITE(tvp, timeval_sz);
1939 if (event) POST_WRITE(event, struct_epoll_event_sz);
1949 if (events) POST_WRITE(events, struct_epoll_event_sz);
1961 if (events) POST_WRITE(events, struct_epoll_event_sz);
1970 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
1979 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
1988 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
1996 if (name) POST_WRITE(name, struct_new_utsname_sz);
2004 if (arg0) POST_WRITE(arg0, struct_old_utsname_sz);
2012 if (arg0) POST_WRITE(arg0, struct_oldold_utsname_sz);
2020 if (rlim) POST_WRITE(rlim, struct_rlimit_sz);
2028 if (rlim) POST_WRITE(rlim, struct_rlimit_sz);
2036 if (rlim) POST_WRITE(rlim, struct_rlimit_sz);
2049 if (old_rlim) POST_WRITE(old_rlim, struct_rlimit64_sz);
2058 if (ru) POST_WRITE(ru, struct_rusage_sz);
2083 if (msgp) POST_WRITE(msgp, res);
2092 if (buf) POST_WRITE(buf, struct_msqid_ds_sz);
2122 POST_WRITE(shmaddr,
2136 POST_WRITE(shmaddr,
2152 if (buf) POST_WRITE(buf, sizeof(__sanitizer_shmid_ds));
2164 if (attr) POST_WRITE(attr, struct_mq_attr_sz);
2193 if (msg_ptr) POST_WRITE(msg_ptr, res);
2194 if (msg_prio) POST_WRITE(msg_prio, sizeof(*msg_prio));
2211 if (omqstat) POST_WRITE(omqstat, struct_mq_attr_sz);
2258 POST_WRITE(args->oldlenp, sizeof(*args->oldlenp));
2259 POST_WRITE(args->oldval, *args->oldlenp);
2268 if (info) POST_WRITE(info, struct_sysinfo_sz);
2281 POST_WRITE(buf, __sanitizer::internal_strlen((const char *)buf) + 1);
2326 POST_WRITE((void *)data, struct_user_regs_struct_sz);
2328 POST_WRITE((void *)data, struct_user_fpregs_struct_sz);
2330 POST_WRITE((void *)data, struct_user_fpxregs_struct_sz);
2332 POST_WRITE((void *)data, siginfo_t_sz);
2335 POST_WRITE(iov->iov_base, iov->iov_len);
2338 POST_WRITE((void *)data, sizeof(void *));
2388 if (nmask) POST_WRITE(nmask, sizeof(long));
2410 if (status) POST_WRITE(status, nr_pages * sizeof(*status));
2420 if (nmask) POST_WRITE(nmask, sizeof(long));
2430 if (policy) POST_WRITE(policy, sizeof(int));
2431 if (nmask) POST_WRITE(nmask, sizeof(long));
2459 if (unpc) POST_WRITE(unpc, sizeof(*unpc));
2460 if (ustatus) POST_WRITE(ustatus, sizeof(*ustatus));
2538 if (utimes) POST_WRITE(utimes, timeval_sz);
2587 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat_sz);
2601 if (statbuf) POST_WRITE(statbuf, struct_kernel_stat64_sz);
2614 POST_WRITE(buf, __sanitizer::internal_strlen((const char *)buf) + 1);
2628 if (utimes) POST_WRITE(utimes, struct_timespec_sz);
2642 if (off_in) POST_WRITE(off_in, sizeof(long long));
2643 if (off_out) POST_WRITE(off_out, sizeof(long long));
2674 if (cpu) POST_WRITE(cpu, sizeof(unsigned));
2675 if (node) POST_WRITE(node, sizeof(unsigned));
2685 if (user_mask) POST_WRITE(user_mask, sizemask);
2694 if (user_mask) POST_WRITE(user_mask, sizemask);
2710 if (otmr) POST_WRITE(otmr, struct_itimerspec_sz);
2718 if (otmr) POST_WRITE(otmr, struct_itimerspec_sz);
2746 if (arg1) POST_WRITE(arg1, sizeof(*arg1));
2747 if (arg2) POST_WRITE(arg2, sizeof(*arg2));
2748 if (arg3) POST_WRITE(arg3, sizeof(*arg3));
2749 if (arg4) POST_WRITE(arg4, struct_timespec_sz);
2761 if (arg0) POST_WRITE(arg0, sizeof(*arg0));
2762 if (arg2) POST_WRITE(arg2, struct_timespec_sz);
2855 if (res >= 0 && oldact) POST_WRITE(oldact, sizeof(*oldact));
2873 POST_WRITE(oldact, oldact_sz);
2885 POST_WRITE(buf, res);