// https://syzkaller.appspot.com/bug?id=99a398c6cf80e0e2292a3c6a8cc5a717bcaf7f99 // 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 #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 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"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } 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")) { } } 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[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x200000 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // minixdf: buffer: {6d 69 6e 69 78 64 66} (length 0x7) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nouid32: buffer: {6e 6f 75 69 64 33 32} (length 0x7) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nombcache: buffer: {6e 6f 6d 62 63 61 63 68 65} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // errors_remount: buffer: {65 72 72 6f 72 73 3d 72 65 6d 6f 75 // 6e 74 2d 72 6f} (length 0x11) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // debug_want_extra_isize: fs_opt["debug_want_extra_isize", // fmt[hex, int32]] { // name: buffer: {64 65 62 75 67 5f 77 61 6e 74 5f 65 78 74 72 // 61 5f 69 73 69 7a 65} (length 0x16) eq: const = 0x3d (1 // bytes) val: int32 = 0x80 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // lazytime: buffer: {6c 61 7a 79 74 69 6d 65} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nodelalloc: buffer: {6e 6f 64 65 6c 61 6c 6c 6f 63} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noblock_validity: buffer: {6e 6f 62 6c 6f 63 6b 5f 76 61 6c 69 // 64 69 74 79} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nomblk_io_submit: buffer: {6e 6f 6d 62 6c 6b 5f 69 6f 5f 73 75 // 62 6d 69 74} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x58a (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x58a) // } // ] // returns fd_dir memcpy((void*)0x200000000040, "ext4\000", 5); memcpy((void*)0x200000000200, "./file1\000", 8); memcpy((void*)0x200000000580, "minixdf", 7); *(uint8_t*)0x200000000587 = 0x2c; memcpy((void*)0x200000000588, "nouid32", 7); *(uint8_t*)0x20000000058f = 0x2c; memcpy((void*)0x200000000590, "nombcache", 9); *(uint8_t*)0x200000000599 = 0x2c; memcpy((void*)0x20000000059a, "errors=remount-ro", 17); *(uint8_t*)0x2000000005ab = 0x2c; memcpy((void*)0x2000000005ac, "debug_want_extra_isize", 22); *(uint8_t*)0x2000000005c2 = 0x3d; sprintf((char*)0x2000000005c3, "0x%016llx", (long long)0x80); *(uint8_t*)0x2000000005d5 = 0x2c; memcpy((void*)0x2000000005d6, "lazytime", 8); *(uint8_t*)0x2000000005de = 0x2c; memcpy((void*)0x2000000005df, "nodelalloc", 10); *(uint8_t*)0x2000000005e9 = 0x2c; memcpy((void*)0x2000000005ea, "noblock_validity", 16); *(uint8_t*)0x2000000005fa = 0x2c; memcpy((void*)0x2000000005fb, "nomblk_io_submit", 16); *(uint8_t*)0x20000000060b = 0x2c; *(uint8_t*)0x20000000060c = 0; memcpy( (void*)0x200000000640, "\x78\x9c\xec\xdd\xcf\x6b\x1b\xc7\x1e\x00\xf0\xef\xca\x72\x7e\xbf\x67\x07" "\xc2\xe3\xb5\x87\x62\xc8\xa1\x2e\x69\xe4\xd8\xee\x8f\x14\x0a\x49\x2f\x85" "\xd2\x86\x06\xda\x7b\x2a\x6c\xc5\x04\xcb\x51\xb0\xe4\x10\xbb\x81\x24\x87" "\xe6\xd2\x4b\x09\x85\x52\x5a\x28\xfd\x03\x7a\xef\x31\x94\xde\xfb\x47\x94" "\x40\x1b\x08\x25\x98\xf6\xd0\x8b\xca\xca\x2b\x47\x8e\x25\xcb\x76\x94\xca" "\x89\x3e\x1f\x58\x7b\x66\x67\xa4\xd9\xd9\xd9\x19\xcd\x68\x25\x14\xc0\xc0" "\x1a\x4b\xff\xe4\x22\x5e\x88\x88\x2f\x92\x88\x91\x96\xb4\x7c\x64\x89\x63" "\x6b\xf9\x56\x1f\x5e\x9f\x49\xb7\x24\xea\xf5\x8f\xfe\x48\x22\xc9\xf6\x35" "\xf3\x27\xd9\xff\xc3\x59\xe4\xff\x11\xf1\xd3\x67\x11\x27\x72\x9b\xcb\xad" "\x2e\xaf\xcc\x17\xcb\xe5\xd2\x62\x16\x9f\xa8\x2d\x5c\x99\xa8\x2e\xaf\x9c" "\xbc\xb4\x50\x9c\x2b\xcd\x95\x2e\x4f\x4d\x4f\x9f\x7e\x7d\x7a\xea\xad\x37" "\xdf\xe8\x59\x5d\x5f\x39\xff\xd7\xd7\x1f\xde\x7d\xef\xf4\xe7\xc7\x57\xbf" "\xfa\xe1\xfe\xd1\x3b\x49\x9c\x8d\x23\x59\x5a\x6b\x3d\x9e\xc0\xcd\xd6\xc8" "\x58\x8c\x65\xe7\x64\x38\xce\x3e\x96\x71\xb2\x07\x85\xed\x25\x49\xbf\x0f" "\x80\x5d\x19\xca\xfa\xf9\x70\xa4\x63\xc0\x48\x0c\x65\xbd\x1e\x78\xfe\xdd" "\x88\x88\x3a\x30\xa0\x12\xfd\x1f\x06\x54\x73\x1e\xd0\x5c\xdb\xf7\x68\x1d" "\xfc\xcc\x78\xf0\xce\xda\x02\x68\x73\xfd\xf3\x6b\xef\x8d\xc4\x81\xc6\xda" "\xe8\xd0\x6a\xb2\x61\x65\x94\xae\x77\x47\x7b\x50\x7e\x5a\xc6\x8f\xbf\x7f" "\x7b\x27\xdd\xa2\xcb\xfb\x10\x37\x7a\x50\x1e\x40\xd3\xcd\x5b\x11\x71\x2a" "\x9f\xdf\x3c\xfe\x25\xd9\xf8\xb7\x7b\xa7\x1a\x6f\x1e\x6f\xed\xf1\x32\x06" "\xed\xf5\x07\xfa\xe9\x6e\x3a\xff\x79\xb5\xdd\xfc\x27\xb7\x3e\xff\x89\x36" "\xf3\x9f\xc3\x6d\xfa\xee\x6e\x74\xef\xff\xb9\xfb\x3d\x28\xa6\xa3\x74\xfe" "\xf7\x76\xdb\xf9\xef\xfa\xd0\x35\x3a\x94\xc5\xfe\xd3\x98\xf3\x0d\x27\x17" "\x2f\x95\x4b\xa7\x22\xe2\xbf\x11\x31\x1e\xc3\xfb\xd3\xf8\x96\xf7\x73\x56" "\xef\xd5\x3b\x25\xb5\xce\xff\xd2\x2d\x2d\xbf\x39\x17\xcc\x8e\xe3\x7e\x7e" "\xff\xc6\xc7\xcc\x16\x6b\xc5\x27\xa8\xf2\x06\x0f\x6e\x45\xbc\xd8\x76\xfe" "\x9b\xac\xb7\x7f\xd2\xa6\xfd\xd3\xf3\x71\xbe\xfb\xd3\x0f\x65\xff\x5f\xea" "\x94\xa1\x7b\xfd\x9f\xae\xfa\xf7\x11\x2f\xb7\x6d\xff\x47\x77\xb4\x92\xad" "\xef\x4f\x4e\x34\xae\x87\x89\xe6\x55\xb1\xd9\x9f\xb7\xff\xf7\x4b\xa7\xf2" "\xc7\xdf\xed\x6f\xfd\xd3\xf6\x3f\xb4\x75\xfd\x47\x93\xd6\xfb\xb5\xd5\x9d" "\x97\xf1\xdd\x81\xbf\x4b\x9d\xd2\xda\xb4\xff\xfe\xd8\xc6\xf5\xbf\x2f\xf9" "\xb8\x11\xde\x97\xed\xbb\x56\xac\xd5\x16\x27\x23\xf6\x25\x1f\x6c\xde\x3f" "\xf5\xe8\xb1\xcd\x78\x33\x7f\x5a\xff\xf1\xe3\x5b\x8f\x7f\xed\xae\xff\x83" "\x11\xf1\xc9\x36\xeb\x7f\xfb\xd8\xed\x8e\x59\xfb\x7d\xfd\xa7\xf5\x9f\xdd" "\x51\xfb\x3f\x1e\x18\xea\x9c\x94\x05\xee\xbd\xff\xe9\x37\x9d\xca\xdf\xde" "\xf8\xf7\x5a\x23\x34\x9e\xed\xd9\xce\xf8\xb7\xc5\xe1\x6c\x08\x3c\xc9\xb9" "\x03\x00\x00\x00\x00\x00\x80\xbd\x26\x17\x11\x47\x22\xc9\x15\xd6\xc3\xb9" "\x5c\xa1\xb0\xf6\xf9\x8e\x63\x71\x28\x57\xae\x54\x6b\x27\x2e\x56\x96\x2e" "\xcf\x46\xe3\xbb\xb2\xa3\x31\x9c\x6b\xde\xe9\x1e\x69\xf9\x3c\xc4\x64\xf6" "\x79\xd8\xd1\xa8\x35\xe2\x53\xeb\xf1\xb5\xf4\xe9\x88\x38\x1a\x11\x5f\x0e" "\x1d\x6c\xc4\x0b\x33\x95\xf2\x6c\xbf\x2b\x0f\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x7b\xc4\xe1\x0e\xdf\xff\x4f\xfd\x36\xd4" "\xef\xa3\x03\x9e\x3a\x3f\xf9\x0d\x83\xab\x6b\xff\xef\xc5\x2f\x3d\x01\x7b" "\x92\xd7\x7f\x18\x5c\xfa\x3f\x0c\x2e\xfd\x1f\x06\x97\xfe\x0f\x83\x4b\xff" "\x87\xc1\xa5\xff\xc3\xe0\xd2\xff\x61\x70\xe5\xe3\xf8\xcf\xfd\x3e\x06\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x78\x8e\x9c\x3f\x77\x2e\xdd\xea\xab\x0f\xaf\xcf\xa4\xf1\xd9\xab" "\xcb\x4b\xf3\x95\xab\x27\x67\x4b\xd5\xf9\xc2\xc2\xd2\x4c\x61\xa6\xb2\x78" "\xa5\x30\x57\xa9\xcc\x95\x4b\x85\x99\xca\x42\xb7\xe7\x2b\x57\x2a\x57\x26" "\xa7\x62\xe9\xda\x44\xad\x54\xad\x4d\x54\x97\x57\x2e\x2c\x54\x96\x2e\xd7" "\x2e\x5c\x5a\x28\xce\x95\x2e\x94\x86\xff\x95\x5a\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xb3\xa5\xba\xbc\x32\x5f\x2c\x97" "\x4b\x8b\x02\x1d\x03\x67\x62\x07\x99\x7f\xdd\x49\xe6\x3d\x12\x38\x93\x5d" "\x0c\xbb\x7a\x78\xbe\x8f\x07\xbf\xdc\xf7\x53\xf7\x6c\x04\x0e\x74\x69\xdc" "\xfa\xc8\xe6\xa4\x3e\x0f\x4c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xd0\xe2\x9f\x00\x00\x00\xff\xff\x93\x85\x32\xd5", 1418); syz_mount_image(/*fs=*/0x200000000040, /*dir=*/0x200000000200, /*flags=MS_RELATIME*/ 0x200000, /*opts=*/0x200000000580, /*chdir=*/1, /*size=*/0x58a, /*img=*/0x200000000640); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x200000004280, "./file0\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000004280ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; // getdents arguments: [ // fd: fd_dir (resource) // ent: nil // count: len = 0x0 (8 bytes) // ] syscall(__NR_getdents, /*fd=*/r[0], /*ent=*/0ul, /*count=*/0ul); // setxattr$incfs_metadata arguments: [ // path: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // name: ptr[in, buffer] { // buffer: {75 73 65 72 2e 69 6e 63 66 73 2e 6d 65 74 61 64 61 74 61 00} // (length 0x14) // } // val: ptr[in, buffer] { // buffer: {2a bf e1 a9 34 d5 a5 b0 4e d9 75 33 31 a2 8f 49 78 f4 2a 48 // f0 0e 27 bb 88 14 1b 7f dc 2d dc 22 72 7e ef 9e 88 ad de fb d3 2b b1 // 7b ea 88 12 98 c3 7e 0d 34 5a 7d 6a 15 b0 cd 0d 9c 95 c8 2c 30 d8 6a // 2b 1f cc 66 d5 c7 c1 f5 2d 75 ff d1 5e 8d 66 ac dc 98 61 a1 38 b0 b9 // db 6d d0 24 c7 1e b0 87 2c d3 00 00 46 e4 28 ac 23 66 cc 68 1d d2 c4 // 4f 3c 58 3a ea 7e 35 6f b6 ba da e1 ab 50 8d 3f de 8f 7b 06 fc 01 c2 // 4c 13 11 3f c5 93 18 25 80 b8 96 b5 db 80 78 55 56 dc 70 39 b4 6e 9a // ab 40 74 89 a6 97 37 b0 73 4c e2 5d e9 3e c2 d5 8c 12 05 6e 75 ea 61 // c2 72 9e e7 97 de f3 51 28 b3 cf 97 b0 b3 e4 c0 1f 59 14 71 fe 99 d6 // c6 e4 de 14 aa 2b c7 5f cc a4 ff b8 05 94 c9 4c b5 ce 2b 14 fe a3 b3 // 3e 0e 35 d8 ae 72 36 85 cd 4b d3 f2 b5 2b 3d 9a 81 1f 92 60 4a 63 e6 // 07 ad b1 4e 69 c4 03 d7 10 1f 55 64 7c bd c9 62 52 35 84 06 f1 b5 c1 // 1b 23 b2 6c 52 b3 2e 9f 99 f9 5d e0 54 e1 43 06 0a fb a9 ee 45 4d 2e // 6b 4d 29 7d 31 86 7f 2e e8 54 e7 2a a6 a3 ff 7f dc bb 1e 61 30 60 e1 // e3 28 94 cc 59 59 0d 63 c5 24 a6 9b 11 ee 43 50 9a 36 00 21 f8 c6 43 // 0b 05 a3 81 bb 5f 22 2d ed 6b 1d 48 4e dc 01 02 02 2b 50 e6 c6 e7 5d // 39 58 cd ff 54 d0 ca 06 2a 26 fc 13 5c 1b f1 ab c1 aa 30 a4 4e 7f 12 // 3c 43 cc e0 c0 f6 75 ac 74 cc aa f2 46 03 9a 99 89 58 8a 99 1b bb e5 // 11 e7 ce b5 37 8b cb 99 c5 b9 47 93 4f 46 70 12 11 d4 63 e8 c4 3c e3 // 68 ab 78 3f 63 4f 51 91 57 c1 fc 72 db c6 35 e4 88 92 77 db 67 2a 99 // 49 4e 92 d4 0f c2 45 cb 55 b1 07 42 36 92 3a dd de df b3 fe 39 b4 12 // 33 cf 5d b3 54 c2 3d 8f aa 43 5a b8 ae 23 96 39 b7 f6 a9 9a dc c9 a3 // e6 8a 0e e7 f2 a3 db 2c f9 21 6c c8 5c fd 4a 76 af 69 a2 47 5f f6 24 // a9 3b ca 82 f0 cf 1f 9d 96 a3 b8 36 7b d1 47 2d f8 0e c4 57 f4 a6 ef // 77 b2 87 82 9e 23 ba 03 eb e5 42 d5 bf 6c 09 5f 6f c9 e2 62 02 25 82 // 2d 8a 74 e6 71 8d 48 0d cc 8b 99 88 f4 7f f9 84 b7 92 7f cb 92 9f e1 // 7b f8 9d 38 9a 0e d9 19 a7 1b da af 7b 5a 17 aa 56 cd 6c f3 59 df 18 // b4 ed 01 b2 76 65 60 47 91 3e ea 29 be 8b 40 6b 65 a2 14 39 5b cb 4b // ef f2 59 78 e5 26 f9 28 c5 d8 05 79 be 5a 6e af b2 83 da 8f a6 58 7c // ad cd 93 0b 74 a1 fd 83 5d 72 23 66 ff 5e 20 4c 8e 48 30 e5 e2 45 5c // 1c e4 67 64 fa 66 f1 f8 4c 2b b4 41 37 d8 f2 14 70 f0 0f e4 68 f2 5c // 68 10 73 b7 5d c0 de ce 37 2a 02 8e 1e 72 10 ac 4a 1e e5 74 2a fa e2 // 62 4f a0 d4 47 5b ad 08 05 82 a5 4b 1c a3 72 cb 24 b9 6c a8 e8 ab de // 2c aa 18 19 ff e3 f8 c9 52 59 63 0a c2 5d 8e e1 4b 4f 16 85 43 74 4c // a9 c8 30 ee 31 68 97 57 2a 1f 70 e8 5e 47 47 95 98 87 a9 f4 40 eb 7d // 67 b1 ef 79 b2 07 a2 52 0c 41 b5 26 42 a2 3a 8b b7 c1 4b ef 30 b8 1c // 4c eb d9 89 2e ff e3 e6 88 fe 7a 3e 38 1e 3b 18 e8 cf 71 55 20 3f 9f // 24 0c 0e 68 9f 2c d6 fd 6e fc 2d aa d2 21 57 83 a2 a2 be 37 e0 75 5b // 02 fd 60 0f 9d ad 0c 90 70 97 7d c9 16 a9 81 9a 92 f3 d8 76 95 41 e3 // f5 7d 70 5c f1 80 84 38 58 29 d8 6a e9 96 28 94 68 44 20 32 1a 98 fc // 78 64 02 b4 47 27 08 66 5a a1 83 02 7b 0c dc e8 f3 6b 7d 23 48 df 81 // 4e c4 3b 34 84 7e 6a ea aa 0b 64 c3 cd 4a a7 52 12 d0 b1 7a 65 32 44 // 65 fd 69 1d 48 32 f1 9b 9e 70 31 bf 14 c4 c1 da eb 92 19 59 7b 6d 8f // a9 08 81 88 fe dc 79 82 a0 5a b5 dd 8d 0b 14 5b 20 9f c6 8d 54 95 a4 // 6f e0 e5 05 93 9f 9d 61 31 2e 8a 41 81 5b 44 38 42 ae 64 25 bf f9 5e // 8a 11 f5 cd 2d 3b 1d 9f ee 2b 09 06 20 af 9f 67 16 9b 35 48 1c a4 f6 // 24 16 f0 29 ce 05 86 9a 82 a7 95 d9 6a a7 4a ef c0 95 9c 84 a9 e7 81 // b4 90 e6 81 06 0a 7b 6a 38 75 72 97 3e 0b 83 88 7e da fb 77 04 99 fc // 1f 68 b6 da 8f 23 da 44 e1 1e a8 4a ff db 73 4c 81 19 61 0c ed 68 0c // b2 16 db 3f 9f b5 5b 23 cf 7c 5d 21 05 93 72 de d4 77 18 14 38 78 32 // 57 cb a6 1b 54 c8 8b 24 b9 8e 5c 09 1d 31 17 93 79 80 26 26 ca 3d dc // 65 51 ef 4e 1a ba 2c fd ec 17 20 9c 7b d9 d2 68 40 e6 24 96 00 59 82 // ad cb df 9b e6 26 34 22 e3 f7 04 7a 21 8d 7a 57 3c f0 fa 5b fe 40 96 // 4b 2f d5 38 56 9d 65 43 dc 82 37 a9 04 89 35 12 c1 f6 71 2f 8f bb f4 // 5e b4 98 93 af d8 cc fd 0b 03 b7 1a 52 d0 b9 13 81 41 45 95 23 c6 db // f7 ad 8e fc 5d 30 00 0e 59 3a d8 a8 66 94 40 c4 10 b1 07 c8 d6 e0 44 // 25 df 2d e6 92 16 10 d0 9d 9e 3f ac 9c 3d 14 55 1d 0c 24 12 cb 48 ce // bf 41 ab 0e ae d2 93 fc 63 88 bf 13 1f 73 5b 14 16 53 cf f9 b2 34 62 // 39 7b 50 a4 80 f6 d2 90 bc cc f7 ea c4 07 f1 4a 8c af 6a 27 00 ad 8a // f3 d2 2f 35 d7 e1 5d 1d 76 6a b5 9b a2 7d be f4 41 57 f3 5f 2a 2b 14 // 68 70 6f 2a 5a 67 62 1d 96 a9 a4 a3 3a b3 82 f8 63 17 87 7c 9b 74 23 // 87 35 4e e2 cc c4 bc 48 9e 6c 45 61 57 87 7f ba 66 45 ba e8 7d 0d 48 // 55 df 7f 4d 6f a9 be 14 26 69 1c f0 1c a8 80 0a 0d 53 3b 57 a4 89 0d // 8a 33 a3 fc 6e 42 37 60 3c 9f e5 e1 d0 e0 12 fa 93 6e 56 af 58 9e 00 // f3 69 c9 d6 e0 1a d7 79 d5 23 8b db 66 d9 9d 07 ec 6f d7 13 15 45 7e // ba f1 30 58 1b 52 17 79 8d fa 07 a5 6f b3 76 f6 67 e7 e4 cc c8 9e 2e // bb 43 40 11 1d 3e 1d 50 17 ca 35 bb c7 c9 68 4e fb 7e 68 5e f9 29 9a // d9 46 24 6c 8b 7d 83 b8 29 b5 59 7c f8 95 30 72 b2 80 eb a8 e9 ad 77 // 8e e4 29 e0 82 17 03 72 f0 02 3a 7e 73 66 3e 15 ad 69 b9 ff 7f 55 70 // cf 89 be 26 15 bc 04 2c a2 c9 7c dd 9d 15 30 48 7c 53 8e 18 17 09 5b // b9 db 17 71 57 49 21 8d 8f 33 e8 d6 50 1f 4e 07 88 31 db 14 34 53 8a // 7a 10 23 0c 82 9c 2a af fa 2c 8f b3 c1 6e 92 10 ff 19 56 1d 6f 91 1e // ca c2 7d fe 52 de c5 48 9a 5e c9 72 22 32 1d 0d 17 1d 1c b9 60 9f f6 // 2c bc 84 52 e5} (length 0x691) // } // size: bytesize = 0x691 (8 bytes) // flags: setxattr_flags = 0x1 (8 bytes) // ] memcpy((void*)0x200000000040, "./file0\000", 8); memcpy((void*)0x200000000080, "user.incfs.metadata\000", 20); memcpy( (void*)0x200000000a40, "\x2a\xbf\xe1\xa9\x34\xd5\xa5\xb0\x4e\xd9\x75\x33\x31\xa2\x8f\x49\x78\xf4" "\x2a\x48\xf0\x0e\x27\xbb\x88\x14\x1b\x7f\xdc\x2d\xdc\x22\x72\x7e\xef\x9e" "\x88\xad\xde\xfb\xd3\x2b\xb1\x7b\xea\x88\x12\x98\xc3\x7e\x0d\x34\x5a\x7d" "\x6a\x15\xb0\xcd\x0d\x9c\x95\xc8\x2c\x30\xd8\x6a\x2b\x1f\xcc\x66\xd5\xc7" "\xc1\xf5\x2d\x75\xff\xd1\x5e\x8d\x66\xac\xdc\x98\x61\xa1\x38\xb0\xb9\xdb" "\x6d\xd0\x24\xc7\x1e\xb0\x87\x2c\xd3\x00\x00\x46\xe4\x28\xac\x23\x66\xcc" "\x68\x1d\xd2\xc4\x4f\x3c\x58\x3a\xea\x7e\x35\x6f\xb6\xba\xda\xe1\xab\x50" "\x8d\x3f\xde\x8f\x7b\x06\xfc\x01\xc2\x4c\x13\x11\x3f\xc5\x93\x18\x25\x80" "\xb8\x96\xb5\xdb\x80\x78\x55\x56\xdc\x70\x39\xb4\x6e\x9a\xab\x40\x74\x89" "\xa6\x97\x37\xb0\x73\x4c\xe2\x5d\xe9\x3e\xc2\xd5\x8c\x12\x05\x6e\x75\xea" "\x61\xc2\x72\x9e\xe7\x97\xde\xf3\x51\x28\xb3\xcf\x97\xb0\xb3\xe4\xc0\x1f" "\x59\x14\x71\xfe\x99\xd6\xc6\xe4\xde\x14\xaa\x2b\xc7\x5f\xcc\xa4\xff\xb8" "\x05\x94\xc9\x4c\xb5\xce\x2b\x14\xfe\xa3\xb3\x3e\x0e\x35\xd8\xae\x72\x36" "\x85\xcd\x4b\xd3\xf2\xb5\x2b\x3d\x9a\x81\x1f\x92\x60\x4a\x63\xe6\x07\xad" "\xb1\x4e\x69\xc4\x03\xd7\x10\x1f\x55\x64\x7c\xbd\xc9\x62\x52\x35\x84\x06" "\xf1\xb5\xc1\x1b\x23\xb2\x6c\x52\xb3\x2e\x9f\x99\xf9\x5d\xe0\x54\xe1\x43" "\x06\x0a\xfb\xa9\xee\x45\x4d\x2e\x6b\x4d\x29\x7d\x31\x86\x7f\x2e\xe8\x54" "\xe7\x2a\xa6\xa3\xff\x7f\xdc\xbb\x1e\x61\x30\x60\xe1\xe3\x28\x94\xcc\x59" "\x59\x0d\x63\xc5\x24\xa6\x9b\x11\xee\x43\x50\x9a\x36\x00\x21\xf8\xc6\x43" "\x0b\x05\xa3\x81\xbb\x5f\x22\x2d\xed\x6b\x1d\x48\x4e\xdc\x01\x02\x02\x2b" "\x50\xe6\xc6\xe7\x5d\x39\x58\xcd\xff\x54\xd0\xca\x06\x2a\x26\xfc\x13\x5c" "\x1b\xf1\xab\xc1\xaa\x30\xa4\x4e\x7f\x12\x3c\x43\xcc\xe0\xc0\xf6\x75\xac" "\x74\xcc\xaa\xf2\x46\x03\x9a\x99\x89\x58\x8a\x99\x1b\xbb\xe5\x11\xe7\xce" "\xb5\x37\x8b\xcb\x99\xc5\xb9\x47\x93\x4f\x46\x70\x12\x11\xd4\x63\xe8\xc4" "\x3c\xe3\x68\xab\x78\x3f\x63\x4f\x51\x91\x57\xc1\xfc\x72\xdb\xc6\x35\xe4" "\x88\x92\x77\xdb\x67\x2a\x99\x49\x4e\x92\xd4\x0f\xc2\x45\xcb\x55\xb1\x07" "\x42\x36\x92\x3a\xdd\xde\xdf\xb3\xfe\x39\xb4\x12\x33\xcf\x5d\xb3\x54\xc2" "\x3d\x8f\xaa\x43\x5a\xb8\xae\x23\x96\x39\xb7\xf6\xa9\x9a\xdc\xc9\xa3\xe6" "\x8a\x0e\xe7\xf2\xa3\xdb\x2c\xf9\x21\x6c\xc8\x5c\xfd\x4a\x76\xaf\x69\xa2" "\x47\x5f\xf6\x24\xa9\x3b\xca\x82\xf0\xcf\x1f\x9d\x96\xa3\xb8\x36\x7b\xd1" "\x47\x2d\xf8\x0e\xc4\x57\xf4\xa6\xef\x77\xb2\x87\x82\x9e\x23\xba\x03\xeb" "\xe5\x42\xd5\xbf\x6c\x09\x5f\x6f\xc9\xe2\x62\x02\x25\x82\x2d\x8a\x74\xe6" "\x71\x8d\x48\x0d\xcc\x8b\x99\x88\xf4\x7f\xf9\x84\xb7\x92\x7f\xcb\x92\x9f" "\xe1\x7b\xf8\x9d\x38\x9a\x0e\xd9\x19\xa7\x1b\xda\xaf\x7b\x5a\x17\xaa\x56" "\xcd\x6c\xf3\x59\xdf\x18\xb4\xed\x01\xb2\x76\x65\x60\x47\x91\x3e\xea\x29" "\xbe\x8b\x40\x6b\x65\xa2\x14\x39\x5b\xcb\x4b\xef\xf2\x59\x78\xe5\x26\xf9" "\x28\xc5\xd8\x05\x79\xbe\x5a\x6e\xaf\xb2\x83\xda\x8f\xa6\x58\x7c\xad\xcd" "\x93\x0b\x74\xa1\xfd\x83\x5d\x72\x23\x66\xff\x5e\x20\x4c\x8e\x48\x30\xe5" "\xe2\x45\x5c\x1c\xe4\x67\x64\xfa\x66\xf1\xf8\x4c\x2b\xb4\x41\x37\xd8\xf2" "\x14\x70\xf0\x0f\xe4\x68\xf2\x5c\x68\x10\x73\xb7\x5d\xc0\xde\xce\x37\x2a" "\x02\x8e\x1e\x72\x10\xac\x4a\x1e\xe5\x74\x2a\xfa\xe2\x62\x4f\xa0\xd4\x47" "\x5b\xad\x08\x05\x82\xa5\x4b\x1c\xa3\x72\xcb\x24\xb9\x6c\xa8\xe8\xab\xde" "\x2c\xaa\x18\x19\xff\xe3\xf8\xc9\x52\x59\x63\x0a\xc2\x5d\x8e\xe1\x4b\x4f" "\x16\x85\x43\x74\x4c\xa9\xc8\x30\xee\x31\x68\x97\x57\x2a\x1f\x70\xe8\x5e" "\x47\x47\x95\x98\x87\xa9\xf4\x40\xeb\x7d\x67\xb1\xef\x79\xb2\x07\xa2\x52" "\x0c\x41\xb5\x26\x42\xa2\x3a\x8b\xb7\xc1\x4b\xef\x30\xb8\x1c\x4c\xeb\xd9" "\x89\x2e\xff\xe3\xe6\x88\xfe\x7a\x3e\x38\x1e\x3b\x18\xe8\xcf\x71\x55\x20" "\x3f\x9f\x24\x0c\x0e\x68\x9f\x2c\xd6\xfd\x6e\xfc\x2d\xaa\xd2\x21\x57\x83" "\xa2\xa2\xbe\x37\xe0\x75\x5b\x02\xfd\x60\x0f\x9d\xad\x0c\x90\x70\x97\x7d" "\xc9\x16\xa9\x81\x9a\x92\xf3\xd8\x76\x95\x41\xe3\xf5\x7d\x70\x5c\xf1\x80" "\x84\x38\x58\x29\xd8\x6a\xe9\x96\x28\x94\x68\x44\x20\x32\x1a\x98\xfc\x78" "\x64\x02\xb4\x47\x27\x08\x66\x5a\xa1\x83\x02\x7b\x0c\xdc\xe8\xf3\x6b\x7d" "\x23\x48\xdf\x81\x4e\xc4\x3b\x34\x84\x7e\x6a\xea\xaa\x0b\x64\xc3\xcd\x4a" "\xa7\x52\x12\xd0\xb1\x7a\x65\x32\x44\x65\xfd\x69\x1d\x48\x32\xf1\x9b\x9e" "\x70\x31\xbf\x14\xc4\xc1\xda\xeb\x92\x19\x59\x7b\x6d\x8f\xa9\x08\x81\x88" "\xfe\xdc\x79\x82\xa0\x5a\xb5\xdd\x8d\x0b\x14\x5b\x20\x9f\xc6\x8d\x54\x95" "\xa4\x6f\xe0\xe5\x05\x93\x9f\x9d\x61\x31\x2e\x8a\x41\x81\x5b\x44\x38\x42" "\xae\x64\x25\xbf\xf9\x5e\x8a\x11\xf5\xcd\x2d\x3b\x1d\x9f\xee\x2b\x09\x06" "\x20\xaf\x9f\x67\x16\x9b\x35\x48\x1c\xa4\xf6\x24\x16\xf0\x29\xce\x05\x86" "\x9a\x82\xa7\x95\xd9\x6a\xa7\x4a\xef\xc0\x95\x9c\x84\xa9\xe7\x81\xb4\x90" "\xe6\x81\x06\x0a\x7b\x6a\x38\x75\x72\x97\x3e\x0b\x83\x88\x7e\xda\xfb\x77" "\x04\x99\xfc\x1f\x68\xb6\xda\x8f\x23\xda\x44\xe1\x1e\xa8\x4a\xff\xdb\x73" "\x4c\x81\x19\x61\x0c\xed\x68\x0c\xb2\x16\xdb\x3f\x9f\xb5\x5b\x23\xcf\x7c" "\x5d\x21\x05\x93\x72\xde\xd4\x77\x18\x14\x38\x78\x32\x57\xcb\xa6\x1b\x54" "\xc8\x8b\x24\xb9\x8e\x5c\x09\x1d\x31\x17\x93\x79\x80\x26\x26\xca\x3d\xdc" "\x65\x51\xef\x4e\x1a\xba\x2c\xfd\xec\x17\x20\x9c\x7b\xd9\xd2\x68\x40\xe6" "\x24\x96\x00\x59\x82\xad\xcb\xdf\x9b\xe6\x26\x34\x22\xe3\xf7\x04\x7a\x21" "\x8d\x7a\x57\x3c\xf0\xfa\x5b\xfe\x40\x96\x4b\x2f\xd5\x38\x56\x9d\x65\x43" "\xdc\x82\x37\xa9\x04\x89\x35\x12\xc1\xf6\x71\x2f\x8f\xbb\xf4\x5e\xb4\x98" "\x93\xaf\xd8\xcc\xfd\x0b\x03\xb7\x1a\x52\xd0\xb9\x13\x81\x41\x45\x95\x23" "\xc6\xdb\xf7\xad\x8e\xfc\x5d\x30\x00\x0e\x59\x3a\xd8\xa8\x66\x94\x40\xc4" "\x10\xb1\x07\xc8\xd6\xe0\x44\x25\xdf\x2d\xe6\x92\x16\x10\xd0\x9d\x9e\x3f" "\xac\x9c\x3d\x14\x55\x1d\x0c\x24\x12\xcb\x48\xce\xbf\x41\xab\x0e\xae\xd2" "\x93\xfc\x63\x88\xbf\x13\x1f\x73\x5b\x14\x16\x53\xcf\xf9\xb2\x34\x62\x39" "\x7b\x50\xa4\x80\xf6\xd2\x90\xbc\xcc\xf7\xea\xc4\x07\xf1\x4a\x8c\xaf\x6a" "\x27\x00\xad\x8a\xf3\xd2\x2f\x35\xd7\xe1\x5d\x1d\x76\x6a\xb5\x9b\xa2\x7d" "\xbe\xf4\x41\x57\xf3\x5f\x2a\x2b\x14\x68\x70\x6f\x2a\x5a\x67\x62\x1d\x96" "\xa9\xa4\xa3\x3a\xb3\x82\xf8\x63\x17\x87\x7c\x9b\x74\x23\x87\x35\x4e\xe2" "\xcc\xc4\xbc\x48\x9e\x6c\x45\x61\x57\x87\x7f\xba\x66\x45\xba\xe8\x7d\x0d" "\x48\x55\xdf\x7f\x4d\x6f\xa9\xbe\x14\x26\x69\x1c\xf0\x1c\xa8\x80\x0a\x0d" "\x53\x3b\x57\xa4\x89\x0d\x8a\x33\xa3\xfc\x6e\x42\x37\x60\x3c\x9f\xe5\xe1" "\xd0\xe0\x12\xfa\x93\x6e\x56\xaf\x58\x9e\x00\xf3\x69\xc9\xd6\xe0\x1a\xd7" "\x79\xd5\x23\x8b\xdb\x66\xd9\x9d\x07\xec\x6f\xd7\x13\x15\x45\x7e\xba\xf1" "\x30\x58\x1b\x52\x17\x79\x8d\xfa\x07\xa5\x6f\xb3\x76\xf6\x67\xe7\xe4\xcc" "\xc8\x9e\x2e\xbb\x43\x40\x11\x1d\x3e\x1d\x50\x17\xca\x35\xbb\xc7\xc9\x68" "\x4e\xfb\x7e\x68\x5e\xf9\x29\x9a\xd9\x46\x24\x6c\x8b\x7d\x83\xb8\x29\xb5" "\x59\x7c\xf8\x95\x30\x72\xb2\x80\xeb\xa8\xe9\xad\x77\x8e\xe4\x29\xe0\x82" "\x17\x03\x72\xf0\x02\x3a\x7e\x73\x66\x3e\x15\xad\x69\xb9\xff\x7f\x55\x70" "\xcf\x89\xbe\x26\x15\xbc\x04\x2c\xa2\xc9\x7c\xdd\x9d\x15\x30\x48\x7c\x53" "\x8e\x18\x17\x09\x5b\xb9\xdb\x17\x71\x57\x49\x21\x8d\x8f\x33\xe8\xd6\x50" "\x1f\x4e\x07\x88\x31\xdb\x14\x34\x53\x8a\x7a\x10\x23\x0c\x82\x9c\x2a\xaf" "\xfa\x2c\x8f\xb3\xc1\x6e\x92\x10\xff\x19\x56\x1d\x6f\x91\x1e\xca\xc2\x7d" "\xfe\x52\xde\xc5\x48\x9a\x5e\xc9\x72\x22\x32\x1d\x0d\x17\x1d\x1c\xb9\x60" "\x9f\xf6\x2c\xbc\x84\x52\xe5", 1681); syscall(__NR_setxattr, /*path=*/0x200000000040ul, /*name=*/0x200000000080ul, /*val=*/0x200000000a40ul, /*size=*/0x691ul, /*flags=XATTR_CREATE*/ 1ul); } 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; use_temporary_dir(); loop(); return 0; }