Home | History | Annotate | Download | only in Linux

Lines Matching refs:buf

22   char buf[1000] __attribute__((aligned(8)));
25 memset(buf, 0, sizeof(buf));
26 __msan_unpoison(buf, sizeof(buf));
27 __sanitizer_syscall_pre_recvmsg(0, buf, 0);
28 __sanitizer_syscall_pre_rt_sigpending(buf, kTen);
29 __sanitizer_syscall_pre_getdents(0, buf, kTen);
30 __sanitizer_syscall_pre_getdents64(0, buf, kTen);
32 __msan_unpoison(buf, sizeof(buf));
33 __sanitizer_syscall_post_recvmsg(0, 0, buf, 0);
34 __sanitizer_syscall_post_rt_sigpending(-1, buf, kTen);
35 __sanitizer_syscall_post_getdents(0, 0, buf, kTen);
36 __sanitizer_syscall_post_getdents64(0, 0, buf, kTen);
37 assert(__msan_test_shadow(buf, sizeof(buf)) == -1);
39 __msan_unpoison(buf, sizeof(buf));
40 __sanitizer_syscall_post_recvmsg(kTen, 0, buf, 0);
44 __msan_poison(buf, kTen + 1);
45 __sanitizer_syscall_post_rt_sigpending(0, buf, kTen);
46 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen);
48 __msan_poison(buf, kTen + 1);
49 __sanitizer_syscall_post_getdents(kTen, 0, buf, kTen);
50 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen);
52 __msan_poison(buf, kTen + 1);
53 __sanitizer_syscall_post_getdents64(kTen, 0, buf, kTen);
54 assert(__msan_test_shadow(buf, sizeof(buf)) == kTen);
56 __msan_poison(buf, sizeof(buf));
57 __sanitizer_syscall_post_clock_getres(0, 0, buf);
58 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(long) * 2);
60 __msan_poison(buf, sizeof(buf));
61 __sanitizer_syscall_post_clock_gettime(0, 0, buf);
62 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(long) * 2);
65 __msan_poison(buf, sizeof(buf));
66 __sanitizer_syscall_post_clock_gettime(-1, 0, buf);
67 assert(__msan_test_shadow(buf, sizeof(buf)) == 0);
69 __msan_poison(buf, sizeof(buf));
70 __sanitizer_syscall_post_read(5, 42, buf, 10);
71 assert(__msan_test_shadow(buf, sizeof(buf)) == 5);
73 __msan_poison(buf, sizeof(buf));
74 __sanitizer_syscall_post_newfstatat(0, 5, "/path/to/file", buf, 0);
75 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(struct stat));
77 __msan_poison(buf, sizeof(buf));
79 __sanitizer_syscall_post_mq_timedreceive(kFortyTwo, 5, buf, sizeof(buf), &prio, 0);
80 assert(__msan_test_shadow(buf, sizeof(buf)) == kFortyTwo);
83 __msan_poison(buf, sizeof(buf));
84 __sanitizer_syscall_post_ptrace(0, PTRACE_PEEKUSER, kFortyTwo, 0xABCD, buf);
85 assert(__msan_test_shadow(buf, sizeof(buf)) == sizeof(void *));
87 __msan_poison(buf, sizeof(buf));
92 iocb[0].aio_buf = (__u64)buf;
95 iocb[1].aio_buf = (__u64)(&buf[20]);
97 struct iovec vec[2] = { {&buf[40], 3}, {&buf[50], 20} };
102 assert(__msan_test_shadow(buf, sizeof(buf)) == 10);
103 assert(__msan_test_shadow(buf + 20, sizeof(buf) - 20) == 15);
104 assert(__msan_test_shadow(buf + 40, sizeof(buf) - 40) == 3);
105 assert(__msan_test_shadow(buf + 50, sizeof(buf) - 50) == 20);
107 __msan_poison(buf, sizeof(buf));
108 char *p = buf;
112 assert(__msan_test_shadow(buf, sizeof(buf)) >= 32);
114 __msan_poison(buf, sizeof(buf));
115 __sanitizer_syscall_post_pipe(0, (int *)buf);
116 assert(__msan_test_shadow(buf, sizeof(buf)) == 2 * sizeof(int));
118 __msan_poison(buf, sizeof(buf));
119 __sanitizer_syscall_post_pipe2(0, (int *)buf, 0);
120 assert(__msan_test_shadow(buf, sizeof(buf)) == 2 * sizeof(int));
122 __msan_poison(buf, sizeof(buf));
123 __sanitizer_syscall_post_socketpair(0, 0, 0, 0, (int *)buf);
124 assert(__msan_test_shadow(buf, sizeof(buf)) == 2 * sizeof(int));