Lines Matching +full:120 +full:- +full:db
25 # --- trap 0xc, rip = 0xffffffff80e04f35, rsp = 0xfffffe014fd0fbc0, rbp = 0xfffffe014fd0fc00 ---
33 # --- syscall (0, FreeBSD ELF64, nosys), rip = 0x8020e328a, rsp = 0x22f48, rbp = 0x22f70 ---
37 # db> x/s version
38 # version: FreeBSD 14.0-CURRENT #0 ufs-n251956-c3008785b91: Mon Dec 27 06:11:30 CET 2021
40 # db>
43 [ `id -u` -ne 0 ] && echo "Must be root!" && exit 1
48 // Reported-by: syzbot+93c75c4618b2a4f0f0ac@syzkaller.appspotmail.com
108 if (pthread_mutex_init(&ev->mu, 0))
110 if (pthread_cond_init(&ev->cv, 0))
112 ev->state = 0;
117 ev->state = 0;
122 pthread_mutex_lock(&ev->mu);
123 if (ev->state)
125 ev->state = 1;
126 pthread_mutex_unlock(&ev->mu);
127 pthread_cond_broadcast(&ev->cv);
132 pthread_mutex_lock(&ev->mu);
133 while (!ev->state)
134 pthread_cond_wait(&ev->cv, &ev->mu);
135 pthread_mutex_unlock(&ev->mu);
140 pthread_mutex_lock(&ev->mu);
141 int res = ev->state;
142 pthread_mutex_unlock(&ev->mu);
150 pthread_mutex_lock(&ev->mu);
152 if (ev->state)
154 uint64_t remain = timeout - (now - start);
158 pthread_cond_timedwait(&ev->cv, &ev->mu, &ts);
160 if (now - start > timeout)
163 int res = ev->state;
164 pthread_mutex_unlock(&ev->mu);
181 event_wait(&th->ready);
182 event_reset(&th->ready);
183 execute_call(th->call);
185 event_set(&th->done);
197 if (!th->created) {
198 th->created = 1;
199 event_init(&th->ready);
200 event_init(&th->done);
201 event_set(&th->done);
204 if (!event_isset(&th->done))
206 event_reset(&th->done);
207 th->call = call;
209 event_set(&th->ready);
210 event_timedwait(&th->done, 50);
226 if (res != -1)
268 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
274 set -e
275 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
276 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
277 mdconfig -a -t swap -s 5g -u $mdstart
278 newfs $newfs_flags -n md$mdstart > /dev/null
283 mycc -o $mntpoint/work/syzkaller49 -Wall -Wextra -O0 /tmp/syzkaller49.c -lpthread || exit 1
286 while [ $((`date +%s` - start)) -lt 120 ]; do
291 mount | grep -q "on $mntpoint " || break
293 [ $i -eq 6 ] &&
294 { echo FATAL; fstat -mf $mntpoint; exit 1; }
296 mdconfig -d -u $mdstart
298 rm -rf /tmp/syzkaller49.c