// https://syzkaller.appspot.com/bug?id=2c883fdf20dee207e81c3bfedce2735334c948ea // 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"); } 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; retry: while (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW) == 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, MNT_DETACH | UMOUNT_NOFOLLOW) == 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, MNT_DETACH | UMOUNT_NOFOLLOW)) 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, MNT_DETACH | UMOUNT_NOFOLLOW)) 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 (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; memcpy((void*)0x20000040, "ext4\000", 5); memcpy((void*)0x20000500, "./file1\000", 8); memcpy( (void*)0x20000080, "\x00\x66\x87\x1c\xd3\x08\x23\x10\x66\xf8\xdb\xcb\x05\x74\x0f\xf1\x53\x5e" "\xee\x72\x8d\xe0\x33\xd2\xeb\x6f\x2d\xc9\xc0\xef\x84\x6d\x21\x78\x62\x9c" "\xc4\xea\xb2\xeb\x42\xfd\xe5\x7c\xf7\xb7\x37\x8d\xbd\x14\x76\x11\x10\xa3" "\x14\x62\x5c\x77\x52\x6d\x9e\xe4\x1a\xbc\x9d\x34\xa7\x58\x4f\xe8\xa0\xbb" "\xfb\xb4\x8d\xb6\x6a\xa7\x16\x2e\xc2\xf2\x69\xe2\x17\x3f\xcc\x39\x61\x2d" "\xb1\x76\x77\x8b\x57\xbc\x89\x04\xd0\x4e\xf1\x8f\xad\xb9\x0a\xd2\x15\x18" "\xd7\xfc\x0c\x52\xda\xf9\x1f\xdf\x91\xe3\xd8\x95\x5e\xdb\xed\x8d\xdb\xb8" "\xa1\xf3\xae\xb1\x07\x55\x6c\x1e\xdc\xa4\x3e\x03\x9f\xf5\x8a\x8c\x16", 143); memcpy( (void*)0x20001b00, "\x78\x9c\xec\xdd\xdf\x6b\x5b\xd7\x1d\x00\xf0\xef\xbd\xb6\xb2\xfc\x70\x66" "\x67\xdb\x43\x16\x58\x16\x96\x0c\x27\x6c\x91\xec\x78\x49\xcc\x1e\xb2\x0c" "\xc6\xf2\x14\xd8\x96\xbd\x67\x9e\x2d\x1b\x63\xd9\x32\x96\x9c\xc4\x26\x0c" "\x87\xfd\x01\x83\x31\xd6\x42\x9f\xfa\xd4\x97\x42\xff\x80\x42\xc9\x9f\x50" "\x0a\x81\xf6\xbd\xb4\xa5\xa5\xb4\x49\xfb\xd0\x87\xb6\x2a\x92\xae\xd2\xc4" "\x95\x62\x87\xc8\xbe\x60\x7f\x3e\x70\x7c\xcf\xb9\x57\xd2\xf7\x7b\x6c\x74" "\x75\xcf\xbd\xc7\xba\x01\xec\x5b\xa7\x22\xe2\x6a\x44\x0c\x44\xc4\xb9\x88" "\x18\xce\xd6\xa7\x59\xb9\xd6\x6c\x6c\xb4\x1f\xf7\xe8\xe1\xdd\xe9\x66\x49" "\xa2\xd1\xb8\xf1\x59\x12\x49\xb6\xae\xf3\x5a\x49\xb6\x3c\xd2\x7e\x4a\x1c" "\x8c\x88\xbf\x5d\x8b\xf8\x67\xf2\xc3\xb8\xb5\xb5\xf5\x85\xa9\x4a\xa5\xbc" "\x92\xb5\x4b\xf5\xc5\xe5\x52\x6d\x6d\xfd\xfc\xfc\xe2\xd4\x5c\x79\xae\xbc" "\x34\x31\x31\x7e\x69\xf2\xf2\xe4\xc5\xc9\xb1\xbe\xf4\x73\x24\x22\xae\xfc" "\xe9\xa3\xff\xff\xe7\xb5\x3f\x5f\x79\xeb\xb7\xb7\xdf\xbf\xf9\xc9\xd9\x7f" "\x35\xd3\x1a\xca\xb6\x3f\xd9\x8f\x7e\x6a\x77\xbd\xd0\xfa\x5d\x74\x0c\x46" "\xc4\xca\x4e\x04\xcb\xc1\x40\xb6\x2c\xe4\x9c\x07\x00\x00\xdb\xd3\x3c\xc6" "\xff\x49\x44\xfc\xaa\x75\xfc\x3f\x1c\x03\xad\xa3\x53\x00\x00\x00\x60\x2f" "\x69\xfc\x61\x28\xbe\x4e\x22\x1a\x00\x00\x00\xc0\x9e\x95\xb6\xe6\xc0\x26" "\x69\x31\x9b\x0b\x30\x14\x69\x5a\x2c\xb6\xe7\xf0\xfe\x2c\x0e\xa7\x95\x6a" "\xad\xfe\x9b\xd9\xea\xea\xd2\x4c\x7b\xae\xec\x48\x14\xd2\xd9\xf9\x4a\x79" "\x2c\x9b\x2b\x3c\x12\x85\xa4\xd9\x1e\xcf\xe6\xd8\x76\xda\x17\x36\xb5\x27" "\x22\xe2\x58\x44\xfc\x6f\xf8\x50\xab\x5d\x9c\xae\x56\x66\xf2\x3e\xf9\x01" "\x00\x00\x00\xfb\xc4\x91\x4d\xe3\xff\x2f\x87\xdb\xe3\x7f\x00\x00\x00\x60" "\x8f\x19\xc9\x3b\x01\x00\x00\x00\x60\xc7\x19\xff\x03\x00\x00\xc0\xde\x67" "\xfc\x0f\x00\x00\x00\x7b\xda\x5f\xae\x5f\x6f\x96\x46\xe7\xfe\xd7\x33\xb7" "\xd6\x56\x17\xaa\xb7\xce\xcf\x94\x6b\x0b\xc5\xc5\xd5\xe9\xe2\x74\x75\x65" "\xb9\x38\x57\xad\xce\xb5\xbe\xb3\x6f\x71\xab\xd7\xab\x54\xab\xcb\xbf\x8b" "\xa5\xd5\x3b\xa5\x7a\xb9\x56\x2f\xd5\xd6\xd6\x6f\x2e\x56\x57\x97\xea\x37" "\xe7\x9f\xba\x05\x36\x00\x00\x00\xb0\x8b\x8e\xfd\xf2\xfe\x7b\x49\x44\x6c" "\xfc\xfe\x50\xab\x34\x1d\xc8\x3b\x29\x60\x57\x24\xcf\xf3\xe0\x0f\x77\x2e" "\x0f\x60\xf7\x0d\xe4\x9d\x00\x90\x9b\xc1\xbc\x13\x00\x72\x53\xc8\x3b\x01" "\x20\x77\x5b\x9d\x07\xe8\x39\x79\xe7\xed\xfe\xe7\x02\x00\x00\xec\x8c\xd1" "\x9f\xf7\xbe\xfe\xef\xdc\x00\xec\x6d\x69\xde\x09\x00\x00\xbb\xce\xf5\x7f" "\xd8\xbf\x0a\x66\x00\xc2\xbe\xf7\xe3\x2d\xb6\xbf\xf8\xf5\xff\x46\xe3\xb9" "\x12\x02\x00\x00\xfa\x6e\xa8\x55\x92\xb4\x98\x5d\x0b\x1c\x8a\x34\x2d\x16" "\x23\x8e\xb6\x6e\x0b\x50\x48\x66\xe7\x2b\xe5\xb1\x6c\x7c\xf0\xee\x70\xe1" "\x47\xcd\xf6\x78\xeb\x99\xc9\xf3\xfd\xef\x30\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\x63\x8d\x46\x12\x0d" "\x00\x00\x00\x60\x4f\x8b\x48\x3f\x4e\x5a\xdf\xe6\x1f\x31\x3a\x7c\x66\x68" "\xf3\xf9\x81\x03\xc9\x57\xc3\xad\x65\x44\xdc\x7e\xe5\xc6\x4b\x77\xa6\xea" "\xf5\x95\xf1\xe6\xfa\xcf\x1f\xaf\xaf\xbf\x9c\xad\xbf\x90\xc7\x19\x0c\x00" "\x00\x00\x60\xb3\xce\x38\xbd\x33\x8e\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\x80\x7e\x7a\xf4\xf0\xee\x74\xa7" "\xec\x66\xdc\x4f\xff\x18\x11\x23\xdd\xe2\x0f\xc6\xc1\xd6\xf2\x60\x14\x22" "\xe2\xf0\x17\x49\x0c\x3e\xf1\xbc\x24\x22\x06\xfa\x10\x7f\xe3\x5e\x44\x1c" "\xef\x16\x3f\x69\xa6\x15\x23\x59\x16\xdd\xe2\x1f\xca\x31\x7e\x1a\x11\x47" "\xfa\x10\x1f\xf6\xb3\xfb\xcd\xfd\xcf\xd5\x6e\xef\xbf\x34\x4e\xb5\x96\xdd" "\xdf\x7f\x83\x59\x79\x51\xbd\xf7\x7f\xe9\xe3\xfd\xdf\x40\x8f\xfd\xcf\xd1" "\x6d\xc6\x38\xf1\xe0\x8d\x52\xcf\xf8\xf7\x22\x4e\x0c\x76\xdf\xff\x74\xe2" "\x27\x3d\xe2\x9f\xde\x66\xfc\x7f\xfc\x7d\x7d\xbd\xd7\xb6\xc6\xab\x11\xa3" "\x5d\x3f\x7f\x92\xa7\x62\x95\xea\x8b\xcb\xa5\xda\xda\xfa\xf9\xf9\xc5\xa9" "\xb9\xf2\x5c\x79\x69\x62\x62\xfc\xd2\xe4\xe5\xc9\x8b\x93\x63\xa5\xd9\xf9" "\x4a\x39\xfb\xd9\x35\xc6\x7f\x7f\xf1\xe6\xb7\xcf\xea\xff\xe1\x1e\xf1\x47" "\xb6\xe8\xff\x99\x6d\xf6\xff\x9b\x07\x77\x1e\xfe\xb4\x5d\x2d\x74\x8b\x7f" "\xf6\x74\xf7\xcf\xdf\xe3\x3d\xe2\xa7\xd9\x67\xdf\xaf\xb3\x7a\x73\xfb\x68" "\xa7\xbe\xd1\xae\x3f\xe9\xe4\xeb\xef\x9c\x7c\x56\xff\x67\x7a\xf4\x7f\xab" "\xbf\xff\xd9\x6d\xf6\xff\xdc\x5f\xff\xfd\xc1\x36\x1f\x0a\x00\xec\x82\xda" "\xda\xfa\xc2\x54\xa5\x52\x5e\x51\x51\x51\x51\x79\x5c\xc9\x7b\xcf\x04\x00" "\x00\xf4\xdb\xf7\x07\xfd\x79\x67\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xfb\xd7\x6e\x7c\x9d\xd8\xe6\x98\x1b\xf9\x74\x15" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xe0\x99\xbe\x0b\x00\x00\xff\xff\xf7\xa0\xd4\xed", 1204); res = -1; res = syz_mount_image(/*fs=*/0x20000040, /*dir=*/0x20000500, /*flags=*/0x4000, /*opts=*/0x20000080, /*chdir=*/0x12, /*size=*/0x4b4, /*img=*/0x20001b00); if (res != -1) r[0] = res; memcpy((void*)0x20000180, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x20000180ul, /*flags=*/0x14d27eul, /*mode=*/0ul); if (res != -1) r[1] = res; syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x600000ul, /*prot=*/0x27ffffful, /*flags=*/0x4002011ul, /*fd=*/r[1], /*offset=*/0ul); syscall(__NR_fallocate, /*fd=*/r[1], /*mode=*/0ul, /*off=*/0x4008697ul, /*len=*/0xda9bul); memcpy((void*)0x20000380, "/dev/loop", 9); *(uint8_t*)0x20000389 = 0x30; *(uint8_t*)0x2000038a = 0; memcpy((void*)0x20000140, "./bus\000", 6); syscall(__NR_mount, /*src=*/0x20000380ul, /*dst=*/0x20000140ul, /*type=*/0ul, /*flags=*/0x1000ul, /*data=*/0ul); memcpy((void*)0x20000400, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x20000400ul, /*flags=*/0x14113eul, /*mode=*/0ul); if (res != -1) r[2] = res; memcpy( (void*)0x20003a40, "\x36\x8a\x4c\x43\xa5\xc7\x42\xa1\x64\x99\x43\x19\xad\x14\x27\xd6\x1c\x69" "\x74\xf4\x45\xde\xd5\x32\x21\x00\xed\x82\x0f\x5a\xe9\xb9\xdb\xd9\xb1\xf9" "\x04\x6f\x89\xec\xa1\x37\xca\x7c\x98\xc5\x94\x24\x8b\x73\x35\xb3\x16\x3b" "\x49\xaf\x1a\x4a\x28\xa6\xf3\xcf\x5d\xc2\xfe\x16\x6b\x4c\x19\x49\x71\xe8" "\x86\xcc\x25\x4d\x4b\x72\xcf\x7b\x95\x86\x08\x4f\xa6\x98\x28\x00\x07\xb7" "\x1b\xa1\x49\xa5\x80\xab\xe2\x40\xbf\x32\x04\xa4\xbc\x11\x86\xca\x54\x3e" "\x2e\x42\x40\x60\x0a\x19\x13\xcd\x6d\xd7\x2c\xf7\x52\x2f\x09\x0b\x53\xd6" "\x50\x47\xd3\x72\x09\x12\xeb\x11\x44\x89\x43\xfa\x93\x32\x96\x54\x63\xf4" "\xe1\x47\xb7\xf9\x6b\x5c\x87\x25\xb5\xa2\x4b\x16\x86\xa7\x98\xa5\xaf\x5f" "\x1c\x70\x6f\xe7\xdf\x7c\x07\xe9\x71\x3a\x2d\x94\x1b\x1f\x9e\xd3\xb0\xdb" "\x77\x80\x12\xa0\x67\x7c\x36\xb6\xf5\xe3\x12\xc1\x74\xd5\x19\x06\x52\x9e" "\x2b\x4c\x15\x3f\x82\x1c\xfe\xc0\x6b\x18\xb0\xc1\x0e\x3b\xfe\x22\xf1\x59" "\x29\x88\x10\x2c\xf4\x7c\xfb\xfe\x42\xda\xc3\x8b\x6f\x35\x23\x1d\x96\x3e" "\xf4\x6b\x8e\x9f\x32\x77\x51\xf0\xe2", 243); *(uint16_t*)0x20003b33 = r[0]; sprintf((char*)0x20003b35, "%020llu", (long long)r[2]); memcpy( (void*)0x20003b49, "\x93\xf9\x57\x36\xef\x32\x02\x20\x6b\x70\x72\xf0\xf6\xfe\x00\x52\xcb\x7d" "\xbf\xc3\xdd\x31\xe3\x1b\xff\xaf\x78\x04\xd9\x6e\x2c\xf8\xc2\x55\x79\x64" "\xda\xba\x69\xef\xd0\x77\x4c\x9d\x36\x4a\xcc\xf7\x3d\x13\xf9\xb2\xb6\x00" "\x40\x05\x8a\xc6\x1c\x4e\xab\xde\xb9\x28\x10\xed\x13\x35\x63\x4e\x38\xed" "\x83\xee\xc2\x2e\x8b\x55\xb7\x24\xd2\x2c\x29\x71\x94\x65\xe7\xe0\xb7\xd6" "\x58\x5b\x0f\x0c\x65\x98\xd6\x21\xd2\xbc\xf1\xf4\xc6\x48\x59\x3d\x8e\x05" "\x34\x8e\xe3\x90\x38\xfe\x34\x7f\x1d\x18\xac\xc2\xf4\x5f\x40\x1b\x81\x78" "\x2d\x1b\xdd\x92\x49\xf1\x32\x26\xf4\x54\xf9\x2e\x89\xc5\x49\x7a\x90\x9a" "\xfe\xb7\x73\xd2\x59\xe5\xcb\x72\xdf\xe5\x80\x44\x28\xe9\x3c\xb4\xec\x5b" "\x16\xab\xce\x9b\x9c\x86\x24\xfe\x46\xfe\xee\x5a\x7c\x12\x8c\xda\x7e\xde" "\xb3\x50\xe5\xbf\x52\xf1\xca\xe9\xc5\x69\x39\x28\xe5\xb5\x79\x3b\xe6\x62" "\x6d\x3b\xf1\x68\xa6\xe1\x08\x0c\x7d\xeb\x20\xc3\xba\x67\x87\xc1\x5e\x10" "\xeb\xf7\xcb\xa1\x99\xbc\x73\x3a\xbe\x83\xc7\x16\x0b\xbf\x58\x09\xf3\xf5" "\xf8\x09\xda\xd6\x51\x30\x39\x83\x95\xa7\x24\xd9\x29\xcd\xfa\x27\xa4\x55" "\xd4\x47\x96\x3d\x8f\x70\x2c\xf3\xc0\x13\x16\x6a\x92\x01\x0b\xa0\xf2\xda" "\x28\x00\x8a\x29\xf5\x0f\xc8\x07\x7f\x10\x41\x44\x49\x41\xfb\x3b\x7d\x02" "\xfd\x14\x38\x6f\xe9\xe2\x47\xa0\x90\x70\x8f\x06\x45\xbd\x35\x9e\x28\x0e" "\xbb\xd7\x02\x8f\xbf\x56\xd5\x39\xf7\xab\x6a\x8c\x93\xc8\xe6\x0a\x48\xba" "\x98\x46\xde\xb4\x56\xac\x0d\x8f\xb2\x02\x78\x12\xaa\xf6\x0c\x1f\x07\xd0" "\x0f\x48\x35\x49\x94\xb2\x16\x3d\x48\xed\xae\x1f\x6f\xcf\x39\xd7\x06\x4c" "\x7a\xfa\xf0\x06\x70\x36\xe3\x82\x01\x4b\x16\x17\x9b\xc6\x27\xe7\x49\x46" "\xbf\x9e\x5f\x1d\x48\xbf\x69\xe9\xf7\x38\xef\xa6\x04\x4e\xfa\xbf\xdc\xd8" "\xe1\x16\x9c\xb9\x8f\x12\x45\x60\x2c\x7c\xd6\x0f\x9e\x22\xd4\x7c\x95\xa7" "\x3c\x8f\xb0\x69\x03\x8c\x1c\xcb\xce\x52\x3f\x04\x33\xcc\xb6\xf8\x64\xd1" "\x3a\xf4\xab\xbc\x43\xf7\x9c\xa4\x3e\x40\xa0\x8f\xa4\x6e\x05\x5e\x53\x4b" "\x0d\x82\x83\x6f\x61\x6b\x8a\xa7\x2f\xf8\x2c\x05\xca\x43\x41\xf9\x83\xe6" "\x12\x13\x59\xc0\x6b\xfa\x74\xfa\xb7\x59\x53\x51\x5e\x2a\xd6\xa5\x79\xcc" "\x4b\xa1\x0a\x7f\x2a\x62\xf5\xfd\xb1\x54\x81\x75\x7d\x33\x72\x93\xe5\x0d" "\xab\x3e\x0c\x7f\xb0\x72\x7b\x00\x8f\x55\xf4\x04\x8f\x03\x56\x31\xb6\x6b" "\x62\xd1\xe9\xf0\x67\x35\x10\x3f\x4c\xa3\x74\xd2\xb3\x7d\xe7\xc8\xb7\x01" "\x83\x05\x9c\x9c\xd5\xa4\x2f\x47\xae\xf4\x53\x94\x4f\xc4\x60\x47\x02\x67" "\x53\x2e\xc3\x0b\x4f\x36\x92\xdb\x3b\x71\x29\xa1\x9c\x83\x82\x40\xbc\x77" "\x79\xeb\x99\x2b\x0c\x26\xac\x56\x94\xca\xa5\x86\x4b\x9d\x03\xe4\xb8\xc8" "\xcc\xe1\x1a\x96\x4a\x24\x1a\xba\x9c\xc6\xcf\x9f\xc4\x0c\x0b\x02\x2d\xfc" "\x52\x0a\xf0\x7a\xb8\xa7\x39\x8a\xb0\x17\x8f\x14\x6a\x6d\xe3\x4d\x01\x1c" "\xf2\x06\xfc\xf2\xff\xca\x75\x9c\x2f\xa5\xd8\x7b\xaf\xf0\xd1\x04\xb6\xf8" "\x5f\x95\xe4\xf6\xe8\x2b\x15\x86\xd2\x63\x9c\xae\x38\x30\xac\x8f\x14\x17" "\x0d\x87\xb6\x9b\x3e\xad\xa6\xa2\x47\xa8\xae\x65\x6a\x59\xfd\x61\x51\x60" "\xd2\x4c\xcb\x0f\xbb\xda\xdb\x98\xf1\x04\xac\x85\x29\x97\x60\x42\xd8\x1c" "\x90\x3b\xf3\x0c\xb1\x9c\xb1\x0a\x40\xf5\xe1\xcc\x45\xd4\x1e\x87\xff\x3e" "\x5c\x87\xcb\x2a\x9b\x30\x32\x56\xcb\xca\xc2\xb1\x70\x59\x20\xa7\xd6\x8b" "\xea\xb6\x0d\x07\x67\x53\xef\xf5\xc0\xbe\x75\x48\xf3\x51\x08\xd1\xfd\x30" "\x8b\x44\x3e\x2a\x87\x8a\xc3\x53\x4b\x31\xb1\x9d\xb0\x98\x20\x4c\xcf\x0e" "\x19\x09\x0c\xf1\x3d\xfa\xda\x2d\x85\x08\xdb\x0e\x34\xa7\x55\x75\xc2\xa9" "\x23\x81\x55\x27\x3b\x23\x19\x4c\xeb\x8a\x7b\x33\x06\xe1\x0e\xa5\xe5\x8e" "\xaa\xc0\x0d\x01\xf0\xbc\x60\x90\x0c\xb7\x09\x0c\x04\x3f\x8c\x1b\x65\xf9" "\x04\x75\xa1\x11\xb2\x8a\x21\x5a\xf6\xeb\xe4\x2e\x67\x22\xaa\x77\x5a\xd4" "\x71\xf5\xfb\x0e\x93\xbd\x05\x36\xf3\xa7\x7e\x39\x1f\x7a\xcd\xe2\xda\x93" "\x55\xe5\xbc\x8c\xf5\x30\x00\xdd\x25\x26\x5b\x8f\xa1\xf8\xa0\x4e\x36\x00" "\x12\xf6\x03\xd1\x1a\x32\xbe\x01\xe8\x35\xc6\x2e\x1a\x8c\x28\xa3\xdd\xcc" "\x2f\x48\xbc\x83\x76\x8b\xf9\x44\x87\xaa\x3b\x57\xb3\x93\x53\xb2\x80\x90" "\x5b\x8b\x31\x56\x41\x4f\x82\x7c\xf4\xfb\x90\x1a\x1d\x34\xf5\x17\xe4\x02" "\x3b\x21\xa6\xbf\x89\x2f\xad\xe9\xa3\xb3\xc2\x4f\x78\xbe\xad\x9f\xa2\x92" "\x13\x68\x9e\x1b\x39\x7a\x2f\x2b\xa9\x14\x6f\xf8\x50\x26\x80\x19\x9e\xd0" "\x79\xbc\x9f\x92\x86\x09\x23\x4c\x63\xd8\xf2\x89\x3c\xa0\x6a\xa5\xf2\x66" "\x47\x69\x27\x54\xc0\xbb\xd0\xa0\x7e\x2c\x15\xa7\xa3\xa4\xc8\x0d\x12\xaf" "\xba\x1b\xec\x17\x32\xe3\x16\x06\x75\xc4\x71\x56\x65\xb2\xd7\xa4\xba\x0c" "\x5d\x19\xfb\x59\x96\x7e\x2f\xba\x57\x7a\x4b\xb0\x03\xec\x91\x5b\x54\x64" "\x43\x6b\xb3\x57\x4a\xac\x81\xe1\x69\xdf\x8c\xd8\x54\xe8\x91\xb7\x17\xb7" "\xe1\x4d\x50\x53\x79\x81\x2d\x06\x67\x5b\x45\x6e\x71\x8e\x46\x60\xa2\x7a" "\xa0\x59\x89\x61\x19\x60\x52\x4e\xe7\x36\x36\x85\x83\x54\xae\x0e\xbe\xb6" "\x7e\x5a\xf6\xb5\xca\x23\x87\x2f\xbd\x94\xee\xdb\xf8\x90\x6d\x73\xa2\x5b" "\xea\xd6\xd5\x00\x4b\xef\x13\x23\xc1\x5b\x67\xa9\x12\xe0\x0b\x09\x6b\x34" "\x17\xeb\xd2\xa1\x89\x30\x5f\xa8\xae\xe8\xa6\xdd\x27\xde\x94\x3d\x95\x75" "\xf2\x66\x48\xc0\xea\x57\x65\x6a\xf6\x1f\x49\xeb\x9c\x19\x5c\xdd\x98\x77" "\xda\x70\xa7\x6a\xb9\xe6\x24\x13\x0f\x7c\x85\x44\x22\xb4\x43\x4d\xbf\x5f" "\xd8\x2d\xe7\xf0\x55\xd6\xdc\x8c\xec\x86\x60\xad\xc4\x5c\xfc\x38\xcb\x3f" "\x3b\xfe\xbd\xd7\xe8\x76\x5f\x4e\x3b\xb9\xec\xd1\xaf\x14\x59\x69\x39\x65" "\x47\xdb\x1d\xc3\x80\x2d\x2f\xa4\xe8\x12\x79\xab\x30\x62\xff\x4c\x19\x7f" "\xe3\x13\x6c\xa9\x61\x77\x0d\x36\xf9\xf5\x51\x19\xd0\x51\x1f\x20\x97\x53" "\xd0\x08\xec\x19\xcc\xc4\x03\xf9\xeb\x7c\x2f\x93\x43\x22\x2f\x5a\x3f\x07" "\xba\xb9\x52\x02\xc4\x9a\x7c\x9c\x3c\x13\x68\xc7\x24\x44\xa2\x31\xc1\x93" "\x7e\x95\xa4\x4f\x1d\xa7\xde\xc0\x15\x8f\xfd\x30\x97\xdc\xec\xf6\xf8\x42" "\xf7\x06\x6f\x84\x60\x94\x24\x8f\x81\x9f\x69\x69\x1e\xe9\x60\x1f\x13\x2c" "\xe8\x49\x0d\xac\x17\x13\x05\xea\xda\x4d\xad\x3d\xe7\x30\x24\x7e\x95\xad" "\xb3\x91\x6f\x61\x18\xfe\xa9\x0d\xb1\x5b\x20\xe4\x66\xc1\xc9\xc2\x7f\x35" "\x99\x82\x09\xca\x8c\xa8\x52\x7a\xbb\xa8\x7b\x8d\xa3\x08\xe5\x05\x81\xab" "\x6e\x7c\x89\x70\xde\xb0\x0e\x80\x97\x69\x98\x84\x05\x8a\x2a\x67\x08\x47" "\x2d\x84\x81\x03\x76\x4e\xd4\x8f\x12\x6e\x4e\x93\x76\x50\x9d\x34\xdf\x85" "\xf9\xf6\x06\xfe\x1d\x51\xcd\xee\x96\xf1\x85\x5c\x19\x4d\x61\x3e\x2b\x0e" "\x67\xba\xd2\xd0\x5b\x8b\x99\x21\x09\xcf\x8b\x69\x51\xf6\x3a\x1d\xc3\xd6" "\x0b\xc4\x96\xcc\xd4\x65\x2a\x75\x51\xaa\x6f\xc7\x19\xb6\x92\x80\xe8\xf1" "\x68\xcb\x1d\x61\x25\x18\x67\x89\x6e\xff\x9c\x72\xb9\xfe\xc7\xb3\xe6\x73" "\x9b\xf8\x66\x30\x10\xe3\xf1\x9a\xba\x58\x47\xc6\xde\xa9\xf4\xed\xe5\x76" "\xd8\x12\xc3\x6b\xbd\xa7\x00\x15\x0b\x61\xe8\x7a\x85\xad\xa5\x02\xa8\x61" "\x6f\x19\xcf\xc5\x03\x7d\x34\xea\xf9\xf8\x11\xcf\x7f\x6a\xb5\xe9\xe2\xb9" "\x89\xec\xf0\x5e\x6d\x14\x51\x3d\x59\x29\x3c\xdf\xa6\x7b\x2f\xc2\x5f\xdb" "\xab\xf0\xbf\x28\xaa\x14\x47\x6e\xce\x5f\xd9\xb4\x5f\x77\xec\x37\x6f\x73" "\xff\x1c\x8f\x5b\xde\x61\x0d\x9c\x35\x8e\x34\x74\x05\xb1\xd2\x45\x3d\x21" "\xdb\xe4\xcc\x67\x75\x23\x54\xba\xb7\xcd\xf7\xec\xfd\x68\x59\xd3\x47\x57" "\x61\xab\xb4\x29\x55\xe0\xb7\x7d\xb0\x81\xb1\x6b\x67\x7d\xfd\x62\x1a\x60" "\x40\xae\xf0\xf1\xfc\x55\x7a\x8f\x94\xe4\xd5\x10\x0c\xbf\xf8\x56\x60\x2f" "\xb2\x03\x8d\xd8\x5b\x15\x49\x32\x99\x9f\x38\xae\x20\x79\xd1\x56\xdd\xa4" "\xe8\x35\x4d\x94\xe0\xc6\x71\xe7\xdc\x1a\xef\xb4\xe8\xee\xed\xff\xb1\xb7" "\x94\x32\xd3\xe1\x2d\x3c\x84\xa0\xa6\x7b\xfd\x54\xa8\x04\xb6\x10\x02\x2b" "\x61\xb2\x3e\x25\x4e\xc1\xac\x54\x1b\x07\x94\xab\x2a\x75\x3f\x26\xf6\x85" "\x0d\xd7\xf9\xcd\x20\xfe\x75\xe6\x46\x36\x7e\xbc\xdf\x87\xb3\xec\x57\x1b" "\xb1\x48\x9a\x16\xb4\xc3\x3e\x4c\xf7\xfb\xc6\x04\x75\x8f\xd8\x02\xbf\xb1" "\x0a\x4b\xde\x91\x18\xaf\x1b\xad\xfc\x4e\x77\x52\xd0\x21\x36\x85\x14\xae" "\xd3\x0a\x89\xe7\x8f\x48\xaf\xdf\x5b\x44\x63\xca\xc1\xc1\xa7\x6d\x9e\xfb" "\xd9\x84\xee\x5c\x9f\x30\x72\xc7\xd9\x30\x22\xc4\x38\x4c\xce\x3c\x42\x9e" "\x60\x42\x07\xc5\xa5\xdc\x2f\x1d\x29\xaa\xa7\x92\x8e\x83\xbb\xc3\x3f\xaf" "\xf0\x8e\x80\x94\x02\x39\xd3\xda\x76\x46\xba\xe7\xde\xbd\xc7\xcb\x20\x4e" "\xae\x7d\xa9\xf9\x11\xe1\x75\xaf\xb2\x2d\xbc\xcc\xe1\x05\x7c\xf2\xca\x9f" "\x0a\x41\x1a\xc6\x61\xfb\xfa\xb9\x45\x84\x14\xf7\xd4\xb2\xa5\x4f\x6a\x1e" "\x6e\xc3\xf4\x9e\xbf\x1c\xf0\x7a\x24\x59\xaf\x72\x15\x30\x01\x0c\xcc\x1b" "\x09\xf9\x20\x56\x3e\xed\x21\x94\x31\x67\x85\x8d\x27\xcd\x16\x7b\x43\x58" "\xeb\x84\xbf\x33\xa2\xf7\x41\x7a\xfe\xa9\x52\xad\xcc\x20\xf7\x2e\x26\xe9" "\x69\xe2\x8f\xc3\x83\xfb\xd2\xc7\xf7\x96\x65\x71\xc8\xa3\x45\x57\x50\x05" "\xfe\x5b\xc5\x46\x8d\xf3\xc5\x94\xfd\x4e\x63\x25\xb1\x97\xd7\xb1\xce\x43" "\xb8\x55\xa5\x1d\x5a\xb9\xb2\xf2\xc9\x92\x59\x9d\xb3\x03\x27\xb3\xe6\x1e" "\xd7\x05\x06\xa4\x40\x92\x51\x25\x88\xa0\x4e\x4e\x7d\xac\x41\x60\x8a\x29" "\x3a\x2c\xab\xc3\xb6\xe8\xaa\x2a\x13\xdb\x80\xd7\x80\xc0\xfa\x7b\x8e\xf5" "\x53\x8c\xa0\xa1\x3d\x64\xed\x31\xfd\x7c\xeb\x27\x5c\xdf\x0d\xa2\xf2\x91" "\x11\xae\xcf\xdd\xd9\x15\x51\xe0\x3f\xe9\xfd\x1e\x1a\x6f\x8f\x57\x8d\x7b" "\xd3\xc8\x70\x2a\x2f\x5d\x24\xb9\xe6\x05\x48\xc2\x22\x8b\x90\x55\xae\xf3" "\x55\xa9\x28\xcf\x41\xa4\x37\x5f\xdb\xf7\xd0\x0f\x1e\x42\x8a\xf5\xb3\xcc" "\xa6\x30\x4a\xaa\xe7\xc7\x5a\xe1\xe2\xc7\xc7\x5c\xbd\x93\xfa\xa2\x28\x84" "\x73\x21\x63\xba\xde\x92\x73\x97\x8e\x1a\xb1\x5b\x8e\x2c\xe5\xb1\xcb\x80" "\x6f\xfe\x89\x03\x39\x2b\x95\xe0\x66\xb0\xa3\x27\x3d\x9e\xe3\xc5\x10\x12" "\x64\xbb\x5c\xc7\xed\x30\x7d\x65\x98\x20\x3d\x84\x35\x5a\x62\xd5\x58\xab" "\x21\x14\x89\xd8\x58\xfa\x0a\x9d\x65\x0d\xcb\xa1\xda\x85\xaa\xb7\x28\xf5" "\xdd\x51\xf5\x20\x13\xf4\xa7\xa8\xa8\x14\xc0\x3c\xca\x2d\x91\x99\x87\x6d" "\x51\x7a\xa3\x21\xb0\x87\xaf\x80\x63\x2c\x9b\x3e\xed\xc6\x1d\x7d\xcd\x9b" "\x38\x07\x83\xae\xdc\x76\xb2\xf5\x71\xc3\xf6\x17\xaf\xa3\xd4\xa1\x88\xd4" "\x06\x48\xd2\x4d\x3a\x7b\x2d\x67\x79\xab\x48\x29\xc2\x0c\xa1\x40\xdb\x83" "\xc8\x2f\x50\x71\xa5\x3e\x53\x60\x0b\x23\x7b\x66\x45\x37\x83\xca\x40\x21" "\x27\xfb\x10\x16\x46\x9a\x78\x9e\xd7\x98\x2a\xc5\x93\x15\x09\x54\xa2\x28" "\xb8\x13\x96\xf9\x08\x9e\xf6\xe5\x68\xa4\x42\xff\xa7\x4d\xd9\x9a\x05\x5b" "\x64\x9f\xe6\x2d\xb5\x63\x88\x03\x8a\x91\x06\x35\x6f\x0a\xf5\x14\x3c\xaf" "\x55\x03\x62\x19\xfe\xef\xe6\x0f\xe4\xd7\xa5\x3e\x20\xf9\x0a\xbc\xa2\x44" "\x19\xec\x3f\x4c\xa4\xee\xd3\xb7\x34\x0f\x61\x9a\xa8\xda\x5b\xfc\xd4\xa2" "\xa4\xcf\x79\xa2\x7e\xc1\xfd\xb7\xe9\x90\x67\xf6\x75\x9b\x66\x46\x7b\x89" "\xeb\xd8\x64\xcf\x65\xc7\x85\x9f\x53\x1b\x04\x2c\x16\x8a\xdf\x7c\x88\x85" "\xe1\x3d\x48\x49\x2f\xac\xc7\x71\x78\x63\x1d\xa8\x4e\x03\x69\x45\x63\x89" "\xa2\x40\x2f\x8d\x66\x04\x59\x7b\xb3\x38\x28\xd7\xd0\x2d\x12\xb5\xee\x65" "\x0e\x2b\x86\x97\x5b\x44\xbf\x37\xb7\xd1\x69\x85\x5b\x7a\x1e\x84\x7f\xbb" "\x98\x9d\xa4\x90\x7f\xb2\xec\xf5\xfa\x24\x9b\x72\xb3\xca\x7d\xe5\xf3\xf2" "\x94\x82\x27\x96\xff\xb8\x18\x85\x39\x55\xd0\xce\x4b\x09\x02\xe1\x65\xdc" "\x99\xbe\x15\x5d\x61\x32\x20\xf2\xa7\xb3\x01\x3e\xdf\x00\x11\xcf\xfa\x12" "\x8f\xa9\x68\x38\xb0\x58\xda\x61\x48\x44\xe3\xbc\x03\x33\xae\x81\x3f\x44" "\x37\x1d\xfd\xc7\xd9\xa3\x1e\x71\x5e\x4b\x8e\x31\x0c\xe5\x49\xd4\xfa\x07" "\xc5\x13\xe9\x1e\x92\x76\x87\x0f\x3e\xbe\xf5\x28\x9e\x28\x20\x58\x5b\x97" "\x48\x68\xbc\xb5\x61\xf9\x1f\xb9\x35\xcd\x97\x36\xe7\xfb\x55\x4d\x6a\x34" "\x54\xb8\x4e\x2d\x31\x40\xcb\x69\x67\xaf\xb7\x70\xb0\xdd\x3b\x75\xaf\x36" "\xa7\x8e\xd5\xde\xa3\xb0\x68\x7b\x9b\x28\x70\x6e\x01\xdf\x6b\xcb\xbd\xc0" "\xa5\x4d\x6f\x2c\xc8\xc0\x23\x24\xaf\xce\x33\xc3\x04\xb5\x26\x49\x7c\x98" "\x60\xc2\xd4\xa1\x4b\x65\xca\xdb\xa0\x0a\x5a\xdb\x22\x79\xa5\x44\x78\x3f" "\x5c\xcc\x69\x2a\xc2\x61\xed\x80\x36\x14\xf7\xe1\x96\xd8\xf5\x87\xb4\x0f" "\xd9\xac\x3f\xc8\x42\x90\x0b\x51\x38\x57\xc7\x26\x57\x72\x51\x76\xd2\xab" "\xea\x9a\xe8\x7d\x37\x00\x9d\x85\x46\xe4\x70\x67\x04\xce\x07\x1a\xd8\xf9" "\x7d\x49\x47\xf0\xf3\x4e\xf3\x18\xd7\xb9\xda\xe0\x56\xdc\xa6\xbf\x34\xfd" "\x16\xf2\x53\x27\xb8\x55\xeb\x0d\xde\xd2\xa6\xc5\xa4\x0b\x71\x3d\xcd\xb6" "\x11\x88\xd3\xfa\x32\xca\xbe\x3c\x56\xfc\x4a\x4a\x68\x35\x89\xa7\xd0\xef" "\x12\xe2\x42\x31\xde\x52\xe1\x96\x8d\x83\xc7\xff\x5f\x22\x53\x68\xd8\x6a" "\xca\x04\xb0\xf4\xb7\x34\xda\x8a\xdd\x84\x19\x71\x39\xc0\x0e\xf9\x54\xc1" "\x76\xe7\xed\xdf\x31\xbd\x03\xa3\xd0\xaf\x0a\xe6\xb9\xe0\xac\xb0\x07\xf9" "\x5b\xa9\x87\x29\x3f\x84\x5d\x80\x3d\xa5\x8c\x0b\x59\x2d\x2f\x22\xd7\xfd" "\xcf\x0d\x8c\xb9\x2b\xb2\xcd\x10\x9d\xf4\x5b\xbe\xa1\x9d\x7f\xba\x48\x8f" "\xc8\x98\x9b\xcd\x63\x96\x57\xf3\x4c\x6d\xa9\x42\x33\x80\xa0\x00\x4f\xe0" "\xb4\x02\x97\xb2\xb1\x51\x45\xe9\xe7\xec\x46\xdc\x49\x98\x6a\x12\xf6\xb1" "\x66\x35\x5f\x7d\xe6\x99\xf2\x5b\xd5\x2d\x79\x52\xf6\xeb\xd6\x9b\xaf\x2f" "\xe7\x72\x7e\xc8\x67\x16\xa1\xf3\xb2\xa3\x76\xa6\x66\xbe\x7b\x08\xa7\x5a" "\xa8\x01\x43\xe6\x5e\x6f\x60\x32\x6c\xe3\x94\x72\xc4\x4c\xe4\xf8\xf1\xf4" "\x77\x9b\x1e\xbe\x84\xe4\x07\x63\x8a\x16\x0e\xdb\x9b\xe0\x12\x96\xbe\xf6" "\x65\xa6\x63\x1f\xaa\x4a\x17\xe0\xdb\xf8\x81\x1b\x87\x15\x36\x7e\x71\x86" "\xdb\xd5\xb1\x66\xd9\xae\xe7\x68\xea\x59\x5f\x52\x42\xc6\xb8\xbb\xab\x0c" "\x86\xb9\x9c\x6a\x0e\x58\x54\xcf\xe0\xcb\x8a\x67\x57\x88\x02\xec\x54\xa1" "\xe9\x94\x28\x89\xec\xf0\xa3\x80\xce\x28\x82\xb9\x85\xed\x8a\x98\xc3\xf0" "\xab\x2a\x6b\xc6\x1b\x6b\x08\xae\x80\xf4\x4c\x7c\xe8\xd5\x2a\xe6\xba\xae" "\xac\x98\xa1\x81\xd6\x19\x79\x12\xae\xf8\x0f\x5d\x40\xb1\x0f\xdd\x50\x8d" "\xab\x40\xb6\x70\x0c\x88\x52\xe4\x87\x81\x89\xc3\xa2\x9f\x68\xe0\x76\xab" "\x68\x20\x7f\x95\xff\x58\xf7\x8b\x8d\x5f\x62\xa2\x81\x26\xc9\x6f\x8b\x90" "\x54\xf7\xef\x76\xc1\x8e\xf8\x0b\xb3\xde\xe0\x97\x07\xea\x68\x09\xd6\x2f" "\x13\x23\xf1\x11\xdc\x7e\x8a\x67\xca\x06\x75\x8c\xb1\xe0\x5f\x30\x47\x79" "\xa3\x6d\x51\x12\x4e\x25\xe4\xbd\x37\x8e\xbd\xe1\xf3\x0b\xf0\x32\xb6\xfc" "\x88\x7e\xc1\xa5\xf3\x54\xa5\x84\xc2\x13\xb3\x31\xc5\xc1\xba\xb3\xa1\x37" "\x94\xce\xe8\x1d\x3f\x15\xff\x4f\x11\xf7\x41\x1c\xd8\xca\x5e\xb4\xec\xac" "\x48\x73\xc3\x0f\xb1\xfa\x57\x0f\x4d\x9b\xa8\x1b\x19\x3b\x00\x9a\x2b\x88" "\xa9\x59\x6f\x13\xc3\x8e\x2c\x86\xc4\x72\x2e\x48\xd7\xb3\x28\x0b\x0d\xda" "\x57\xe2\x1b\x15\x74\x97\xe2\xaf\xff\x3e\x29\x57\x90\xe2\xde\x5c\xb7\x82" "\xe4\x3b\x62\x7c\xe0\x0b\x42\xfc\x28\x8c\xad\x63\x99\xbb\x1f\xac\xf0\x7a" "\x1c\x99\x8c\xbd\xce\x93\x4c\xa4\x30\x49\x56\x95\xda\x64\x14\x96\x50\x45" "\x7d\x60\xf3\x22\xec\xef\xb0\x43\x62\xf4\xf6\xa1\xd4\x6d\x54\x6e\x6a\xc2" "\x98\x60\x75\xf2\x0f\xdc\x2d\x20\x3a\x10\xc8\x58\xee\xc9\xc5\x30\xc6\x1d" "\x34\xae\xc7\x84\x51\x7c\x61\x2c\xf6\x20\xd1\xe3\xf6\x26\x50\x93\xd8\xc8" "\x33\x3c\x9b\x8a\x12\x5c\x35\xb0\x94\xc4\x21\x55\x38\x9a\x4c\x75\x99\x9a" "\xab\x35\xe8\xbe\x1c\xca\xe0\x67\x8d\x81\x32\x5e\x4f\x74\x85\xc4\x57\xa8" "\xc2\x6c\x27\xe1\x7b\xb7\x75\x21\xb1\x4b\x73\x8b\x48\xaa\x9c\xb7\xde\x1f" "\x3e\xb0\xba\xf1\xa8\x0a\x82\x15\x3f\x99\x60\x1e\xc7\xec\x73\x9e\xc0\x90" "\xed\x4b\x1d\x74\x1d\x5b\xf8\x07\x06\x91\x6d\x3e\x88\x19\x8b\x7b\x35\x2f" "\xb7\x14\x7c\xc6\x23\x4d\xb0\x4d\x82\xd4\xa6\x99\x10\x83\x3e\x52\x7b\xe6" "\x66\x6e\x48\x31\xc2\x44\xdb\xe0\xb3\x7f\x0a\x5a\x87\x09\xb4\x74\x98\xc1" "\x4b\x44\xa0\x94\xe0\x6d\x52\xe4\x7a\xf8\x0f\x9c\x7b\x5c\x1e\xb1\xee\xb2" "\xeb\x70\x71\x90\x45\xb6\xef\x0d\x26\x96\x98\xba\x24\x95\x7d\x36\x30\x0f" "\xa4\xff\x36\x2c\x10\x94\x67\x6b\x83\xb9\x4a\xae\x6d\x10\xc9\x0f\xab\x46" "\x72\x59\x76\x96\xdf\xd8\x22\x47\xca\xbd\x04\xcf\xe7\x55\x64\xdc\xa2\x7e" "\x1b\x51\xad\x88\x7d\x21\x30\x92\xe0\x30\x9d\x21\x3d\xcd\x31\xf9\x22\x98" "\x7b\x57\xa8\x07\x77\x01\xfd\x88\xcf\xc3\xda\x21\xea\x5b\x47\x38\x8c\xff" "\xb8\x82\xa2\x74\x58\xf7\x0e\x97\xf1\x64\x9f\xab\x97\xa4\x2e\x9f\x2f\x9f" "\xdf\xad\x86\x1f\x08\x27\xd6\x94\x42\x1a\xe7\xa2\x2c\x58\x9d\x93\x90\x5e" "\xec\x2d\x97\x13\x07\x25\xf1\x6a\xe4\x38\x9d\xe9\x66\x0b\xe9\x60\x23\x39" "\x66\x3d\x1a\x79\x5e\x6b\x78\xa1\xb7\x6b\x00\x50\x71\xde\x89\xba\x3a\xa1" "\x2f\x60\x56\x42\x60\x73\x5e\x64\x8c\xa0\x08\x6c\xfa\x20\x24\xea\x2c\x72" "\xd1\x58\x32\xec\xa9\xc9\x4e\xe8\xbc\x91\xf3\x8f\x26\x0c\x5f\x7e\x5c\x80" "\x27\x13\x75\x75\xcd\xa6\x38\xc0\xfb\x60\xe8\x7c\x3d\xd6\x5e\x08\xaf\x8a" "\xd3\x2c\xbb\x44\x74\xdf\x69\xa5\x73\x7a\xbd\x0e\x65\xfb\x91\x00\xf9\x00" "\xe1\x73\xf1\x19\x4d\x28\xc9\xc9\x2e\x43\xea\x8a\xae\x1d\x7d\x79\x1a\x91" "\xf2\x23\x28\x16\x4a\x16\x20\x91\x4e\xb2\x14\xc2\x71\xb3\x0a\xcd\x6e\x6c" "\xd7\xd3\x6f\x22\xff\x2f\x72\x39\xc1\xdf\x40\xdd\x93\x21\x39\xe5\x3a\x71" "\x8b\xd5\x94\x67\x12\xe9\x5d\xd5\x55\x21\x1e\x24\xf1\xde\x7d\x56\x2d\x09" "\x25\xaa\x95\x84\x51\xb7\xb3\xb7\xa3\x80\xfc\xb6\x6a\x4d\x42\xab\x65\x15" "\xd6\xfa\x8d\x69\xed\x55\xa4\x97\x5c\x31\x2c\x0b\xb9\x46\x7b\xad\xe0\xf4" "\x88\x4e\x1e\x40\xc9\xd7\x50\x4e\xb4\x26\x93\xdd\x9e\x31\x04\x06\x70\xbc" "\xd0\x6f\xae\xb7\xc0\xcc\xcb\xe8\xd9\xec\xf3\xa9\xe7\x83\xe6\xf9\x20\x0f" "\xaa\x72\x9b\x07\x3a\x33\x82\xa1\xe3\xf5\x40\x33\x95\x04\x3b\xb8\x16\x6b" "\x27\xdd\x02\x1c\x76\xed\xa8\xe2\x89\x06\x00\x35\x7e\x1a\x4a\x59\x2d\xd6" "\x50\xd4\x7d\xc8\x31\x11\x1a\x32\xd8\xcd\x0f\x21\x2d\x99\xb0\xe7\xd1\x98" "\x96\x68\xc1\x69\x71\x1f\x9b\x4e\x3d\x23\x94\x52\xbe\x3d\x1a\xc2\xa4\x75" "\x66\x8e\x9f\xc7\x79\x04\xd0\x9f\xef\x9e\x7c\x95\x59\x27\xcb\xc2\x96\x71" "\xdb\x92\x31\xbb\xd7\x96\xca\x05\x40\x84\x36\x95\xfb\x93\xb2\x25\x94\x7a" "\xd2\x8f\xf2\x61\xad\xed\xa3\xc3\x53\xee\x69\xcb\x22\x7f\x7a\x8d\xdd\x0c" "\xb7\x6f\x22\x92\xbf\x64\xa5\x95\xd3\x65\x81\x0d\x63\x28\x3a\x68\x0e\x25" "\x83\x9d\xa6\x32\xbc\x88\x35\x12\x02\x94\x2f\x0e\x43\x02\x0e\x8e\x28\x27" "\x29\x67\x73\xdd\x64\xdd\x61\x88\x49\xfd\xb4\xf6\x0f\xf7\xf2\x10\xe7\x5c" "\x32\xeb\xbf\x0e\xaa\x3b\x01\x23\x6d\x9c\x28\xd0\x07\x85\x93\x39\x10\x40" "\x9a\x09\xea\xd9\x29\x9f\xdf\xd8\xc1\x68\x2b\x3c\x42\x47\xfb\x0b\xe2\x22" "\x18\xb8\xf9\x51\xf2\x9d\x05\x69\xb1\xc2", 4096); *(uint64_t*)0x20004b49 = -1; *(uint64_t*)0x20004b51 = -1; sprintf((char*)0x20004b59, "0x%016llx", (long long)-1); syscall(__NR_write, /*fd=*/r[2], /*data=*/0x20003a40ul, /*len=*/0x208e24bul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); use_temporary_dir(); loop(); return 0; }