// https://syzkaller.appspot.com/bug?id=21ef538681b8b738fa9cac48142096df938b61f7 // 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; } static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) { if (a0 == 0xc || a0 == 0xb) { char buf[128]; sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2); return open(buf, O_RDWR, 0); } else { unsigned long nb = a1; char buf[1024]; char* hash; strncpy(buf, (char*)a0, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; while ((hash = strchr(buf, '#'))) { *hash = '0' + (char)(nb % 10); nb /= 10; } return open(buf, a2 & ~O_CREAT, 0); } } //% 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[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$udf arguments: [ // fs: ptr[in, buffer] { // buffer: {75 64 66 00} (length 0x4) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x4040 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {6c 61 73 74 62 6c 6f 63 6b 3d 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 2c 75 6d 61 73 6b 3d 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 32 // 2c 64 6d 6f 64 65 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 // 30 30 30 37 37 37 37 37 2c 6e 6f 76 72 73 2c 73 68 6f 72 74 61 64 // 2c 73 68 6f 72 74 61 64 2c 75 6e 64 65 6c 65 74 65 2c 69 6f 63 68 // 61 72 73 65 74 3d 63 70 34 33 37 2c 73 68 6f 72 74 61 64 2c 75 6d // 61 73 6b 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 // 30 30 30 30 36 2c 64 6d 6f 64 65 3d 30 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 31 31 2c 66 69 6c 65 73 65 74 3d // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 31 2c 75 // 69 64 3d} (length 0xef) // } // union ANYUNION { // ANYRES64: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {b2 11 fe 7c 9f de cf 8b 18 29 33 b4 94 f3 69 7d // b3 78 11 73 93 31 52 8d 44 50 73 3b 20 38 68 fc 9e d7 f7 c6 52 d0 // 9d a4 8c da 01 db a5 db 36 56 f6 98 96 e9 25 39 f7 b9 d5 ef 49 1a // b4 7d 33 a7 9c 49 9b 76 87 42 4a 52 97 84 85 e1 23 12 d5 5b 9a db // 4b 92 e5 42 47 2f 2a f1 81 fe a4 ea 71 c4 cf 0b a3 32 49 8a 92 45 // 12 ac 59 37 07 3e 25 8a 8c c3 df b0 3f 8d 1c 93 8c cb 48 a7 84 60 // ad 5b 72 54 24 d0 a9 83 a7 79 e0 41 4e c0 69 5d 6f 76 36 95 48 54 // ac 40 13 e8 9a d9 f9 3f 12 26 94 6e 72 e5 df 7d c4 42 25 c7 73 7a // 58 0d 96 7c 23 b6 90 29 be 3c 9c 2a b8 b1 d9 89 89 fd 7b 32 aa 3b // 96 8b 53 13 5c a6 62 76 42 e4 fd 6b a1 f6 af 6b 86 39} (length // 0xd2) // } // union ANYUNION { // ANYBLOB: buffer: {cd f7 c0 c4 ad a5 80 d5 d3 6b d9 08 06 b6 70 b7 // 3b b5 11 2f 75 ca 48 36 52 cf 9b 8a 22 55 5c 3a f3 4a 84 c5 74 7a // c5 1a a8 90 ca 20 5a 0f 27 d7 dd e8 1a d3 a0 1f 21 81 0b 6d e2 d5 // 6b e0 54 16 c5 4e 1c 6e 84 59 e1 64 3b 12 93 27 58 1f 77 16 b3 8d // b3 d3 f3 bb eb 6d 1b 84 6a 2a ad 65 4e 17 95 85 0a 1f 82 ac 73 83 // 87 d9 c3 00 9d 18 eb 2a 78 25 8f cc 4a c4 eb 6a 12 a5 65 0e 10 eb // f0 77 d9 ab 33 f2 4d e7 cb ff e0} (length 0x89) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // } // } // chdir: int8 = 0x2 (1 bytes) // size: len = 0xc43 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc43) // } // ] // returns fd_dir memcpy((void*)0x200000000080, "udf\000", 4); memcpy((void*)0x200000000e40, "./file1\000", 8); memcpy((void*)0x200000000f80, "lastblock=00000000000000000000,umask=00000000000000000000002,dmode=" "00000000000000000077777,novrs,shortad,shortad,undelete,iocharset=" "cp437,shortad,umask=00000000000000000000006,dmode=" "00000000000000000000011,fileset=00000000000000000011,uid=", 239); *(uint64_t*)0x20000000106f = -1; memcpy( (void*)0x200000001077, "\xb2\x11\xfe\x7c\x9f\xde\xcf\x8b\x18\x29\x33\xb4\x94\xf3\x69\x7d\xb3\x78" "\x11\x73\x93\x31\x52\x8d\x44\x50\x73\x3b\x20\x38\x68\xfc\x9e\xd7\xf7\xc6" "\x52\xd0\x9d\xa4\x8c\xda\x01\xdb\xa5\xdb\x36\x56\xf6\x98\x96\xe9\x25\x39" "\xf7\xb9\xd5\xef\x49\x1a\xb4\x7d\x33\xa7\x9c\x49\x9b\x76\x87\x42\x4a\x52" "\x97\x84\x85\xe1\x23\x12\xd5\x5b\x9a\xdb\x4b\x92\xe5\x42\x47\x2f\x2a\xf1" "\x81\xfe\xa4\xea\x71\xc4\xcf\x0b\xa3\x32\x49\x8a\x92\x45\x12\xac\x59\x37" "\x07\x3e\x25\x8a\x8c\xc3\xdf\xb0\x3f\x8d\x1c\x93\x8c\xcb\x48\xa7\x84\x60" "\xad\x5b\x72\x54\x24\xd0\xa9\x83\xa7\x79\xe0\x41\x4e\xc0\x69\x5d\x6f\x76" "\x36\x95\x48\x54\xac\x40\x13\xe8\x9a\xd9\xf9\x3f\x12\x26\x94\x6e\x72\xe5" "\xdf\x7d\xc4\x42\x25\xc7\x73\x7a\x58\x0d\x96\x7c\x23\xb6\x90\x29\xbe\x3c" "\x9c\x2a\xb8\xb1\xd9\x89\x89\xfd\x7b\x32\xaa\x3b\x96\x8b\x53\x13\x5c\xa6" "\x62\x76\x42\xe4\xfd\x6b\xa1\xf6\xaf\x6b\x86\x39", 210); memcpy( (void*)0x200000001149, "\xcd\xf7\xc0\xc4\xad\xa5\x80\xd5\xd3\x6b\xd9\x08\x06\xb6\x70\xb7\x3b\xb5" "\x11\x2f\x75\xca\x48\x36\x52\xcf\x9b\x8a\x22\x55\x5c\x3a\xf3\x4a\x84\xc5" "\x74\x7a\xc5\x1a\xa8\x90\xca\x20\x5a\x0f\x27\xd7\xdd\xe8\x1a\xd3\xa0\x1f" "\x21\x81\x0b\x6d\xe2\xd5\x6b\xe0\x54\x16\xc5\x4e\x1c\x6e\x84\x59\xe1\x64" "\x3b\x12\x93\x27\x58\x1f\x77\x16\xb3\x8d\xb3\xd3\xf3\xbb\xeb\x6d\x1b\x84" "\x6a\x2a\xad\x65\x4e\x17\x95\x85\x0a\x1f\x82\xac\x73\x83\x87\xd9\xc3\x00" "\x9d\x18\xeb\x2a\x78\x25\x8f\xcc\x4a\xc4\xeb\x6a\x12\xa5\x65\x0e\x10\xeb" "\xf0\x77\xd9\xab\x33\xf2\x4d\xe7\xcb\xff\xe0", 137); sprintf((char*)0x2000000011d2, "0x%016llx", (long long)-1); memcpy( (void*)0x200000001200, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x2d\xc5\xa5\xdd\x56" "\x4c\xec\x28\x4e\x1a\x17\x9b\xb6\x48\x65\xc5\x72\xf5\x2f\xa6\x62\x15\xee" "\xaa\xa6\xd9\x06\x90\x65\x22\x14\x73\x0b\xc0\x15\x49\xa9\x0b\x53\x24\x41" "\x52\x8d\x6c\xa4\x05\xdd\x4b\x0f\x3d\x04\x28\x8a\x1e\x72\x22\xd0\x1a\x05" "\x52\x34\x30\x9a\x22\xe8\x91\x69\x5d\x20\xb9\xf8\x50\xe4\xd4\x13\xd1\xc2" "\x46\x50\xf4\xc0\x16\x01\x72\x0a\x18\xcc\xec\x5b\x71\x49\x51\x32\x23\x8a" "\x12\x65\x7d\x3e\x36\xf5\x9d\x9d\x7d\x6f\xf7\xbd\x79\xab\x19\x8a\xe0\x9b" "\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\xc4\x1f\xbc" "\x7a\xe1\xe4\xa9\xf4\xb0\x5b\x01\x00\x3c\x48\x97\xc6\xbe\x7a\xf2\xb4\xeb" "\x3f\x00\x3c\x56\x2e\xfb\xf7\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1c\x74\x29\x8a\x78\x2a\x52\xcc\x5f\x5a\x4f\x13\xd5\xe3\x8e\xfa\xc5" "\x76\xdf\x8d\x9b\xe3\xc3\x23\x3b\x57\x1b\x48\x55\xcd\x43\x55\xf9\xf2\xab" "\x7e\xea\xf4\x99\xb3\x5f\x7a\x71\xe8\x5c\x37\x2f\xb6\x67\xef\x52\xff\x7e" "\xfb\x6c\xbc\x3e\x76\xf9\x42\xe3\x95\xb9\xeb\xf3\x0b\xd3\x8b\x8b\xd3\x53" "\x8d\xf1\xd9\xf6\xe4\xdc\xd4\xf4\xae\x5f\x61\xaf\xf5\xb7\x3b\x5e\x1d\x80" "\xc6\xf5\x37\x6e\x4c\x5d\xbd\xba\xd8\x38\xfd\xc2\x99\x2d\x4f\xdf\x1c\xfc" "\xb0\xff\xc9\xa3\x83\xe7\x87\x9e\x3b\xf1\x6c\xb7\xec\xf8\xf0\xc8\xc8\xd8" "\x66\x91\x7a\x6f\xf9\xda\x3d\x37\xa4\xe3\x4e\x33\x3c\x0e\x47\x11\x27\x22" "\xc5\xf3\xdf\xfd\x49\x6a\x45\x44\x11\x7b\x3f\x16\xf5\x07\x3b\xf6\xdb\x0d" "\x54\x9d\x38\x5e\x75\x62\x7c\x78\xa4\xea\xc8\x4c\xbb\x35\xbb\x54\x3e\x39" "\xda\x3d\x10\x45\x44\xa3\xa7\x52\xb3\x7b\x8c\x76\x1e\x8b\xa8\xf5\x3d\xd0" "\x3e\xdc\x59\x33\x62\xb9\x6c\x7e\xd9\xe0\xe3\x65\xf7\xc6\xe6\x5b\x0b\xad" "\x2b\x33\xd3\x8d\xd1\xd6\xc2\x52\x7b\xa9\x3d\x37\x3b\x9a\x3a\xad\x2d\xfb" "\xd3\x88\x22\xce\xa5\x88\x95\x88\x58\xeb\xbf\xfd\xe5\xfa\xa2\x88\x5a\xa4" "\xf8\xf6\x91\xf5\x74\x25\x22\x0e\x75\x8f\xc3\x17\xab\x89\xc1\x77\x6e\x47" "\xb1\x8f\x7d\xdc\x85\xb2\x9d\x8d\xbe\x88\x95\xe2\x11\x18\xb3\x03\xac\x3f" "\x8a\x78\x2d\x52\xfc\xf4\xbd\x63\x31\x99\xcf\x33\xd5\xb9\xe6\x0b\x11\xaf" "\x95\xf9\xfd\x88\x77\xca\x7c\x39\x22\x95\x1f\x8c\xb3\x11\x1f\xec\xf0\x39" "\xe2\xd1\x54\x8b\x22\xfe\xb2\x1c\xff\xf3\xeb\x69\xaa\x3a\x1f\x74\xcf\x2b" "\x17\xbf\xd6\xf8\xca\xec\xd5\xb9\x9e\xb2\xdd\xf3\x4a\x79\x7d\x78\x7b\xf7" "\xd7\x87\xdb\xce\x14\x0f\xe9\xfa\x30\xb0\x2d\x1f\x8c\x03\x7e\x6e\xaa\x47" "\x11\xad\xea\x8c\xbf\x9e\xee\xfd\x9b\x1d\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xee\xb7\x81\x28\xe2\x33\x91\xe2\xd5\xff\xf8\x93\x6a" "\x5e\x71\x54\xf3\xd2\x8f\x9c\x1f\xfa\xc3\xc1\x5f\xed\x9d\x33\xfe\xcc\x47" "\xbc\x4e\x59\xf6\x85\x88\x58\x2e\x76\x37\x27\xf7\x70\x9e\x18\x38\x9a\x46" "\x53\x7a\xc8\x73\x89\x1f\x67\xf5\x28\xe2\x4f\xf3\xfc\xbf\xb7\x1f\x76\x63" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x6b\x45" "\xfc\x38\x52\xbc\xf4\xfe\xb1\xb4\x12\xbd\x6b\x8a\xb7\x67\xaf\x35\x2e\xb7" "\xae\xcc\x74\x56\x85\xed\xae\xfd\xdb\x5d\x33\x7d\x63\x63\x63\xa3\x91\x3a" "\xd9\xcc\x39\x91\x73\x39\xe7\x4a\xce\xd5\x9c\x6b\x39\xa3\xc8\xf5\x73\x36" "\x73\x4e\xe4\x5c\xce\xb9\x92\x73\x35\xe7\x5a\xce\x38\x94\xeb\xe7\x6c\xe6" "\x9c\xc8\xb9\x9c\x73\x25\xe7\x6a\xce\xb5\x9c\x51\xcb\xf5\x73\x36\x73\x4e" "\xe4\x5c\xce\xb9\x92\x73\x35\xe7\x5a\xce\x38\x20\x6b\xf7\x02\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x7c\x9c\x14\x51\xc4\xcf\x23\xc5\xb7\xbe\xb1" "\x9e\x22\x45\x44\x33\x62\x22\x3a\xb9\xda\xff\xb0\x5b\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\xfa\x53" "\x11\xdf\x8b\x14\x8d\x3f\x6a\xde\xda\x57\x8b\x88\x54\xfd\xdf\x71\xac\xfc" "\xe3\x6c\x34\x0f\x97\xf9\xc9\x68\x0e\x95\xf9\x72\x34\x2f\xe4\x6c\x55\x59" "\x6b\xbe\xfd\x10\xda\xcf\xde\xf4\xa5\x22\x7e\x14\x29\xfa\xeb\xef\xde\x1a" "\xf0\x3c\xfe\x7d\x9d\x47\xb7\x3e\x06\xf1\xce\x37\x37\x1f\x7d\xb6\xd6\xc9" "\x43\xdd\x27\x07\x3f\xec\x7f\xf2\xe8\x91\xf3\x43\x23\xbf\xf1\xcc\x9d\xb6" "\xd3\x4e\x0d\x38\x7e\xb1\x3d\x7b\xe3\x66\x63\x7c\x78\x64\x64\xac\x67\x77" "\x2d\xbf\xfb\x27\x7b\xf6\x0d\xe6\xf7\x2d\xee\x4f\xd7\x89\x88\xc5\x37\xdf" "\x7a\xa3\x35\x33\x33\xbd\x70\xef\x1b\xe5\x47\x60\x0f\xd5\x1f\xa1\x8d\x54" "\x7b\x5c\x7a\xba\xff\x1b\xfd\x11\x71\x00\x9a\x71\xf7\x8d\xa8\x1d\x88\x66" "\x3c\x9c\xbe\xf3\x18\x28\xaf\xff\x1f\x44\x8a\xdf\x7d\xff\x3f\xbb\x17\xfc" "\xce\xf5\xbf\x1e\xbf\xd2\x79\x74\xeb\x0a\x1f\x3f\xfb\xb3\xcd\xeb\xff\x4b" "\xdb\x5f\x68\x97\xd7\xff\xda\xf6\x7a\xf9\xfa\x5f\x5e\xd3\x77\xba\xfe\x3f" "\xd5\xb3\xef\xa5\xfc\xdd\x48\x5f\x2d\xa2\xbe\x74\x7d\xbe\xef\x68\x44\x7d" "\xf1\xcd\xb7\x4e\xb4\xaf\xb7\xae\x4d\x5f\x9b\x9e\x3d\x7b\xf2\xe4\x97\x87" "\x86\xbe\x7c\xe6\x64\xdf\xe1\x88\xfa\xd5\xf6\xcc\x74\xcf\xd6\x7d\x39\x5c" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x4e\x2a\xe2\xf7" "\x23\x45\xeb\x47\xeb\xa9\x11\x11\x37\xab\xf9\x5a\x83\xe7\x87\x9e\x3b\xf1" "\xec\xa1\x38\x54\xcd\xb7\xda\x32\x6f\xfb\xf5\xb1\xcb\x17\x1a\xaf\xcc\x5d" "\x9f\x5f\x98\x5e\x5c\x9c\x9e\x6a\x8c\xcf\xb6\x27\xe7\xa6\xa6\x77\xfb\x76" "\xf5\x6a\xba\xd7\xf8\xf0\xc8\xbe\x74\xe6\x23\x0d\xec\x73\xfb\x07\xea\xaf" "\xcc\xcd\xbf\xb9\xd0\xbe\xf6\xc7\x4b\x3b\x3e\xff\x44\xfd\xc2\x95\xc5\xa5" "\x85\xd6\xe4\xce\x4f\xc7\x40\x14\x11\xcd\xde\x3d\xc7\xab\x06\x8f\x0f\x8f" "\x54\x8d\x9e\x69\xb7\x66\xab\xaa\xa3\x3b\x4e\xa6\xff\xe5\xf5\xa5\x22\xfe" "\x2b\x52\x4c\x9e\x6d\xa4\xcf\xe7\x7d\x79\xfe\xff\xf6\x19\xfe\x5b\xe6\xff" "\x2f\x6f\x7f\xa1\x7d\x9a\xff\xff\x89\x9e\x7d\xe5\x7b\xa6\x54\xc4\xcf\x22" "\xc5\xef\xfc\xd5\x33\xf1\xf9\xaa\x9d\x4f\xc4\x6d\xc7\x2c\x97\xfb\xbb\x48" "\x71\xfc\xdc\xe7\x72\xb9\x38\x5c\x96\xeb\xb6\xa1\x73\x5f\x81\xce\xcc\xc0" "\xb2\xec\xff\x45\x8a\x7f\xfa\xf9\xd6\xb2\xdd\xf9\x90\x4f\x6d\x96\x3d\xb5" "\xeb\x03\xfb\x88\x28\xc7\xff\x48\xa4\xf8\xde\x5f\x7c\x27\x7e\x33\xef\xdb" "\x7a\xff\x87\x9d\xc7\xff\x89\xed\x2f\xb4\x4f\xe3\xff\x74\xcf\xbe\x27\xb6" "\xdc\xaf\x60\xcf\x5d\x27\x8f\xff\x89\x48\xf1\xf2\x53\xef\xc6\x6f\xe5\x7d" "\x77\xbb\xff\x47\xf7\xde\x1b\xc7\x72\xe1\x5b\xf7\xe7\xd8\xa7\xf1\xff\x54" "\xcf\xbe\xc1\xfc\xbe\xbf\x7d\x7f\xba\x0e\x00\x00\x00\x00\x00\x00\x00\x00" "\xf0\x48\xeb\x4b\x45\xfc\x7d\xa4\xf8\xc1\x48\x2d\xbd\x98\xf7\xed\xe6\xf7" "\xff\xa6\xb6\xbf\xd0\x3e\xfd\xfe\xd7\xa7\x7b\xf6\x4d\xdd\x9f\xf5\x8a\x3e" "\x72\x63\xcf\x07\x15\x00\x00\x00\x00\x0e\x88\xbe\x54\xc4\x8f\x23\xc5\xb5" "\xa5\x77\x6f\xcd\xa1\xde\x3a\xff\xbb\x67\xfe\xe7\xef\x6d\xce\xff\x1c\x4e" "\xdb\x9e\xad\x7e\xce\xf7\x6b\xd5\x7d\x03\xee\xe7\xcf\xff\x7a\x0d\xe6\xf7" "\x9d\xd8\x7b\xb7\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\x40\x49\xa9\x88\x17\xf3\x7a\xea\x13\xd5\x7c\xfe\xa9\x3b\xae\xa7" "\xbe\x1a\x29\x5e\xfd\x9f\xe7\x73\xb9\x74\xb4\x2c\xd7\x5d\x07\x7e\xb0\xfa" "\xb3\x7e\x69\x6e\xf6\xc4\x85\x99\x99\xb9\xc9\xd6\x52\xeb\xca\xcc\x74\x63" "\x6c\xbe\x35\x39\x5d\xd6\x7d\x3a\x52\xac\xff\xed\xe7\x72\xdd\xa2\x5a\x5f" "\xbd\xbb\xde\x7c\x67\x8d\xf7\xcd\xb5\xd8\x17\x22\xc5\xc8\x3f\x74\xcb\x76" "\xd6\x62\xef\xae\x4d\xfe\xf4\x66\xd9\x53\x65\xd9\x4f\x44\x8a\xff\xfe\xc7" "\xad\x65\xbb\xeb\x58\x7f\x6a\xb3\xec\xe9\xb2\xec\xdf\x44\x8a\xaf\xff\xcb" "\xce\x65\x8f\x6e\x96\x3d\x53\x96\xfd\x4e\xa4\xf8\xe1\xd7\x1b\xdd\xb2\x4f" "\x94\x65\xbb\xf7\x47\xfd\xf4\x66\xd9\x17\x26\xe7\x8a\x7d\x18\x15\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x37\x7d\xa9\x88" "\x3f\x8f\x14\xff\x7b\x7d\xe5\xd6\x5c\xfe\xbc\xfe\x7f\x5f\xcf\xc3\xca\x3b" "\xdf\xec\x59\xef\x7f\x9b\x9b\xd5\x3a\xff\x83\xd5\xfa\xff\x9d\xed\x81\x88" "\xe8\x6e\x77\xf6\xdf\xcb\xfa\xff\xd5\x7d\x05\x96\xef\xf4\xae\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\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\xf1\x94\xa2" "\x88\xb7\x22\xc5\xfc\xa5\xf5\xb4\xda\x5f\x3e\xee\xa8\x5f\x6c\xcf\xde\xb8" "\x39\x3e\x3c\xb2\x73\xb5\x81\x54\xd5\x3c\x54\x95\x2f\xbf\xea\xa7\x4e\x9f" "\x39\xfb\xa5\x17\x87\xce\x75\xf3\xee\xf5\xef\xb7\xcf\xc4\xeb\x63\x97\x2f" "\x34\x5e\x99\xbb\x3e\xbf\x30\xbd\xb8\x38\x3d\xd5\x18\x9f\x6d\x4f\xce\x4d" "\x4d\xdf\xa5\xce\xa1\x2d\x8f\x7e\xf9\xfa\x77\x77\xbc\x3a\x00\x8d\xeb\x6f" "\xdc\x98\xba\x7a\x75\xb1\x71\xfa\x85\x33\x5b\x9e\xbe\x39\xf8\x61\xff\x93" "\x47\x07\xcf\x0f\x3d\x77\xe2\xd9\x6e\xd9\xf1\xe1\x91\x91\xb1\x9e\x32\xb5" "\xbe\x7b\x7e\xf7\xdb\xa4\x3b\xec\x3f\x1c\x45\xfc\x75\xa4\x78\xfe\xbb\x3f" "\x49\x3f\xe8\x8f\x28\x62\xef\xc7\xe2\x23\x3e\x3b\xfb\x6d\xa0\xea\xc4\xf1" "\xaa\x13\xe3\xc3\x23\x55\x47\x66\xda\xad\xd9\xa5\xf2\xc9\xd1\xee\x81\x28" "\x22\x1a\x3d\x95\x9a\xdd\x63\xf4\x00\xc6\x62\x4f\x9a\x11\xcb\x65\xf3\xcb" "\x06\x1f\x2f\xbb\x37\x36\xdf\x5a\x68\x5d\x99\x99\x6e\x8c\xb6\x16\x96\xda" "\x4b\xed\xb9\xd9\xd1\xd4\x69\x6d\xd9\x9f\x46\x14\x71\x2e\x45\xac\x44\xc4" "\x5a\xff\xed\x2f\xd7\x17\x45\xbc\x11\x29\xbe\x7d\x64\x3d\xfd\x6b\x7f\xe7" "\x2f\x45\x75\x1c\xbe\x78\x69\xec\xab\x27\x4f\xdf\xb9\x1d\xc5\x3e\xf6\x71" "\x17\xca\x76\x36\xfa\x22\x56\x8a\x47\x60\xcc\x0e\xb0\xfe\x28\xe2\x9f\x23" "\xc5\x4f\xdf\x3b\x16\xff\xd6\x1f\x51\x8b\xce\x57\x7c\x21\xe2\xb5\x32\xbf" "\x1f\xf1\x4e\x74\xc6\x3b\x95\x1f\x8c\xb3\x11\x1f\xec\xf0\x39\xe2\xd1\x54" "\x8b\x22\xfe\xbf\x1c\xff\xf3\xeb\xe9\xbd\xfe\xf2\x7c\xd0\x3d\xaf\x5c\xfc" "\x5a\xe3\x2b\xb3\x57\xe7\x7a\xca\x76\xcf\x2b\x8f\xfc\xf5\xe1\x41\x3a\xe0" "\xe7\xa6\x7a\x14\xf1\xc3\xea\x8c\xbf\x9e\xfe\xdd\xdf\x6b\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x80\x03\xa4\x88\x5f\x8f\x14\x2f\xbd\x7f" "\x2c\x55\xf3\x83\x6f\xcd\x29\x6e\xcf\x5e\x6b\x5c\x6e\x5d\x99\xe9\x4c\xeb" "\xeb\xce\xfd\xeb\xce\x99\xde\xd8\xd8\xd8\x68\xa4\x4e\x36\x73\x4e\xe4\x5c" "\xce\xb9\x92\x73\x35\xe7\x5a\xce\x28\x72\xfd\x9c\xcd\x32\xeb\x1b\x1b\x13" "\xf9\xf1\x72\xce\x95\x9c\xab\x39\xd7\x72\xc6\xa1\x5c\x3f\x67\x33\xe7\x44" "\xce\xe5\x9c\x2b\x39\x57\x73\xae\xe5\x8c\x5a\xae\x9f\xb3\x99\x73\x22\xe7" "\x72\xce\x95\x9c\xab\x39\xd7\x72\xc6\x01\x99\xbb\x07\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7c\xbc\x14\xd5\x7f\x29\xbe\xf5\x8d" "\xf5\xb4\xd1\xdf\x59\x5f\x7a\x22\x3a\xb9\x6a\x3d\xd0\x8f\xbd\x5f\x04\x00" "\x00\xff\xff\x7f\xb7\xf6\xaf", 3139); syz_mount_image(/*fs=*/0x200000000080, /*dir=*/0x200000000e40, /*flags=MS_REC|MS_MANDLOCK*/ 0x4040, /*opts=*/0x200000000f80, /*chdir=*/2, /*size=*/0xc43, /*img=*/0x200000001200); // setrlimit arguments: [ // res: rlimit_type = 0x1 (8 bytes) // rlim: ptr[in, rlimit] { // rlimit { // soft: intptr = 0xffffffffffffffff (8 bytes) // hard: intptr = 0xffffffffffffffff (8 bytes) // } // } // ] *(uint64_t*)0x200000000100 = -1; *(uint64_t*)0x200000000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x200000000100ul); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x200000000000, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x200000000000ul, /*mode=*/0ul); if (res != -1) r[0] = res; // ftruncate arguments: [ // fd: fd (resource) // len: intptr = 0x1f (8 bytes) // ] syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x1ful); // open arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: open_flags = 0xca942 (8 bytes) // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x2000000000c0, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x2000000000c0ul, /*flags=O_NONBLOCK|O_NOCTTY|O_NOATIME|O_LARGEFILE|O_CREAT|0x82002*/ 0xca942ul, /*mode=*/0ul); if (res != -1) r[1] = res; // ftruncate arguments: [ // fd: fd (resource) // len: intptr = 0x8002007ffb (8 bytes) // ] syscall(__NR_ftruncate, /*fd=*/r[1], /*len=*/0x8002007ffbul); // syz_open_dev$loop arguments: [ // dev: nil // id: intptr = 0x0 (8 bytes) // flags: open_flags = 0x0 (8 bytes) // ] // returns fd_loop syz_open_dev(/*dev=*/0, /*id=*/0, /*flags=*/0); } 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; }