// https://syzkaller.appspot.com/bug?id=127fa0ac195cfd85a8c02f1f2485d6d48772bf7b // 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); } 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 < 7; 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); } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x2000000003c0, "udf\000", 4); memcpy((void*)0x200000000c80, "./file0\000", 8); memcpy( (void*)0x200000003280, "\x78\x9c\xec\xdd\x5d\x6c\x5c\x67\x5a\x07\xf0\xe7\x9d\x63\x27\x4e\xca" "\xb2\x53\xda\xa6\x5d\xba\x48\xb3\x14\xb1\x69\x9a\x04\xe7\xa3\xad\x51" "\x5a\xe4\x6c\x82\xb5\x2b\x45\x6d\x54\xc7\x0b\x37\x20\x8f\xe3\x49\x18" "\xd5\x5f\xb5\x9d\x55\x5a\xc1\x2a\x48\xc0\x0d\x08\x82\x8a\xb4\x02\x2e" "\xc8\x0d\x12\x17\x5c\xe4\x06\x09\xad\x10\x8a\xb8\x59\x24\x40\x8a\x40" "\x95\x16\x81\x44\xa0\x6d\xb4\x12\x02\xbc\x82\x85\x15\x2b\x61\x74\xce" "\xbc\x63\x8f\xbd\x71\xed\xe6\xcb\x49\xf3\xfb\xed\x26\xff\x39\x67\xde" "\x33\xf3\x9e\x69\x9f\x33\x67\xaa\x79\xce\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x10\xf1\x85\x9f\x3e\x3e\x78\x28\x6d" "\xf7\x2c\x00\x80\xfb\xe9\xb5\xd1\x37\x06\x8f\x78\xff\x07\x80\x47\xca" "\x19\x9f\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd8\x5c\x8a\x22\xde\x8a" "\x14\xef\x8d\x2c\xa5\xf1\x6a\xb9\x63\xe0\x54\x7b\xe6\xc2\xc5\xb1\x93" "\x23\xb7\xde\x6c\x57\x8a\x14\xb5\x28\xaa\xf1\xe5\x9f\x81\x43\x87\x8f" "\x1c\x7d\xf1\xa5\x97\x87\xba\xf9\xd1\xdb\xdf\x6d\x9f\x89\xd7\x47\xcf" "\x1c\x6f\x9c\x98\x9d\x9e\x9b\x6f\x2d\x2c\xb4\x26\x1b\x63\x33\xed\xb3" "\xb3\x93\xad\x2d\x3f\xc2\x9d\x6e\xbf\xde\xbe\xea\x05\x68\x4c\xbf\x79" "\x61\xf2\xdc\xb9\x85\xc6\xe1\x83\x47\xd6\xdc\x7d\xb1\x7e\x73\xe7\x63" "\x7b\xea\xc7\x86\x9e\xdd\xff\x7c\x77\xec\xd8\xc9\x91\x91\xd1\x9e\x31" "\x7d\xfd\xb7\xfd\xec\xdf\x27\xdd\xbd\x87\xe2\x13\x64\x47\x14\xf1\xc5" "\x48\xf1\x8d\x03\xdf\x4a\xcd\x88\xa8\xc5\x9d\xd7\xc2\x26\xc7\x8e\x7b" "\x6d\x57\xf4\x95\xf5\x57\xed\xc4\xd8\xc9\x91\x6a\x47\xa6\xda\xcd\x99" "\xc5\xf2\xce\x54\xcb\xa3\xfa\x22\xea\x3d\x1b\x0d\x77\x6b\xe4\x3e\xd4" "\xe2\x1d\x19\x8e\xb8\x54\xfe\x73\x2a\x27\xbc\xaf\xdc\xbd\xd1\xb9\xe6" "\x7c\x73\x62\xaa\xd5\x38\xdd\x9c\x5f\x6c\x2f\xb6\x67\x67\x52\xad\x33" "\xdb\x72\x7f\xea\x51\x8b\xa1\x14\x31\x17\x11\x4b\xc5\x76\x4f\x9e\x07" "\x4d\x7f\x14\xf1\x6a\xa4\xb8\xf9\xbd\xa5\x34\x11\x11\x45\xb7\x0e\x5e" "\x78\x6d\xf4\x8d\xc1\x23\x1b\x6f\xd8\x77\x1f\x27\xb9\xc1\xd3\xd7\x8b" "\x88\xeb\xf1\x10\xd4\x2c\x3c\xa0\x76\x46\x11\xbf\x1d\x29\xde\x1d\x1f" "\x8c\xb3\xb9\xae\xaa\xb2\xf9\x20\xe2\xf3\x65\xbe\x12\xf1\x56\x99\xd7" "\x52\x5c\xce\xcb\xa9\x3c\x40\x0c\x45\x7c\xdb\xfb\x09\x3c\xd4\xfa\xa2" "\x88\xbf\x89\x14\xb3\x69\x29\x4d\x76\x6b\xbf\x3a\xaf\x3c\xf5\xe5\xc6" "\x97\x66\xce\xcd\xf6\x8c\xed\x9e\x57\x3e\xf4\x9f\x0f\xee\x27\xe7\x26" "\x3c\xc0\x06\xa2\x88\x89\xea\x8c\x7f\x29\xdd\xfe\x7f\xec\x02\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xee\x8f\x22\xbe\x1e\x29\xae\x4e\xef" "\x4d\x73\xd1\xdb\x53\xda\x9e\x39\xdf\x38\xd3\x9c\x98\xea\x7c\x2b\xb8" "\xfb\xdd\xff\x46\xde\x6a\x79\x79\x79\xb9\x9e\x3a\xd9\xc8\x39\x98\x73" "\x38\xe7\xe9\x9c\xe3\x39\xe7\x72\x5e\xca\x79\x39\xe7\x95\x9c\x57\x73" "\x5e\xcb\x79\x3d\xe7\x8d\x9c\x4b\x39\xa3\x96\x9f\x3f\x67\x23\xe7\x60" "\xce\xe1\x9c\xa7\x73\x8e\xe7\x9c\xcb\x79\x29\xe7\xe5\x9c\x57\x3a\xd9" "\xed\x68\x5c\xbe\x96\xd7\x5f\xcf\x79\x23\xe7\x52\xce\xd0\xf7\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x5d\xb6\x2b" "\x8a\xf8\x8d\x48\xf1\xef\xbf\xff\x95\xea\x77\xa5\xa3\xfa\x5d\xfa\x4f" "\x1f\x1b\x3a\x71\xea\x53\xbd\xbf\x19\xff\xcc\x26\x8f\x53\x8e\x3d\x18" "\x11\x5f\x8f\xad\xfd\x26\xef\x8e\xfc\x5b\xe3\xa9\x56\xfe\xef\xee\xef" "\x17\xb0\xb9\x81\x28\xe2\xab\xf9\xf7\xff\x7e\x79\xbb\x27\x03\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x3c\x10\x6a\x51\xc4\xaf\x44\x8a\xaf\x7d\x67\x29\x45" "\x8a\x88\xe1\x88\xf1\xe8\xe4\x8d\x62\xbb\x67\x07\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x94\x76\xa6\x22\x5e\x8d\x14\x3f\xfb" "\xbb\xc3\x2b\xeb\xfa\x22\x22\x55\xff\xef\xd8\x5b\xfe\x75\x34\x86\x8b" "\x9c\x4f\x94\xf9\x4a\x0c\x1f\xaa\xb2\x36\x7c\xbc\xcc\x81\x88\x83\xdb" "\x30\x7f\xe0\xf6\x2d\xbc\xfd\xce\x9b\xcd\xa9\xa9\xd6\xbc\x1b\x6e\xb8" "\xe1\xc6\xca\x8d\xed\x3e\x32\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\x23\x2c\x15\xf1\xf7\x91\xe2\x27\x7f\x6f\x29\xd5\x23" "\xe2\x62\xfd\xe6\xce\xc7\xf6\xd4\x8f\x0d\x3d\xbb\xff\xf9\x22\x8a\xea" "\x22\x00\xa9\x77\xfc\xeb\xa3\x67\x8e\x37\x4e\xcc\x4e\xcf\xcd\xb7\x16" "\x16\x5a\x93\x8d\xb1\x99\xf6\xd9\xd9\xc9\xd6\x56\x9f\x6e\xe0\x54\x7b" "\xe6\xc2\xc5\xb1\x93\x23\xf7\x64\x67\x36\xb5\xeb\x1e\xcf\x7f\xd7\xc0" "\x89\xd9\xb9\xb7\xe7\xdb\xe7\x7f\x61\xf1\x96\xf7\xef\x1e\x38\x3e\xb1" "\xb0\x38\xdf\x3c\x7b\xeb\xbb\x63\x57\xf4\x45\x0c\xf6\xae\xd9\x57\x4d" "\x78\xec\xe4\x48\x35\xe9\xa9\x76\x73\xa6\xda\x34\xd5\x36\x98\x60\x5f" "\x44\x63\xab\x3b\xc3\x23\x6f\x77\x2a\xe2\x7f\x23\xc5\x7b\x07\xbe\x19" "\x8f\xe7\x75\xf9\xfa\x1f\xfd\x9d\xa5\xd5\xea\xff\xc3\x5f\x5c\x5d\xfa" "\xe1\xbe\xb5\xb9\xf2\xaf\x63\x75\xfc\xf8\xf4\xb1\xa1\x13\xbb\x9f\xdb" "\xca\xed\xb4\xd5\x89\xee\xab\x0a\xaf\x2c\x84\x91\xd1\x9e\xd5\x7d\x79" "\x96\x3f\xd4\xb3\xae\x9e\xe7\xb5\xe5\xc7\x86\x47\x54\x59\xff\x2f\x44" "\x8a\x9f\xff\xa3\x22\x75\x6b\x28\xd7\xff\x0f\x74\x96\x8a\x95\xb1\xff" "\xf3\xd5\xd5\x9a\x3a\xb6\x2e\x57\x6c\x53\xfd\x3f\xd1\xb3\xee\x58\x3e" "\x6a\xf5\xf7\x45\x0c\x2c\x4e\xcf\xf5\x3f\x1d\x31\xb0\xf0\xf6\x3b\x07" "\xda\xd3\xcd\xf3\xad\xf3\xad\x99\xa3\x87\x5f\x7e\x69\xe8\xe8\xcb\x2f" "\x1e\x7d\xa9\x7f\x47\xc4\xc0\xb9\xf6\x54\x6b\x70\xf5\xd6\x96\x5f\x3b" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb8\x57\xfa\x53" "\x11\x5f\x88\x14\xbf\xf4\x77\x7f\xb9\xd2\x37\x9e\xfb\xff\x3e\xd5\x59" "\x5a\xed\xff\xeb\xed\xff\xdd\xbb\xee\x71\x7a\xaf\x1b\xb0\xd1\xed\xf5" "\xbd\x7e\x55\xeb\xf0\x26\x7d\x7d\xbd\xca\xe7\x4c\xa9\x88\xa7\x22\xc5" "\xb3\x7f\xf6\x4c\x35\xdf\x14\xbb\xf5\xbc\xc3\x6d\xda\x9d\x8a\xf8\x6e" "\x59\x4f\x93\x5f\x4c\x9f\xcb\xeb\x72\xfd\xe7\xce\xfe\x5b\xd7\xff\xa5" "\x75\xb9\x62\x9b\xfa\x7f\x1f\xef\x59\x77\x29\x1f\x27\xfe\x23\x52\x3c" "\xfe\x07\xcf\xc4\xe7\x7a\x8e\x13\xeb\xbb\x7b\xcb\x71\x7f\x11\x29\x26" "\x7e\xe4\xb3\x79\x5c\xec\x28\xc7\x75\x1f\xaf\xd3\x13\xdd\x69\x0c\x2e" "\xc7\x7e\x25\x52\xbc\x7f\x7a\xed\xd8\x6e\xdf\xf4\x13\xab\x63\x0f\x6d" "\x75\xb7\x60\x3b\x95\xf5\x3f\x1d\x29\xfe\xe1\xb7\xfe\x36\x7e\x34\xaf" "\x5b\x7b\xfd\x8f\x5b\xd7\xff\xee\x75\xb9\x62\x9b\xea\xff\xc9\xde\x7d" "\x8a\x88\x85\xb7\xdf\x79\xb3\x39\x35\xd5\x9a\x5f\xd8\xf2\x4b\x01\x8f" "\x9c\xb2\xfe\x7f\x3d\x52\xfc\xf5\x9f\x7c\x33\x9e\xcb\xeb\x3e\xea\xfa" "\x3f\xdd\xeb\xfc\xec\x7d\x6e\x6d\xee\xea\x0e\xda\x11\x11\xdb\x50\xff" "\x4f\xf5\xac\xab\xe7\x79\xfd\xd8\xc7\x7c\x2d\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xe0\x61\xb1\x3b\x15\xf1\x4f\x91\xe2\xcf\xff\x74\x7f\x3a" "\x90\xd7\x6d\xe5\xfb\xbf\x93\xeb\x72\xc5\x36\x7d\xff\xf7\xe9\x9e\x75" "\x93\x6b\xbe\xff\x7b\xef\x6e\x6c\xf9\x45\x06\x00\x80\x07\x44\x7f\x2a" "\xe2\x27\x22\xc5\x1f\x4f\x7e\x90\xba\xbd\xb1\x1b\xf6\xff\xbe\xb2\xda" "\xff\x73\x72\xfd\x89\x7b\x75\x4e\xff\x83\x55\x9f\xff\xc7\x3a\xd7\xff" "\x18\xfd\xff\xe5\x73\xa6\x54\xc4\xff\xe5\xbe\xde\xc1\x4d\xfa\x7a\x7f" "\x3c\x52\xfc\xda\x4f\xed\xcf\xe3\xd2\x9e\x72\xdc\x70\x77\xba\xd5\xdf" "\x03\xaf\xcd\xce\x1c\x38\x3e\x35\x35\x7b\xb6\xb9\xd8\x9c\x98\x6a\x35" "\x46\xe7\x9a\x67\x5b\xe5\xb6\xfb\x22\xc5\xbf\xfe\xdb\x67\xf3\xb6\xb5" "\xaa\xcf\xb7\xdb\x1f\xdd\xe9\x0d\x5e\xed\x09\xfe\x9d\x48\xf1\x73\x1f" "\x76\xc7\x76\x7a\x82\xbb\xbd\x94\x4f\xae\x8e\x3d\x54\x8e\x3d\x10\x29" "\xbe\xfb\xfe\xda\xb1\xdd\xbe\xab\xa7\x56\xc7\x1e\x2e\xc7\xfe\x66\xa4" "\x18\xf9\xef\x5b\x8f\xdd\xb3\x3a\xf6\x48\x39\xf6\x1f\x23\xc5\x7f\xbe" "\xdb\xe8\x8e\xdd\x5d\x8e\xed\x7e\x9e\x7b\x7a\x75\xec\xc1\xb3\xb3\x53" "\xdf\xf7\x91\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x80\xed\xd7\x9f\x8a\x48\x91\xe2\xda\xcf\x5c\x59\xe9\x8d\x5f\x7b" "\xfd\xaf\xee\x75\x00\xd6\x5e\xff\x6b\xbd\xdb\xf9\xfd\xff\xca\x26\xfd" "\xff\xf5\xbb\xb3\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x50\x48\x51\xc4\x7f" "\x45\x8a\xf7\x46\x96\xd2\x8d\xa2\x5c\xee\x18\x38\xd5\x9e\xb9\x70\x71" "\xec\xe4\xc8\xad\x37\xdb\x95\x22\x45\x2d\x8a\x6a\x7c\xf9\x67\xe0\xd0" "\xe1\x23\x47\x5f\x7c\xe9\xe5\xa1\x6e\x7e\xf4\xf6\x77\xdb\x67\xe2\xf5" "\xd1\x33\xc7\x1b\x27\x66\xa7\xe7\xe6\x5b\x0b\x0b\xad\xc9\xc6\xd8\x4c" "\xfb\xec\xec\x64\x6b\xcb\x8f\x70\x7b\xdb\x17\x1b\xde\xb3\xaf\x7a\x01" "\x1a\xd3\x6f\x5e\x98\x3c\x77\x6e\xa1\x71\xf8\xe0\x91\x35\x77\x5f\xac" "\xdf\xdc\xf9\xd8\x9e\xfa\xb1\xa1\x67\xf7\x3f\xdf\x1d\x3b\x76\x72\x64" "\x64\xb4\x67\x4c\x5f\xff\x96\x67\xbf\xa9\x74\xf7\x1e\x8a\x4f\x90\x1d" "\x51\xc4\x5f\x45\x8a\x6f\x1c\xf8\x56\xfa\xe7\x22\xa2\x16\xb7\x5d\x0b" "\x2b\x36\x39\x76\xdc\x6b\xbb\xa2\xaf\xac\xbf\x6a\x27\xc6\x4e\x8e\x54" "\x3b\x32\xd5\x6e\xce\x2c\x96\x77\xa6\x5a\x1e\xd5\x17\x51\xef\xd9\x68" "\xb8\x5b\x23\xf7\xa1\x16\xef\xc8\x70\xc4\xa5\x88\xa8\x95\x13\xde\x57" "\xee\xde\xe8\x5c\x73\xbe\x39\x31\xd5\x6a\x9c\x6e\xce\x2f\xb6\x17\xdb" "\xb3\x33\xa9\xd6\x99\x6d\xb9\x3f\xf5\xa8\xc5\x50\x8a\x98\x8b\x88\xa5" "\x8d\x8f\x56\x3c\xa2\xfa\xa3\x88\x6b\x91\xe2\xe6\xf7\x96\xd2\xbf\x14" "\x9d\x37\xb4\xaa\x0e\x5e\x78\x6d\xf4\x8d\xc1\x23\x1b\x6f\xd8\x77\x1f" "\x27\xb9\xc1\xd3\xd7\x8b\x88\xeb\xf1\x10\xd4\x2c\x3c\xa0\x76\x46\x11" "\x4f\x46\x8a\x77\xc7\x07\xe3\xfd\xa2\x53\x57\x55\xd9\x7c\x10\xf1\xf9" "\x32\x5f\x89\x78\xab\xcc\x6b\x29\x2e\xe7\xe5\x54\x1e\x20\x86\x22\xbe" "\xed\xfd\x04\x1e\x6a\x7d\x51\xc4\xe9\x48\x31\x9b\x96\xd2\x07\x45\xae" "\xfd\xea\xbc\xf2\xd4\x97\x1b\x5f\x9a\x39\x37\xdb\x33\xb6\x7b\x5e\xf9" "\xd0\x7f\x3e\xb8\x9f\x9c\x9b\xf0\x00\x1b\x88\x22\x3e\xac\xce\xf8\x97" "\xd2\x87\xde\xcf\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x01\x57" "\xc4\xab\x91\xe2\xea\xf4\xde\x54\xf5\x87\xae\xf4\x94\xb6\x67\xce\x37" "\xce\x34\x27\xa6\x3a\x5f\xeb\xef\x7e\xf7\xbf\x91\xb7\x5a\x5e\x5e\x5e" "\xae\xa7\x4e\x36\x72\x0e\xe6\x1c\xce\x79\x3a\xe7\x78\xce\xb9\x9c\x97" "\x72\x5e\xce\x79\x25\xe7\xd5\x9c\xd7\x72\x5e\xcf\x79\xa3\xca\x9d\x55" "\x63\x62\xb9\x1c\xb5\xfc\xfc\x39\x1b\x39\x07\x73\x0e\xe7\x3c\x9d\x73" "\x3c\xe7\x5c\xce\x4b\x39\x2f\xe7\xbc\x92\xf3\x6a\xce\x6b\x39\xaf\xe7" "\xbc\x91\x73\x29\xe7\x47\x74\xfd\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xc0\x1d\xa9\x45\x11\xbf\x1a\x29\xbe\xf6\x9d\xa5" "\xb4\x5c\x74\x7e\x5f\x76\x3c\x3a\x79\x63\x6d\x9f\xeb\x8e\xed\x9a\x23" "\x70\x6f\xfc\x7f\x00\x00\x00\xff\xff\x36\x04\x1a\xfe", 3158); syz_mount_image(/*fs=*/0x2000000003c0, /*dir=*/0x200000000c80, /*flags=MS_NODEV*/ 4, /*opts=*/0x200000000180, /*chdir=*/1, /*size=*/0xc56, /*img=*/0x200000003280); break; case 1: memcpy((void*)0x200000000100, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000100ul, /*flags=O_CREAT|O_RDWR*/ 0x42, /*mode=*/0); if (res != -1) r[0] = res; break; case 2: memcpy((void*)0x200000000040, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000040ul, /*flags=O_CREAT|O_RDWR*/ 0x42, /*mode=S_IXOTH|S_IROTH*/ 5); if (res != -1) r[1] = res; break; case 3: memset((void*)0x200000000140, 50, 1); syscall(__NR_pwrite64, /*fd=*/r[1], /*buf=*/0x200000000140ul, /*count=*/1ul, /*pos=*/0x8000c61ul); break; case 4: *(uint32_t*)0x2000000000c0 = 0x18; *(uint32_t*)0x2000000000c4 = 0; *(uint64_t*)0x2000000000c8 = 0; *(uint32_t*)0x2000000000d0 = 0; *(uint32_t*)0x2000000000d4 = 0; syscall(__NR_write, /*fd=*/r[0], /*arg=*/0x2000000000c0ul, /*len=*/0xfffffdeful); break; case 5: *(uint64_t*)0x200000000140 = -1; *(uint64_t*)0x200000000148 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x200000000140ul); break; case 6: memcpy((void*)0x200000000080, "./file1\000", 8); syscall(__NR_truncate, /*file=*/0x200000000080ul, /*len=*/0x400000f000ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }