// https://syzkaller.appspot.com/bug?id=dc0f85f2a5405b2291d61299d25bf5ff7d24caa0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 2; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } void execute_call(int call) { switch (call) { case 0: memcpy((void*)0x20000000, "nilfs2\000", 7); memcpy((void*)0x20000040, "./file0\000", 8); *(uint8_t*)0x20001bc0 = 0; sprintf((char*)0x20001bc1, "%020llu", (long long)-1); memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\x4d\x8c\x1b\x57\xe1\x00\xf0\x67\xef\x7a\x93\x4d\xd2" "\x7f\x9c\xfe\x13\xba\x24\xa1\x4d\xf9\x68\xcb\x47\x77\x9b\xcd\x12\x3e" "\x22\x68\xaa\xe6\x42\xd4\x54\x5c\x50\xa5\x8a\x4b\x94\xa6\x25\x22\x0d" "\x88\x54\x82\x56\x95\x48\x72\xe2\x46\xab\x2a\x5c\xa1\x88\x53\x39\x54" "\x80\x90\xda\x0b\x8a\x7a\xe2\x52\x89\x46\xe2\xd2\x53\xe1\xc0\x81\x28" "\x48\x95\x38\x40\x21\x31\x5a\xfb\x3d\xef\xf8\xad\x9d\xb1\x37\x9b\xb5" "\xbd\xfe\xfd\xa4\xb7\xcf\x6f\xde\xd8\xef\xcd\xec\xcc\x78\x3c\x33\xef" "\xbd\x00\x4c\xac\x6a\xf3\xef\xd2\xd2\x5c\x25\x84\xcb\x6f\xbf\x76\xec" "\xef\x0f\xfc\x6d\x76\x79\xca\xa3\xed\x39\xea\xcd\xbf\xd3\x85\x54\x2d" "\x84\x50\x89\xe9\xe9\xec\xf3\x3e\x98\x6a\xc5\x37\x3e\x7c\xf9\x54\xb7" "\xb8\x12\x16\x9b\x7f\x53\x3a\x3c\x79\xbd\xfd\xde\xed\x21\x84\x0b\xe1" "\x40\xb8\x12\xea\x61\xef\xe5\xab\xaf\xbe\xbb\xf8\xc4\x89\x8b\xc7\x2f" "\xdd\xff\xde\x1b\x47\xae\xdd\x99\xa5\x07\x00\x80\xc9\xf2\xcd\x2b\x47" "\x96\xf6\xfc\xe5\x4f\xfb\x76\x7d\xf4\xe6\xbd\x47\xc3\x96\xf6\xf4\x74" "\x7e\x5e\x8f\xe9\x1d\xf1\xbc\xff\x68\x3c\xf1\x4f\xe7\xff\xd5\xd0\x99" "\xae\x14\x42\xd1\x4c\x36\xdf\x74\x0c\xd5\x6c\xbe\xa9\x2e\xf3\x15\xcb" "\xa9\x65\xf3\x4d\xf7\x28\x7f\x26\xfb\xdc\x5a\x3b\x7f\x5f\xc7\x7c\x5b" "\x4a\xca\x9f\x2a\x4c\xeb\xb6\xdc\x30\xce\xd2\x76\x5c\x0f\x95\xea\x7c" "\x47\xba\x5a\x9d\x9f\x6f\xfd\x26\x0f\xcd\xdf\xf5\x33\x95\xf9\x73\x67" "\xce\x3e\x7b\x7e\x48\x15\x05\xd6\xdd\x3f\xef\x0b\x21\x1c\xe8\x1d\xbe" "\x75\x8b\xbc\x49\x0e\x8d\x46\xe3\xc7\xcd\x15\x38\x02\x75\x11\x84\xb5" "\x86\xc6\xce\x61\x1f\x81\x00\x5a\xf2\xfb\x85\xab\x5c\xc8\xaf\x2c\xdc" "\x9e\xf6\xa7\x4d\xf7\x57\xfe\xf5\xc7\xaa\xdd\xdf\x0f\xeb\x60\xa3\xb7" "\x7f\xe5\x8f\x57\xf9\xbf\xba\xe8\x88\xc3\xfa\xd9\xac\x5b\x53\x5a\xae" "\xb4\x1f\xed\x88\xe9\xfc\x3e\x42\xfe\xfc\xd2\xa0\xfb\x7f\xfa\xbc\xfc" "\x7e\x44\xad\xcf\x7a\xf6\xba\x8f\x30\x2e\xf7\x17\x7a\xd5\x73\x6a\x83" "\xeb\xb1\x56\xbd\xea\x9f\x6f\x17\x9b\xd5\xd7\x62\x9c\xd6\xc3\xd7\xb3" "\xfc\xe2\xfe\x93\xff\x4f\xc7\xe5\x7f\x0c\x74\xf7\xaf\x92\xeb\xff\xeb" "\x16\x5e\x9f\x1d\xfa\xb5\xce\xe5\x70\x60\x04\xea\xb0\xa9\x43\x6d\x04" "\xea\x20\xf4\x1d\x1a\xc3\x3e\x00\x01\x23\x6b\xe5\xb9\xb9\x96\x46\x94" "\xf2\xf3\xe7\xfa\xf2\xfc\x2d\x25\xf9\x5b\x4b\xf2\x67\x4b\xf2\xb7\x95" "\xe4\x6f\x2f\xc9\x87\x49\xf6\xbb\x17\x7e\x1a\x5e\xa9\xac\xfc\xce\xcf" "\x7f\xd3\x0f\x7a\x3d\x2c\x5d\x67\xbb\x2b\xc6\xff\x37\x60\x7d\xf2\xeb" "\x91\x83\x96\x9f\x3f\xf7\x3b\xa8\xd6\xa7\xad\x7e\x0e\xba\xdf\xf2\xf3" "\xe7\x89\x61\x94\xbd\x75\xf2\xa9\xd3\x5f\x7e\xe6\xe9\xab\xad\xe7\xff" "\x2b\xed\xfd\xef\x66\xdc\xde\x0f\xc4\x74\x3d\xee\x5b\x57\xe2\x0c\xe9" "\x7a\x61\x7e\x5d\xbd\xfd\xec\x7f\xbd\xb3\x9c\x6a\x8f\xf9\xee\xce\xea" "\x73\xd7\xaa\xf9\x1b\xad\x12\x77\x77\xce\x57\xd9\xbd\xf2\x39\xa1\x70" "\x9c\x59\x55\x8f\xb9\xce\xf7\xed\xec\x35\xdf\xfe\xce\xf9\xea\xd9\x7c" "\xb3\x31\x6c\xcd\xea\x9b\x9f\x9f\x6c\xcb\xde\x97\xce\x3f\xd2\x71\x35" "\xad\xaf\xe9\x6c\x79\x6b\xd9\x72\xcc\x64\xf5\x48\xc7\x95\x5d\x31\xce" "\xeb\x01\x6b\x91\xb6\xc7\x5e\xcf\xff\xa7\xed\x73\x2e\xd4\x2a\xcf\x9e" "\x39\x7b\xfa\x91\x98\x4e\xdb\xe9\x1f\xa7\x6a\x5b\x96\xa7\x1f\x2c\x7e" "\xe8\xaf\xbb\x16\x35\x7f\x27\xea\x0f\xac\x5d\xbf\xed\x7f\xe6\x42\x67" "\xfb\x9f\x1d\xed\xe9\xb5\x6a\xf1\xb8\xb0\x73\x65\x7a\xa5\x78\x5c\xa8" "\x67\xd3\x17\x5b\xc9\xf6\x6d\xf2\x34\xfd\x50\x4c\xa7\xef\xb9\xef\x4c" "\xcd\x36\xa7\xcf\x9f\xfa\xde\xd9\x67\xd6\x7b\xe1\x61\xc2\x9d\x7f\xf1" "\xa5\xef\x9e\x3c\x7b\xf6\xf4\x0f\xbc\x48\x2f\x66\x87\xbe\x5a\x66\x86" "\xbf\x12\x3a\x5f\x2c\xff\xbc\x19\x81\x6a\x78\xb1\x81\x2f\xca\x8e\x1c" "\x9b\xf5\xc9\x41\x98\x1c\x0b\x2f\x3c\xff\xfd\x85\xf3\x2f\xbe\xf4\xf0" "\x99\xe7\x4f\x3e\x77\xfa\xb9\xd3\xe7\x0e\x1d\x3e\x7c\x68\x71\xf1\xf0" "\x57\x0e\x2d\x2d\x34\xcf\xeb\x17\x8a\x67\xf7\xc0\x66\x52\x38\xc7\x03" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\xc4\x0f\x8f\x1f\xbb\xfa\xe7" "\x77\xbe\xf4\x7e\xab\xfd\xff\x4a\xfb\xbf\xd4\xfe\x3f\x3d\xf9\x9b\xda" "\xff\xff\x24\x6b\xff\x9f\xb7\x93\x4f\xad\x02\x52\x3b\xc0\x5d\x5d\xf2" "\x9b\xe3\xee\xbd\xd5\x59\x8f\x99\x6c\xbe\x5a\x0c\xff\x9f\xd5\x77\x77" "\x56\xce\x9e\xec\x7d\x1f\x8b\x71\x7b\x1c\xbf\xd8\xfe\x3f\xb5\xb7\xcf" "\xfb\x75\x4d\xf5\xb9\x27\x9b\x9e\xf7\xdf\x9b\xe6\xcb\xba\x13\x58\xd5" "\x5f\xca\x4c\xd6\x07\x49\x7b\xbc\xc0\xd8\x60\xff\x93\x31\x7d\x29\xc6" "\xbf\x0c\x30\x44\x95\xd9\xee\x93\x63\x5c\xd6\xbf\x75\xda\xd6\x53\xff" "\x14\xfa\xa5\x18\x4f\xe9\xff\x96\xb6\x86\xd4\x8f\x49\x6a\xff\xdd\xab" "\x5f\xa7\x74\xfc\xdf\xb5\x01\x75\x64\xfd\x6d\x48\xeb\xd1\x1e\xc6\xa5" "\x8f\x7b\xd8\xac\xfe\xb1\x51\xfd\x7f\xaf\x39\x14\xce\xc4\x87\x5e\x97" "\x5b\x86\x46\x63\xf8\x75\xb8\xfd\x30\xfa\xeb\x79\x75\xd8\x3a\x02\x75" "\x18\xd3\xd0\x68\x18\xc5\x03\x18\x0d\x83\xf4\xb7\xbb\x1e\x63\x34\xe5" "\xe3\x7f\xa6\xeb\x9e\x29\x3e\xf7\x87\x6f\x6c\x5d\x0e\x69\xb6\xeb\x8f" "\x75\x1e\x2f\xf3\xfe\x4b\xe1\x76\x8c\xfa\xf8\x93\xca\xdf\x5c\xe3\x7f" "\xb6\xaf\xc1\xf4\x75\xfc\xeb\xd2\xbb\x7a\x47\x3f\xcf\xfd\x8f\xae\xf0" "\xef\x9f\x5f\x7b\xbf\x50\x6c\xd8\xdb\xef\xf1\x37\x5f\xfe\xd4\x0f\xf4" "\xee\xf2\x32\x8b\x3e\x8a\xe5\xa7\xe5\x7f\x30\xf4\x57\x7e\xe3\xf5\xac" "\xfc\xfc\x86\xd0\xad\x14\xde\xfa\x9f\xac\xfc\x6d\x7d\x96\xbf\x6a\xf9" "\xf7\x0f\x50\x7e\xc1\x7f\x63\xf9\x69\xb5\x3d\xf4\xa9\x7e\xcb\x6f\xd5" "\xb8\x52\xed\xac\x47\x7e\xdd\x38\xdd\xff\xcb\xaf\x1b\x27\x37\xb2\xe5" "\x4f\x7d\x7b\x0e\xbc\xfc\x6b\x3c\x09\xb8\x19\xcb\x87\x49\xd6\xfb\x1a" "\x7c\xbf\x23\xd8\x8e\xa6\x71\x19\xff\xb7\x97\xfc\x39\x8c\x2f\xc6\x74" "\x3a\x10\xa6\xe7\x1c\xf2\x6f\xe4\x41\xeb\x9f\x9e\xaf\x48\xdf\x03\x7b" "\xb2\xcf\xaf\x94\x7c\xbf\x8d\xfb\x3d\x9c\x49\x1f\xff\xf7\xab\x31\x2e" "\xdb\x1f\xd2\xf8\xbf\x69\x7b\xac\x77\x49\x57\x0b\xe9\x5a\x97\x75\x3b" "\xee\xdb\x0a\x6c\x36\x1f\x8c\xfc\xfd\xbf\x31\x0b\x17\x46\xa0\x0e\xc2" "\xca\x17\xda\xb0\xeb\xd1\x11\x46\x63\x0c\xec\x62\x68\x34\x1a\x43\xed" "\xc8\x5b\x2f\xe2\xc3\x35\xec\xf5\x3f\xec\xbb\xcf\xc3\x2e\x7f\xd8\xeb" "\xbf\x4c\x3e\xfe\x6f\x7e\x0e\x9f\x8f\xff\x5b\xcd\x7e\x40\xe4\xe3\xff" "\xe6\xef\xcf\xc7\xff\xcd\xf3\xf3\xf1\xf5\xf2\xfc\x7c\xfc\xdf\x7c\x7d" "\xe6\xe3\xff\xe6\xf9\xf7\x64\x9f\x9b\x5f\xc1\x9e\x2b\xc9\xff\x78\x49" "\xfe\xde\x92\xfc\x7d\x2b\xf9\xb3\xdd\xf2\xf7\x97\xbc\xff\x13\x25\xf9" "\xa1\x24\xff\xde\x92\xfc\xfb\x4a\xf2\xef\x2e\xc9\x9f\x2a\xc9\xff\x74" "\x49\xfe\x67\x4a\xf2\x1f\x28\xc9\x7f\xa8\x24\xff\xb3\x25\xf9\x9b\x5d" "\xb3\x3d\x4a\x61\xa7\x9a\xb4\xe5\x87\x49\x96\xb7\xcf\xb3\xff\xc3\xe4" "\x48\xf7\x7f\x7a\xed\xff\xbb\x4b\xf2\x81\xf1\xf5\xb3\x37\x0f\x3e\xfe" "\xf4\x6f\xbf\x5d\x6f\xb5\xff\x9f\x69\xff\x5e\x4b\xf7\xf1\x8e\xc6\x74" "\x2d\xfe\x76\xfe\x51\x4c\xe7\xf7\xbd\x43\x21\xbd\x9c\xf7\x4e\x4c\xff" "\x35\xcb\x1f\xf5\xeb\x1d\x30\x49\xf2\xfe\x33\xf2\xef\xf7\x07\x4b\xf2" "\x81\xf1\x95\x9e\xf3\xb2\x7f\xc3\x04\xaa\x74\xef\xb1\x27\xbf\xdf\xd6" "\xab\xdf\xaa\x5e\xe7\xf9\x8c\x97\xcf\xc5\xf8\xf3\x31\xfe\x42\x8c\x1f" "\x8e\xf1\x7c\x8c\x17\x62\x7c\x30\xc6\x8b\x1b\x54\x3f\xee\x8c\xc7\x7f" "\xf3\xfb\x23\xaf\x54\x56\x7e\xef\xef\xcc\xf2\xfb\x7d\x9e\x3c\x6f\x0f" "\x94\xf7\x13\x75\xa8\xcf\xfa\xe4\xd7\x07\x06\x7d\x9e\x3d\xef\xc7\x6f" "\x50\xb7\x5b\xfe\x20\xcd\xc1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x46\x41" "\xb5\xf9\x77\x69\x69\xae\x12\xc2\xe5\xb7\x5f\x3b\xf6\xd4\x89\x33\x0b" "\xcb\x53\x1e\x6d\xcf\x51\x6f\xfe\x9d\x2e\xa4\x6a\xed\xf7\x85\xf0\x48" "\x8c\xa7\x62\xfc\x8b\xf8\xe2\xc6\x87\x2f\x9f\x2a\xc6\x37\x63\x5c\x09" "\x8b\xa1\x12\x2a\xed\xe9\xe1\xc9\xeb\xed\x92\xb6\x87\x10\x2e\x84\x03" "\xe1\x4a\xa8\x87\xbd\x97\xaf\xbe\xfa\xee\xe2\x13\x27\x2e\x1e\xbf\x74" "\xff\x7b\x6f\x1c\xb9\x76\xe7\xd6\x00\x00\x00\x00\x6c\x7e\xff\x0b\x00" "\x00\xff\xff\xaf\x12\x18\xfa", 2727); syz_mount_image( /*fs=*/0x20000000, /*dir=*/0x20000040, /*flags=MS_LAZYTIME|MS_STRICTATIME|MS_RELATIME|MS_NODIRATIME|MS_NOATIME*/ 0x3200c00, /*opts=*/0x20001bc0, /*chdir=*/3, /*size=*/0xaa7, /*img=*/0x20000cc0); break; case 1: *(uint32_t*)0x20000040 = 2; *(uint32_t*)0x20000044 = 0x80; *(uint8_t*)0x20000048 = 0xe6; *(uint8_t*)0x20000049 = 9; *(uint8_t*)0x2000004a = 0; *(uint8_t*)0x2000004b = 0; *(uint32_t*)0x2000004c = 0; *(uint64_t*)0x20000050 = 3; *(uint64_t*)0x20000058 = 0x28000; *(uint64_t*)0x20000060 = 0; STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 2, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 3, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 5, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 6, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 7, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 8, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 9, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 10, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 11, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 12, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 13, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 14, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 15, 2); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 17, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 18, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 19, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 20, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 21, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 22, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 23, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 24, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 25, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 26, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 27, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 28, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 29, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 30, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 31, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 32, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 33, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 34, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 35, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 36, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 37, 1); STORE_BY_BITMASK(uint64_t, , 0x20000068, 0, 38, 26); *(uint32_t*)0x20000070 = 0; *(uint32_t*)0x20000074 = 0; *(uint64_t*)0x20000078 = 0; *(uint64_t*)0x20000080 = 9; *(uint64_t*)0x20000088 = 0x800; *(uint64_t*)0x20000090 = 9; *(uint32_t*)0x20000098 = 0; *(uint32_t*)0x2000009c = 0; *(uint64_t*)0x200000a0 = 0; *(uint32_t*)0x200000a8 = 0; *(uint16_t*)0x200000ac = 0; *(uint16_t*)0x200000ae = 0; *(uint32_t*)0x200000b0 = 0; *(uint32_t*)0x200000b4 = 0; *(uint64_t*)0x200000b8 = 0; syscall(__NR_perf_event_open, /*attr=*/0x20000040ul, /*pid=*/-1, /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 6; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }