// https://syzkaller.appspot.com/bug?id=2bb24534fce83db3302050b9bd953fdd7ed11a75 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } #define MAX_FDS 30 //% 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 XT_TABLE_SIZE 1536 #define XT_MAX_ENTRIES 10 struct xt_counters { uint64_t pcnt, bcnt; }; struct ipt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_entries; unsigned int size; }; struct ipt_get_entries { char name[32]; unsigned int size; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct ipt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_counters; struct xt_counters* counters; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct ipt_table_desc { const char* name; struct ipt_getinfo info; struct ipt_replace replace; }; static struct ipt_table_desc ipv4_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; static struct ipt_table_desc ipv6_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; #define IPT_BASE_CTL 64 #define IPT_SO_SET_REPLACE (IPT_BASE_CTL) #define IPT_SO_GET_INFO (IPT_BASE_CTL) #define IPT_SO_GET_ENTRIES (IPT_BASE_CTL + 1) struct arpt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_entries; unsigned int size; }; struct arpt_get_entries { char name[32]; unsigned int size; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_counters; struct xt_counters* counters; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_table_desc { const char* name; struct arpt_getinfo info; struct arpt_replace replace; }; static struct arpt_table_desc arpt_tables[] = { {.name = "filter"}, }; #define ARPT_BASE_CTL 96 #define ARPT_SO_SET_REPLACE (ARPT_BASE_CTL) #define ARPT_SO_GET_INFO (ARPT_BASE_CTL) #define ARPT_SO_GET_ENTRIES (ARPT_BASE_CTL + 1) static void checkpoint_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; table->replace.size = table->info.size; memcpy(table->replace.hook_entry, table->info.hook_entry, sizeof(table->replace.hook_entry)); memcpy(table->replace.underflow, table->info.underflow, sizeof(table->replace.underflow)); memcpy(table->replace.entrytable, entries.entrytable, table->info.size); } close(fd); } static void reset_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; if (table->info.valid_hooks == 0) continue; struct ipt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, level, IPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_arptables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; table->replace.size = table->info.size; memcpy(table->replace.hook_entry, table->info.hook_entry, sizeof(table->replace.hook_entry)); memcpy(table->replace.underflow, table->info.underflow, sizeof(table->replace.underflow)); memcpy(table->replace.entrytable, entries.entrytable, table->info.size); } close(fd); } static void reset_arptables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; if (table->info.valid_hooks == 0) continue; struct arpt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } else { } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, SOL_IP, ARPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } #define NF_BR_NUMHOOKS 6 #define EBT_TABLE_MAXNAMELEN 32 #define EBT_CHAIN_MAXNAMELEN 32 #define EBT_BASE_CTL 128 #define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) #define EBT_SO_GET_INFO (EBT_BASE_CTL) #define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO + 1) #define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES + 1) #define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO + 1) struct ebt_replace { char name[EBT_TABLE_MAXNAMELEN]; unsigned int valid_hooks; unsigned int nentries; unsigned int entries_size; struct ebt_entries* hook_entry[NF_BR_NUMHOOKS]; unsigned int num_counters; struct ebt_counter* counters; char* entries; }; struct ebt_entries { unsigned int distinguisher; char name[EBT_CHAIN_MAXNAMELEN]; unsigned int counter_offset; int policy; unsigned int nentries; char data[0] __attribute__((aligned(__alignof__(struct ebt_replace)))); }; struct ebt_table_desc { const char* name; struct ebt_replace replace; char entrytable[XT_TABLE_SIZE]; }; static struct ebt_table_desc ebt_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "broute"}, }; static void checkpoint_ebtables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (size_t i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_INFO, &table->replace, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->replace.entries_size > sizeof(table->entrytable)) exit(1); table->replace.num_counters = 0; table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_ENTRIES, &table->replace, &optlen)) exit(1); } close(fd); } static void reset_ebtables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: case ENOENT: return; } exit(1); } for (unsigned i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; if (table->replace.valid_hooks == 0) continue; struct ebt_replace replace; memset(&replace, 0, sizeof(replace)); strcpy(replace.name, table->name); socklen_t optlen = sizeof(replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INFO, &replace, &optlen)) exit(1); replace.num_counters = 0; table->replace.entries = 0; for (unsigned h = 0; h < NF_BR_NUMHOOKS; h++) table->replace.hook_entry[h] = 0; if (memcmp(&table->replace, &replace, sizeof(table->replace)) == 0) { char entrytable[XT_TABLE_SIZE]; memset(&entrytable, 0, sizeof(entrytable)); replace.entries = entrytable; optlen = sizeof(replace) + replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_ENTRIES, &replace, &optlen)) exit(1); if (memcmp(table->entrytable, entrytable, replace.entries_size) == 0) continue; } for (unsigned j = 0, h = 0; h < NF_BR_NUMHOOKS; h++) { if (table->replace.valid_hooks & (1 << h)) { table->replace.hook_entry[h] = (struct ebt_entries*)table->entrytable + j; j++; } } table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (setsockopt(fd, SOL_IP, EBT_SO_SET_ENTRIES, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_net_namespace(void) { checkpoint_ebtables(); checkpoint_arptables(); checkpoint_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); checkpoint_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } static void reset_net_namespace(void) { reset_ebtables(); reset_arptables(); reset_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); reset_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } static void mount_cgroups(const char* dir, const char** controllers, int count) { if (mkdir(dir, 0777)) { return; } char enabled[128] = {0}; int i = 0; for (; i < count; i++) { if (mount("none", dir, "cgroup", 0, controllers[i])) { continue; } umount(dir); strcat(enabled, ","); strcat(enabled, controllers[i]); } if (enabled[0] == 0) { if (rmdir(dir) && errno != EBUSY) exit(1); return; } if (mount("none", dir, "cgroup", 0, enabled + 1)) { if (rmdir(dir) && errno != EBUSY) exit(1); } if (chmod(dir, 0777)) { } } static void mount_cgroups2(const char** controllers, int count) { if (mkdir("/syzcgroup/unified", 0777)) { return; } if (mount("none", "/syzcgroup/unified", "cgroup2", 0, NULL)) { if (rmdir("/syzcgroup/unified") && errno != EBUSY) exit(1); return; } if (chmod("/syzcgroup/unified", 0777)) { } int control = open("/syzcgroup/unified/cgroup.subtree_control", O_WRONLY); if (control == -1) return; int i; for (i = 0; i < count; i++) if (write(control, controllers[i], strlen(controllers[i])) < 0) { } close(control); } static void setup_cgroups() { const char* unified_controllers[] = {"+cpu", "+io", "+pids"}; const char* net_controllers[] = {"net", "net_prio", "devices", "blkio", "freezer"}; const char* cpu_controllers[] = {"cpuset", "cpuacct", "hugetlb", "rlimit", "memory"}; if (mkdir("/syzcgroup", 0777)) { return; } mount_cgroups2(unified_controllers, sizeof(unified_controllers) / sizeof(unified_controllers[0])); mount_cgroups("/syzcgroup/net", net_controllers, sizeof(net_controllers) / sizeof(net_controllers[0])); mount_cgroups("/syzcgroup/cpu", cpu_controllers, sizeof(cpu_controllers) / sizeof(cpu_controllers[0])); write_file("/syzcgroup/cpu/cgroup.clone_children", "1"); write_file("/syzcgroup/cpu/cpuset.memory_pressure_enabled", "1"); } static void setup_cgroups_loop() { int pid = getpid(); char file[128]; char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/pids.max", cgroupdir); write_file(file, "32"); snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(file, sizeof(file), "%s/memory.soft_limit_in_bytes", cgroupdir); write_file(file, "%d", 299 << 20); snprintf(file, sizeof(file), "%s/memory.limit_in_bytes", cgroupdir); write_file(file, "%d", 300 << 20); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); } static void setup_cgroups_test() { char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (symlink(cgroupdir, "./cgroup")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.cpu")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.net")) { } } static void initialize_cgroups() { if (mkdir("./syz-tmp/newroot/syzcgroup", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/unified", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/cpu", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/net", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/syzcgroup/unified", "./syz-tmp/newroot/syzcgroup/unified", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/cpu", "./syz-tmp/newroot/syzcgroup/cpu", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/net", "./syz-tmp/newroot/syzcgroup/net", NULL, bind_mount_flags, NULL)) { } } static void setup_gadgetfs(); static void setup_binderfs(); static void setup_fusectl(); static void sandbox_common_mount_tmpfs(void) { write_file("/proc/sys/fs/mount-max", "100000"); if (mkdir("./syz-tmp", 0777)) exit(1); if (mount("", "./syz-tmp", "tmpfs", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot", 0777)) exit(1); if (mkdir("./syz-tmp/newroot/dev", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/dev", "./syz-tmp/newroot/dev", NULL, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/proc", 0700)) exit(1); if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/selinux", 0700)) exit(1); const char* selinux_path = "./syz-tmp/newroot/selinux"; if (mount("/selinux", selinux_path, NULL, bind_mount_flags, NULL)) { if (errno != ENOENT) exit(1); if (mount("/sys/fs/selinux", selinux_path, NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); } if (mkdir("./syz-tmp/newroot/sys", 0700)) exit(1); if (mount("/sys", "./syz-tmp/newroot/sys", 0, bind_mount_flags, NULL)) exit(1); if (mount("/sys/kernel/debug", "./syz-tmp/newroot/sys/kernel/debug", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/sys/fs/smackfs", "./syz-tmp/newroot/sys/fs/smackfs", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/proc/sys/fs/binfmt_misc", "./syz-tmp/newroot/proc/sys/fs/binfmt_misc", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mkdir("./syz-tmp/newroot/syz-inputs", 0700)) exit(1); if (mount("/syz-inputs", "./syz-tmp/newroot/syz-inputs", NULL, bind_mount_flags | MS_RDONLY, NULL) && errno != ENOENT) exit(1); initialize_cgroups(); if (mkdir("./syz-tmp/pivot", 0777)) exit(1); if (syscall(SYS_pivot_root, "./syz-tmp", "./syz-tmp/pivot")) { if (chdir("./syz-tmp")) exit(1); } else { if (chdir("/")) exit(1); if (umount2("./pivot", MNT_DETACH)) exit(1); } if (chroot("./newroot")) exit(1); if (chdir("/")) exit(1); setup_gadgetfs(); setup_binderfs(); setup_fusectl(); } static void setup_gadgetfs() { if (mkdir("/dev/gadgetfs", 0777)) { } if (mount("gadgetfs", "/dev/gadgetfs", "gadgetfs", 0, NULL)) { } } static void setup_fusectl() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void setup_binderfs() { if (mkdir("/dev/binderfs", 0777)) { } if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); sandbox_common_mount_tmpfs(); loop(); exit(1); } #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 setup_loop() { setup_cgroups_loop(); checkpoint_net_namespace(); } 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); } reset_net_namespace(); } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); setup_cgroups_test(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } static const char* setup_usb() { if (chmod("/dev/raw-gadget", 0666)) return "failed to chmod /dev/raw-gadget"; return NULL; } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 14; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 8 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { setup_loop(); 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[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x200000000100, "/dev/vhost-vsock\000", 17); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000100ul, /*flags=*/2, /*mode=*/0); if (res != -1) r[0] = res; break; case 1: syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0xaf01, /*arg=*/0ul); break; case 2: *(uint32_t*)0x200000000300 = 1; *(uint32_t*)0x200000000304 = 0; *(uint64_t*)0x200000000308 = 0; *(uint64_t*)0x200000000310 = 0x200000000480; *(uint64_t*)0x200000000318 = 0; *(uint64_t*)0x200000000320 = 0; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4028af11, /*arg=*/0x200000000300ul); break; case 3: *(uint32_t*)0x200000003380 = 0; *(uint32_t*)0x200000003384 = 0; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4008af03, /*arg=*/0x200000003380ul); break; case 4: res = syscall(__NR_eventfd2, /*initval=*/0x76, /*flags=EFD_SEMAPHORE*/ 1ul); if (res != -1) r[1] = res; break; case 5: *(uint32_t*)0x2000000001c0 = 0; *(uint32_t*)0x2000000001c4 = r[1]; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4008af22, /*arg=*/0x2000000001c0ul); break; case 6: *(uint32_t*)0x200000000240 = 0; *(uint32_t*)0x200000000244 = 0; *(uint64_t*)0x200000000248 = 0; *(uint64_t*)0x200000000250 = 0x200000000600; *(uint64_t*)0x200000000258 = 0; *(uint64_t*)0x200000000260 = 0x1000; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4028af11, /*arg=*/0x200000000240ul); break; case 7: syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4008af20, /*arg=*/0ul); break; case 8: memcpy((void*)0x200000000780, "ext4\000", 5); memcpy((void*)0x200000000240, "./file0\000", 8); memcpy((void*)0x200000000000, "nobh", 4); *(uint8_t*)0x200000000004 = 0x2c; memcpy((void*)0x200000000005, "debug", 5); *(uint8_t*)0x20000000000a = 0x2c; *(uint8_t*)0x20000000000b = 0; memcpy( (void*)0x200000002480, "\x78\x9c\xec\xdd\xcf\x6b\x1c\x55\x1c\x00\xf0\xef\x6c\x92\xa6\x49\xab" "\x89\x20\x68\x3d\x05\x04\x1b\x28\xdd\x98\x1a\x5b\x05\x0f\x15\x0f\x22" "\x58\x28\xe8\xd9\x36\x6c\xb6\xa1\x66\x93\x2d\xd9\x4d\x69\x42\xa0\x2d" "\x22\x78\x11\x54\x3c\x08\x7a\xe9\xd9\x1f\xf5\xe6\xd5\x1f\x47\xf5\xbf" "\xf0\x20\x2d\x55\xd3\x62\xc5\x83\x44\x66\xb3\xdb\x6e\x9b\xdd\xed\xa6" "\x66\x77\x53\xfb\xf9\xc0\x64\xdf\x9b\x99\xcd\x7b\xdf\x7d\x33\x6f\xde" "\xec\x0c\x3b\x01\x3c\xb4\xc6\xd2\x3f\x99\x88\x7d\x11\xf1\x41\x12\x31" "\x52\x9d\x9f\x44\xc4\x40\x25\xd5\x1f\x71\x74\x63\xbd\x9b\x6b\xab\xb9" "\x74\x4a\x62\x7d\xfd\x8d\xdf\x93\xca\x3a\x37\xd6\x56\x73\x51\xf7\x9e" "\xd4\x9e\x6a\xe6\xc9\x88\xf8\xfe\xdd\x88\x03\x99\xcd\xe5\x96\x96\x57" "\xe6\xa6\x0b\x85\xfc\x62\x35\x3f\x51\x9e\x3f\x33\x51\x5a\x5e\x39\x78" "\x7a\x7e\x7a\x36\x3f\x9b\x5f\x38\x3c\x39\x35\x75\xe8\xc8\xf3\x47\x0e" "\x6f\x5f\xac\x7f\xfe\xbc\xb2\xf7\xea\x87\xaf\xee\xff\xea\xe8\xdf\xef" "\x3c\x71\xf9\xfd\x1f\x92\x38\x1a\x7b\xab\xcb\xea\xe3\xd8\x2e\x63\x31" "\x56\xfd\x4c\x06\xd2\x8f\xf0\x0e\xaf\x6c\x77\x61\x3d\x96\xf4\xba\x02" "\xdc\x97\x74\xd7\xec\xdb\xd8\xcb\x63\x5f\x8c\x44\x5f\x25\xd5\xc4\x50" "\x37\x6b\x06\x00\x74\xca\xf9\x88\x58\x6f\xee\x7c\x8b\x65\x00\xc0\x03" "\x2b\x69\x75\xfc\x07\x00\xfe\x87\x6a\xdf\x03\xdc\x58\x5b\xcd\xd5\xa6" "\xde\x7e\x23\xd1\x5d\xd7\x5e\x8e\x88\xdd\x1b\xf1\xd7\xae\x6f\x6e\x2c" "\xe9\xaf\x5e\xb3\xdb\x5d\xb9\x0e\x3a\x7c\x23\xb9\xe3\xca\x48\x12\x11" "\xa3\xdb\x50\xfe\x58\x44\x7c\xf6\xcd\x5b\x5f\xa4\x53\x74\xe8\x3a\x24" "\x40\x23\x17\x2e\x46\xc4\xc9\xd1\xb1\xcd\xfd\x7f\xb2\xe9\x9e\x85\xad" "\x7a\xb6\xd5\xc2\xf5\xc1\xca\xcb\xd8\x5d\xb3\xf5\x7f\xd0\x3d\xdf\xa6" "\xe3\x9f\x17\x1a\x8d\xff\x32\xb7\xc6\x3f\xd1\x60\xfc\x33\xd8\x60\xdf" "\xbd\x1f\xf7\xde\xff\x33\x57\xb6\xa1\x98\xa6\xd2\xf1\xdf\x4b\x75\xf7" "\xb6\xdd\xac\x8b\xbf\x6a\xb4\xaf\x9a\x7b\xa4\x32\xe6\x1b\x48\x4e\x9d" "\x2e\xe4\xd3\xbe\xed\xd1\x88\x18\x8f\x81\xc1\x34\x3f\x59\x59\xb5\xf1" "\x5d\x50\xe3\xd7\xff\xb9\xde\xac\xfc\xfa\xf1\xdf\x1f\x1f\xbd\xfd\x79" "\x5a\x7e\xfa\x7a\x7b\x8d\xcc\x95\xfe\xc1\xfa\xea\x44\xcc\x4c\x97\xa7" "\xb7\x23\xf6\xd4\xb5\x8b\x11\x4f\xf5\x37\x8a\x3f\xb9\xd5\xfe\x49\x93" "\xf1\xef\xf1\x36\xcb\x78\xed\xc5\xf7\x3e\x6d\xb6\x2c\x8d\x3f\x8d\xb7" "\x36\x6d\x8e\xbf\xb3\xd6\x2f\x45\x3c\xd3\xb0\xfd\x6f\xb7\x65\xd2\xf2" "\xfe\xc4\x89\xca\xe6\x30\x51\xdb\x28\x1a\xf8\xfa\x97\x4f\x86\x9b\x95" "\x5f\xdf\xfe\xe9\x94\x96\x5f\x3b\x17\xe8\x86\xb4\xfd\x87\x5b\xc7\x3f" "\x9a\xd4\xdf\xaf\x59\xda\x7a\x19\x3f\x5d\x1a\xf9\xae\xd9\xb2\x7b\xc7" "\x5f\xdd\xfe\xeb\xa4\xdb\xff\xae\xe4\xcd\x4a\x7a\x57\x75\xde\xb9\xe9" "\x72\x79\x71\x32\x62\x57\xf2\xfa\xe6\xf9\x87\x6e\xbf\xb7\x96\xaf\xad" "\x9f\xc6\x3f\xfe\x74\xe3\xfd\xbf\xd5\xf6\x9f\x9e\x13\x9e\x6c\x33\xfe" "\xfe\xab\xbf\x7d\x79\xff\xf1\x77\x56\x1a\xff\xcc\x96\xda\x7f\xeb\x89" "\xcb\x37\xe7\xfa\x9a\x95\xdf\x5e\xfb\x4f\x55\x52\xe3\xd5\x39\xed\xf4" "\x7f\xf5\xb5\x48\x5a\x54\xf0\xbf\x7c\x76\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\xae\x4c\x44\xec" "\x8d\x24\x93\xbd\x95\xce\x64\xb2\xd9\x8d\x67\x78\x3f\x1e\xc3\x99\x42" "\xb1\x54\x3e\x70\xaa\xb8\xb4\x30\x13\x95\x67\x65\x8f\xc6\x40\xa6\xf6" "\x53\x97\x23\x75\xbf\x87\x3a\x59\xfd\x3d\xfc\x5a\xfe\xd0\x5d\xf9\xe7" "\x22\xe2\xb1\x88\xf8\x78\x70\xa8\x92\xcf\xe6\x8a\x85\x99\x5e\x07\x0f" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x55\x7b\x9a" "\x3c\xff\x3f\xf5\xeb\x60\xaf\x6b\x07\x00\x74\xcc\xee\x5e\x57\x00\x00" "\xe8\x3a\xc7\x7f\x00\x78\xf8\x6c\xed\xf8\x3f\xd4\xb1\x7a\x00\x00\xdd" "\xe3\xfc\x1f\x00\x1e\x3e\x6d\x1f\xff\x4f\x76\xb6\x1e\x00\x40\xf7\x38" "\xff\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\xa0\xc3\x8e\x1f\x3b\x96\x4e\xeb\x7f\xad\xad\xe6\xd2\xfc\xcc\xd9" "\xe5\xa5\xb9\xe2\xd9\x83\x33\xf9\xd2\x5c\x76\x7e\x29\x97\xcd\x15\x17" "\xcf\x64\x67\x8b\xc5\xd9\x42\x3e\x9b\x2b\xce\x37\xfd\x47\x17\x36\x5e" "\x0a\xc5\xe2\x99\xa9\x58\x58\x3a\x37\x51\xce\x97\xca\x13\xa5\xe5\x95" "\x13\xf3\xc5\xa5\x85\xf2\x89\xd3\xf3\xd3\xb3\xf9\x13\xf9\x81\xae\x45" "\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x2b" "\x2d\xaf\xcc\x4d\x17\x0a\xf9\xc5\x07\x3a\xf1\xe3\xfe\x88\xce\x16\x31" "\xb4\x43\x22\xdd\x29\x89\xfe\xd8\x11\xd5\x90\xe8\x58\xa2\xbe\x97\x18" "\xea\x5d\x07\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xc3\xfd\x1b\x00\x00\xff\xff" "\x15\xc5\x29\x0a", 1942); syz_mount_image(/*fs=*/0x200000000780, /*dir=*/0x200000000240, /*flags=MS_LAZYTIME|MS_NOATIME|MS_DIRSYNC*/ 0x2000480, /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0x796, /*img=*/0x200000002480); break; case 9: *(uint32_t*)0x200000000140 = 1; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4004af61, /*arg=*/0x200000000140ul); break; case 10: memcpy((void*)0x200000000040, "hugetlb.2MB.usage_in_bytes\000", 27); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000040ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[2] = res; break; case 11: memcpy((void*)0x200000000200, "#! ", 3); memcpy((void*)0x200000000203, "./file1", 7); *(uint8_t*)0x20000000020a = 0xa; syscall(__NR_write, /*fd=*/r[2], /*data=*/0x200000000200ul, /*len=*/0xbul); break; case 12: syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0xb36000ul, /*prot=PROT_GROWSUP|PROT_SEM|PROT_WRITE|PROT_READ|0x800000*/ 0x280000bul, /*flags=MAP_STACK|MAP_POPULATE|MAP_FIXED|MAP_SHARED*/ 0x28011ul, /*fd=*/r[2], /*offset=*/0ul); break; case 13: *(uint64_t*)0x200000000140 = 0x2000000000c0; *(uint16_t*)0x2000000000c0 = 0x10; *(uint16_t*)0x2000000000c2 = 0; *(uint32_t*)0x2000000000c4 = 0; *(uint32_t*)0x2000000000c8 = 0x40000000; *(uint32_t*)0x200000000148 = 0xc; *(uint64_t*)0x200000000150 = 0x200000000100; *(uint64_t*)0x200000000100 = 0x200000001240; *(uint32_t*)0x200000001240 = 0x1160; *(uint16_t*)0x200000001244 = 0x12; *(uint16_t*)0x200000001246 = 2; *(uint32_t*)0x200000001248 = 0x70bd2b; *(uint32_t*)0x20000000124c = 0x25dfdbfe; *(uint8_t*)0x200000001250 = 0x1e; *(uint8_t*)0x200000001251 = 6; *(uint8_t*)0x200000001252 = 0xb1; *(uint8_t*)0x200000001253 = 0xd; *(uint16_t*)0x200000001254 = htobe16(0x4e22); *(uint16_t*)0x200000001256 = htobe16(0x4e24); *(uint32_t*)0x200000001258 = 0x77f; *(uint32_t*)0x20000000125c = 0xc4; *(uint32_t*)0x200000001260 = -1; *(uint32_t*)0x200000001264 = 0x3ff; *(uint32_t*)0x200000001268 = 9; *(uint32_t*)0x20000000126c = 7; *(uint32_t*)0x200000001270 = 0x3ff; *(uint32_t*)0x200000001274 = 5; *(uint32_t*)0x200000001278 = 0; *(uint32_t*)0x20000000127c = 0x5e0; *(uint32_t*)0x200000001280 = 2; *(uint32_t*)0x200000001284 = 0xff; *(uint32_t*)0x200000001288 = 4; *(uint16_t*)0x20000000128c = 0x4b; *(uint16_t*)0x20000000128e = 1; memcpy((void*)0x200000001290, "\x47\x73\x7d\x67\x77\xf9\x5e\x4e\x57\x95\x54\x7e\xad\xfd\x84\x92" "\xa9\x2c\xa3\xbc\x99\x2a\xe5\x4a\xa7\x9f\xef\x99\x27\x39\x6f\x04" "\xf6\xb3\x3f\xc2\x64\x84\x2c\x9d\xcc\x6a\x1f\xb4\xcf\x9d\x2d\xb8" "\x90\xe6\x3e\x1d\x00\x6d\x1d\xc0\x2c\xb8\xc8\xb0\x10\xd5\x7b\x29" "\xca\x26\xe1\xe5\xde\x81\xd7", 71); *(uint16_t*)0x2000000012d8 = 0xc4; *(uint16_t*)0x2000000012da = 1; memcpy((void*)0x2000000012dc, "\x14\x08\xd7\x49\x7f\x2d\x40\x54\x9c\xd7\x1a\x6a\x2a\x3a\x30\x14" "\x34\xd7\x7d\x21\x14\xe4\xca\x6f\x35\x1d\x36\xbc\x7a\x85\x47\x98" "\x85\xe4\x5f\xc7\x68\x91\x49\xf4\x94\xe5\x5e\xc3\xba\xa5\x61\xd5" "\x6d\x09\x5f\xd1\x10\xf7\xd7\x3e\xb5\x3d\xe1\x8e\xb2\x20\x85\xd9" "\xe6\xaa\x6e\x0b\x5b\x5b\xdb\x77\x54\x6b\x7f\xd3\xf5\x26\x3e\xdb" "\xb8\xad\xc8\x4e\xc4\xac\x12\xbe\x5a\x97\x51\x0f\xf9\xb1\xb4\xc3" "\x76\x6e\x96\xe0\x9d\x64\xf0\xc2\x52\xf8\xd3\x96\x2a\xf4\x3c\xec" "\x9b\xbc\x01\xed\xef\x4e\xa4\x05\xc8\xd7\xa4\xaa\xff\x3e\x6d\xb0" "\x58\xbb\xb6\x0f\x25\x72\x67\x8d\xca\xbb\x0c\xdd\x51\x0f\xd2\x70" "\xd7\x1d\xaa\x02\xde\x4f\xbc\x5f\xfa\xc0\xac\xa3\x6c\x1f\x55\x3d" "\xa8\xd2\xed\x03\x2a\x28\x6d\xbb\xea\x87\x66\xb9\x0a\x92\xa1\x88" "\xfd\x9c\x3f\x78\xb8\x8d\x19\x96\x83\xa1\x5e\xa0\x53\xd2\xf6\xd6", 192); *(uint16_t*)0x20000000139c = 0x1004; *(uint16_t*)0x20000000139e = 1; memcpy( (void*)0x2000000013a0, "\x33\x53\xf1\xbb\x8c\x10\x5c\x9a\x08\x80\x59\xdb\x97\x17\xb9\xa4\xbb" "\x1d\x86\x87\xba\x06\xf5\xc7\x0a\x54\x8f\xbc\xbd\x93\x9f\x1a\xf9\x4e" "\x6a\x1a\x7e\xc9\xcd\x0d\x2d\x5a\x8f\xaa\x39\xe3\x62\x5b\x84\x12\x5c" "\x6b\x15\xb9\x7a\x0e\x66\x90\xbf\x3d\x4c\x96\x7f\x3e\xed\x70\x8b\x09" "\x0e\xde\x7d\xad\x6c\xb0\x55\x2b\xb6\xb4\xa5\x0f\x90\xcb\x17\xf5\x9e" "\x44\xfe\x99\x9e\xa4\x56\x64\xc7\xe2\x50\xac\x3b\xe4\x16\x7f\x31\x1c" "\x42\xd1\xea\x15\xf9\xee\x9b\x87\x8d\x0a\x7c\xfd\x53\x19\xf4\x84\xc7" "\x10\xad\x28\x6d\x8a\xbd\xa7\x65\x21\xa5\xfa\xd3\xf3\x97\xeb\x59\x1a" "\x41\xa3\x78\xe9\xff\x8a\x70\x59\x4c\xef\x22\xe0\x3d\x32\xbd\x79\x15" "\x1b\xff\x6d\xf6\xb0\xa1\x80\x8f\x15\x29\xa4\x0b\x53\xe1\xf7\xc2\x33" "\xf5\x85\xc8\x16\x0a\x5f\x17\x2c\xcb\x6d\x4b\xa4\x88\x46\xa4\x91\x50" "\x4b\xad\xa3\x4b\x6c\xa1\x68\x47\x30\x44\xc5\x68\x02\x60\x82\x69\xe1" "\x7d\x82\x14\x95\xc5\x9d\xef\x39\x1b\xe5\xd9\x5a\x55\xf2\x17\xc6\x81" "\x74\x19\xdc\x62\x5f\xca\xdd\x5f\x0b\x29\x5a\x60\x3b\x67\xf8\x65\xeb" "\x78\xdd\x12\xb7\xe6\x8e\xc0\xc7\x42\xbc\x7c\x50\x7b\x6c\x83\xea\xe7" "\x96\xcd\xbc\x18\xd7\x3f\xdd\x37\xea\x8d\x54\x27\x1e\x0c\xae\xec\x50" "\x92\x28\x01\x6b\x74\x6d\x69\x2c\x52\xa8\xd6\x3b\x23\xca\xab\x32\xc6" "\xc2\xcc\x6e\xc6\x31\xb7\x64\xce\x19\x28\x5f\x32\x01\xc7\xb9\x12\x37" "\x97\x24\xb2\xaa\x08\x5f\x0f\x36\x21\xb3\xae\xbc\x4f\x26\x16\xb5\x91" "\x91\x0b\x0d\xf4\xf5\xbe\xf7\x80\x07\x84\xc0\x14\xe7\xb6\xe7\xce\xd9" "\x60\xa3\x32\xfc\x5a\x69\x34\xe7\xd5\xe3\x58\x61\xa9\xbb\xb0\x62\x9d" "\x3e\x33\x97\xc1\xd7\x13\x5a\x5b\x7b\x22\x13\x11\xbf\x10\xb4\x4b\x9c" "\x3b\xf6\xa1\x88\x43\xb1\x7e\x82\xc5\xab\x0a\xe9\x1b\x13\x46\xac\x4c" "\x77\x20\x82\xa4\x97\x54\xe3\x88\x4b\x00\x26\xd1\x6e\x82\xb4\x32\x89" "\xda\x55\xab\x4f\x33\x7f\xb8\xb0\xae\xe8\xc7\x3c\x4a\x67\x6d\xee\x8e" "\x49\xf2\x7d\x8f\x0a\x94\x6b\xf0\xc5\x32\x60\x60\x85\xd9\x28\x8f\x48" "\x17\x54\x4d\x31\xa8\x54\x54\xab\x11\x2a\x31\x06\x4a\xe9\x1b\x12\x9b" "\xb0\x1c\xbd\x9b\x22\xaa\x57\xa6\x28\xbe\xf7\xe6\xee\xdb\x46\x2c\xd8" "\xec\xd8\xdd\xf0\x0d\x19\x08\x6e\x0d\x11\x0b\x17\x35\x0e\x9f\xdf\x15" "\x45\x21\x2b\x9a\xbd\xf6\x1b\xed\x59\xbc\xde\x1e\xd7\xa9\xfd\xd9\x02" "\x4f\x68\xa0\x65\xb0\xb9\x24\xeb\xbc\x7f\xa8\x18\x0c\x7d\x5a\x72\x38" "\x8b\x9b\x96\x93\xbd\x81\x3e\x1c\xa5\x9b\xe5\x10\xde\x2d\x31\x21\x54" "\xdd\x5d\xe3\x0e\x48\xc6\x7d\x3c\x9d\x2a\xc5\x80\x3d\x02\x1a\x67\x92" "\xc1\x83\x78\x11\x33\x51\x0c\xa1\x77\xeb\x16\x62\x5c\x2a\x34\x75\xfc" "\xbe\xfd\xde\xbd\x3c\xa9\xe8\x0c\xd3\x61\x2b\x66\x49\x69\xbd\x9a\x57" "\xf0\x31\x5e\xe0\xea\xcc\x59\x5f\x2b\x5b\x57\x69\x48\x3a\xa7\xa2\x5a" "\xe9\xbd\x3e\x3a\x7c\xb4\x45\xcc\xff\x8e\x87\x13\x7e\x30\x42\x6b\x69" "\x92\x05\x3d\xec\x50\x93\xd1\xee\xfa\x96\x1b\x62\x7c\xda\x8e\x7d\x19" "\xa9\x69\x50\x30\x32\x7d\x95\xe1\xde\x4a\xbe\x66\x55\x30\xcd\xc1\xbb" "\xb3\x08\xe0\xbf\xf0\x2d\xd4\x22\x76\xbb\x8b\x30\xe0\x4c\xff\x61\x9f" "\x39\x2f\x81\x62\x04\xd8\x8e\x48\x7b\xc6\xde\x65\x81\x48\x00\x0b\x92" "\xe4\xad\xba\x60\xe0\xb7\xd0\x50\x06\x44\x64\x7c\xa2\x57\xc3\x3e\x89" "\x37\xb3\xdc\xdb\x3b\x24\x51\xa7\xc4\x06\xae\xf8\x16\xf8\x12\x89\x9d" "\x58\x57\x82\xdf\x40\x1d\x7e\x4b\x3d\x14\x17\x11\x27\x91\x53\x30\x2c" "\x63\x5d\x31\x29\xe0\x30\xf9\x45\xa1\xcb\x8b\x21\x32\x35\x7b\x96\x90" "\xb6\xc6\xb1\x40\xc4\x62\x02\x6f\xce\x50\x7f\x11\x13\x5c\x72\x14\xe4" "\x62\x66\x95\x6c\xd2\xfc\x5e\xad\x31\x60\x10\xf9\x63\xb9\x21\xa5\xdf" "\xda\xf4\xe3\xc6\xd8\x83\xe9\x40\x7d\x27\x05\xc6\x8d\x60\x42\xc7\xe7" "\xf1\xcc\x97\xfe\xf3\x21\x21\xd3\x2f\xb4\xf0\x47\xf5\x56\xde\x7d\xc7" "\x5c\x9f\xe3\x84\x3b\x8d\xb1\x48\x09\x70\x51\x02\xdb\x3a\x3d\xec\x5b" "\x8a\x7f\xc4\x21\x79\xb9\xfa\x64\x79\x56\x4b\x13\xfd\x16\x25\xd6\x71" "\x96\xce\x68\x49\x6d\x3e\xf3\x77\x6c\xda\x47\xa7\xfc\x70\x3b\x13\x16" "\xc8\x53\xea\x91\xe3\x52\xef\x69\x97\xaa\xc1\x4e\xd6\x4a\x9e\x09\x9d" "\x20\xf6\xd4\x57\x15\xaf\xc6\xd3\xb6\xb4\xa8\x53\xf9\xa0\x8c\x39\x85" "\x78\xb8\x9f\x72\xe4\xe1\x39\xe5\x08\xf4\xff\x4f\xf7\x60\x3e\xc1\xb6" "\x7a\xab\x88\xe8\x44\xb0\x42\xbb\xd8\x5d\x8a\x65\x91\x84\x7f\xfc\xbc" "\x08\x6e\x17\x56\x45\x5d\x39\x38\x03\x2c\x28\x7b\xa4\xb4\xdf\xc1\xe3" "\xa6\x3f\x09\x35\x83\xf4\xc8\x90\x60\xbb\x90\x01\xb8\x99\xf8\x4c\x82" "\x3a\xb6\x36\xa1\x86\x45\x0d\x6c\xbb\x0b\xb2\xfb\x70\x37\x7b\xb6\x20" "\xf1\x3b\xe0\xce\xe0\x66\xef\xed\xcd\xf2\x47\xa1\xec\x7d\x3d\xa3\x63" "\xab\x1b\x0d\xe0\x12\xa7\x6d\x43\xad\x0f\xba\x19\x6a\x24\xb3\x0b\xa1" "\x25\x21\xb6\x76\x73\x24\xc3\x87\x48\xf7\xdf\xc8\x29\x68\xaa\xa3\xbd" "\x38\xb6\x11\xa7\x96\x04\x02\xa9\x97\x4d\x73\xab\xa9\x80\x77\xbc\xc8" "\x8a\x32\x9a\x0c\x84\xcf\x69\xd8\x1c\xc3\x53\xde\xb3\x65\x3d\x33\xd4" "\x01\xfa\x3b\xa5\x10\xff\x38\x56\xe1\xcf\x94\x06\x8d\x17\x82\x79\x3a" "\xbe\x78\x8c\x3c\x40\x19\xac\x88\xf2\x07\x49\x54\x51\x44\xdb\xa2\x9c" "\x15\xaf\x6b\x80\xa0\x22\xd1\x06\xe1\xd3\xc9\x84\x9e\x99\xac\xb9\x93" "\xf2\xd4\xea\x0e\xe4\x53\x4e\xd1\xa5\x9e\xfb\x9c\x85\x59\x53\x49\x5b" "\xdd\x45\x90\x87\xbb\xa9\xd3\x2c\x6b\xb1\x12\x53\x0f\x5a\xc3\xb0\x3c" "\xee\x2d\x98\x4c\x43\x2b\x12\x23\xfd\xea\x2a\xa5\x12\xf6\x7f\x49\x75" "\x2f\x61\xc5\x73\xd4\x10\x48\x83\x4e\xc5\x8f\x57\x40\x29\xbf\x1e\xac" "\x82\xd3\x0a\xb4\x43\x9b\x1a\x8a\xf5\x80\x00\xe4\x4f\x4e\xc2\xba\x78" "\x70\x4e\x3a\x16\xe5\xcd\x71\xb8\x68\x46\x98\x91\x0d\xa9\xf2\xcc\x12" "\x77\x77\x2d\x03\xcc\x9f\x56\x44\x6a\xef\x39\xa9\xaa\x21\xe9\x29\x7e" "\x00\xcf\x98\x14\xec\x44\xac\x62\x9d\x89\xcd\x6e\xae\x78\x17\x3b\xa7" "\x4e\xc6\x5d\x57\x8a\x6c\x96\xcf\x39\xcd\x53\xe6\xda\x1b\xfe\x9f\xa8" "\x3b\x39\x63\x88\xa6\xf0\x0d\xee\x8c\xad\x1a\x4d\xfd\x18\xde\x14\xeb" "\x58\xf5\x72\xbd\xba\xd7\xa1\x66\xdf\x0c\x36\x68\x00\xdd\x44\x85\xdf" "\xe1\x8a\x5e\xd6\xad\x45\xfd\x18\xa1\xaa\xd7\x10\x03\x01\x03\x57\xfc" "\xe6\x08\x7e\xd8\x20\x9c\xe1\x90\x69\x70\xf4\x7f\x41\x10\x97\x67\x13" "\x05\xfb\x3f\xdc\x70\x9b\x20\x6a\x8c\x5d\x65\x24\xbc\x53\xc8\xc2\x3d" "\x9d\xc0\xe7\x5a\x8d\xc0\x2b\xbf\xe5\x64\x1b\x2d\xb6\xb8\xd9\x48\x75" "\x98\x73\x5d\x9d\xe1\xb0\x1b\x35\xc0\x02\x79\xa8\x5f\x92\x7c\x73\x91" "\x16\xdc\x15\x67\x35\xea\x1a\xdb\x31\xe8\x65\xe3\x8d\x52\xf1\x51\x3c" "\x7c\xfe\x19\xbf\x3c\xac\xf0\xc8\x83\x4a\x2e\xd9\xaf\xae\x3d\x47\xec" "\xca\x9f\x75\xa1\xbc\x94\x2d\xed\x5e\x3a\xd7\x86\x30\x91\xbb\xa0\xc2" "\x2e\x29\xc6\x3f\xc9\x1f\x23\x45\x9a\x74\x9c\x00\xed\x0e\x92\x08\x8c" "\xea\x76\x4b\x77\x8e\x8b\x42\x16\xfa\x31\x93\x17\xac\xa2\x39\x53\x9d" "\xcb\x5f\xb8\xd1\xc1\xa6\x1b\x48\x03\x07\x4f\x35\xb2\x04\x7d\x49\xe1" "\xc2\x3d\x4b\xe4\xb8\x74\xf2\x4f\xe5\xf7\x28\xbf\x22\x63\xc1\x5c\x0d" "\x60\x3a\xb4\xa0\x08\xec\x94\xa4\xc3\xdb\x4b\x84\xe8\x59\x01\xff\x7f" "\x58\x91\x81\x36\xb5\x14\xd1\x27\x53\xb8\xc9\x0f\xef\x48\x33\x55\xe5" "\x06\x75\x72\x67\xb5\xcf\x6c\xb1\xa3\x6b\x6f\xfe\xf3\x3c\x22\x14\x98" "\xdf\x20\x85\xd3\x78\x4b\xd8\x5a\xff\xd7\x58\xb8\xa3\xb6\x13\xe6\x0c" "\x24\xef\xf6\x19\xe2\x60\x40\x6d\x50\x1d\x60\xf8\x02\x3e\xe1\xd2\x37" "\x62\xd5\xf5\x4b\xca\x67\x3d\xcd\x0e\xa6\x14\x58\x2b\x5d\x1e\x77\x79" "\xbb\x72\x3f\xed\xec\x2a\xb4\x8b\x8f\x40\x68\x06\x49\xde\x0a\x3e\x35" "\x62\x60\x48\x30\x51\x6c\x89\x55\x28\x8f\x08\xd8\x66\x6c\xca\x80\xde" "\x79\x9b\x1c\xf4\xea\x54\x5c\xc5\xb5\x37\xbe\x42\x32\x92\x2d\x88\xf8" "\x61\x7f\xb4\x32\x2b\x89\xc8\xce\x41\x6f\x1c\x3a\xe4\x88\x8d\x96\x62" "\x3b\xb4\x55\xfa\x8e\xd0\xb2\x7d\xdf\x05\xc3\x69\x97\x28\x3a\x79\x88" "\x06\x76\x28\x67\xa8\x05\xe8\x7f\x31\x39\xdc\x74\x9b\xdf\xfd\x3b\x41" "\xe4\x00\x30\xa8\x13\x93\xa4\xc1\xdf\x47\x2e\x2f\xf3\xc2\xf9\xa0\xed" "\xdf\x39\x47\xf1\x15\x8a\x27\xc8\x70\x4d\x7a\xee\xf4\xf2\x33\xc1\x0f" "\x46\x9e\x8b\x23\x83\xd4\xf9\x2a\xa2\xc6\xb8\x8b\x24\xdf\x9c\xc9\x8c" "\x0d\xd4\x61\x48\xcf\xe2\x19\x04\x46\x64\x41\x9e\xee\x84\x29\x34\x30" "\x1d\xa8\xbd\x03\x66\x98\x43\xd4\xcd\x82\xf9\xf7\x07\xbc\x64\xb5\x43" "\x1a\x72\x1b\x77\xb6\xb5\xf9\x20\x76\x16\x72\x42\x7f\x3d\x83\x49\x3a" "\xb2\x78\x2d\xdb\xad\x4d\x61\x7a\x5a\x96\x37\x81\x75\x6b\x6a\x26\xe0" "\x37\x35\x65\xf0\xc2\xb2\xf4\x83\x7b\xe9\x00\xd7\xb9\x73\x4e\x27\xd3" "\x50\xd0\x51\x94\xa2\xaf\xce\xef\xe5\x67\x58\x08\x46\xc8\x9c\x39\x5c" "\xa3\xf9\xa5\x2f\x19\x1d\x4e\x18\xe9\x0c\x46\xbd\x94\x65\xc1\xa6\x1e" "\x6a\xc8\x61\xcb\x9a\x06\x78\xb2\xa4\x6e\x55\x53\x5f\x3f\x50\xc7\xf9" "\x0d\x03\xc6\x27\x3d\x87\xd5\x89\x33\x6c\x14\xe7\xba\xf0\xca\xa1\x2d" "\x23\x77\xb4\xbe\x9e\xc1\x64\x5f\xc6\xb9\x8e\xbb\x28\x3b\x10\x05\xa9" "\x94\x42\x10\x1e\xa3\x20\x09\x0a\xdf\xd8\xd6\x30\x3f\xdf\xc8\x6a\x06" "\xfd\x5c\x1f\xe2\x57\xf4\xf5\x6f\xd1\xa7\xc7\x00\x06\x57\x10\x95\x06" "\x49\x31\x36\x0d\xcb\xc4\x33\x9e\x38\x0b\x82\x51\x0d\x0e\x3c\x9a\x1d" "\xf2\x00\x35\xf0\xaa\x8c\x3c\x03\x54\x5b\xba\xc0\x46\xd0\xd7\x61\xd5" "\xd7\xfa\x15\x79\xd9\x7b\x6d\xb5\x1a\x61\x9f\xb7\x6a\xf3\x0b\xf2\xfd" "\xbc\x37\x66\x0f\x6e\xb1\xad\xa9\xd9\xdf\x0d\xa4\x55\xc4\x54\x3d\x85" "\x21\x3a\xc2\xbf\x83\xa6\x68\x49\x96\x01\x04\x04\xcd\x17\x4a\x68\xfe" "\x4f\x41\xee\x58\x78\x02\x98\x30\xe2\x60\x8a\x86\xe2\x7d\x08\xdb\x44" "\xce\x5d\x89\x15\xa8\x49\xcc\xa5\xc3\xaf\x6a\x10\x0d\xdf\xf5\x54\x0b" "\xe0\xcd\xc0\x30\xe2\xfc\x82\x13\x7e\xd8\xe0\x19\x43\xb3\xb6\x4e\xde" "\x55\x2a\x85\x4a\xe7\xeb\x71\x16\xe7\x3d\x45\x0e\x37\xf3\x28\xef\x30" "\xbf\xe5\x75\x14\x6f\xee\x34\xb7\x49\xe6\x67\xd7\x60\xd8\x49\xd2\xee" "\x71\x75\x20\xf9\xe8\xe3\x2d\x3d\x61\x1c\x62\x2b\xc4\x09\xd7\x28\x5b" "\xed\xd7\x79\x04\x36\x0a\x04\x6b\xee\xc6\x83\xed\x33\x7f\xc4\x23\x40" "\x44\xe6\x5d\xc5\xff\x95\x40\x79\x3f\x46\x53\x21\x0b\xa9\xe7\xe4\x84" "\x8e\x64\xe4\x04\xdb\xff\xb9\x66\x9e\xa8\x8b\xc6\x1d\xfd\x31\x5b\xcf" "\x10\xd2\x0f\x1e\xc4\xb8\x78\x34\x67\xfd\x50\x50\xeb\xb1\x1e\xb5\x56" "\x31\xb2\xe7\xae\x23\xc0\xfb\x3f\x4d\xdb\xe5\xfd\x63\x66\xa0\x40\xe7" "\x73\xd2\x87\x5e\x9c\xd3\x9d\x99\x0b\x03\x8b\x61\xcb\xa8\x2b\x31\x85" "\x71\x4e\xc5\xea\x28\x69\xce\x6e\x95\x81\xe4\xb2\x21\xc6\x85\x0a\x8c" "\x5f\x9f\xc8\x56\xe8\xf6\xb5\x52\x3d\xa8\xf8\x01\xf3\x1f\x49\x05\x81" "\xce\x6f\xb4\x46\x14\x31\x1a\x45\xd1\x14\x59\x96\xaa\xcb\xec\xbb\xe6" "\x8b\x09\xba\xf4\xf9\x60\x1a\x04\x29\x94\x3d\x46\xe9\xcd\x48\xf2\x7b" "\x91\xf4\x02\xcd\x9f\xa7\x32\x8c\xf2\xdc\x00\x77\x66\x1b\xc4\xf9\xf1" "\xcf\xf6\x26\xf9\x63\x22\x38\xc1\x97\xf6\x70\x79\x57\xac\x6b\x19\xd7" "\xdf\xda\xf8\x63\xf7\x9b\x88\xa7\xf2\x1a\xa1\x6d\x26\x18\x14\xff\x1d" "\xc1\x6f\x2f\xcc\xae\x28\x8a\x5f\x9a\x10\x71\x75\x2b\xdf\xb1\x2c\x55" "\xc8\x03\xba\x42\x97\x69\xe5\x3b\x74\xad\x9c\xab\xf2\xd3\xf3\xc0\x89" "\xa4\x6a\x95\x97\x0f\x5b\x26\xad\x7b\xe4\x65\x9c\xdd\x3c\x37\xb2\xd6" "\xa8\x4e\x51\xd4\x9b\x6e\x8c\x7a\xd7\x59\xec\x63\x25\x68\xe4\xb5\xe6" "\xf2\x38\x6a\xd9\xae\x00\x6c\xf9\xed\x8e\x6e\x26\x72\xdc\xfb\x7b\x87" "\x34\x5c\x53\xca\x6c\x33\x08\x00\x2e\x3b\xe1\xe8\x69\x16\xa3\x60\x75" "\xed\x5f\xea\xf9\x2b\x0a\x75\x0c\x99\x29\xa3\x6e\xbb\xb4\x12\xe9\x50" "\x5d\xa9\x64\x8b\x1d\x78\x13\x5a\x7f\x9d\xa3\xdf\x0b\x66\x2c\xc7\x7e" "\x6f\x49\x5b\xba\xcb\xb1\xbb\x57\x8a\xd6\xa4\xb9\x85\x42\x5c\xe9\xcf" "\x47\xd6\xae\x8b\xa4\xb7\x24\xf7\xaa\xa6\x87\x8d\x47\x64\xd6\xa3\xae" "\xac\x68\xaa\xa7\x2f\xbf\x26\xf5\x31\x05\x13\xff\xff\x4f\x3e\x2b\x5d" "\x76\xc3\xde\x86\xed\xdc\x32\x21\x9c\xe2\xa9\x60\xdf\xdc\x02\xf9\x87" "\xab\xbf\xa8\xf3\x00\x7b\xb1\x27\x13\x65\x2e\x5a\x38\xe9\x02\x38\x9d" "\x08\xcd\xf8\x57\x29\x5a\x67\x78\x5c\xca\x3d\xd6\x4e\x60\x30\x3d\xd3" "\x6c\x3d\xab\x41\x5b\x03\xda\xa3\xb4\xa3\xe9\x6e\x36\x8e\x13\x7a\x87" "\x89\x8c\x84\xd2\x42\x05\x40\xdd\x6b\x47\x58\x27\x8e\x61\xdb\xd4\x82" "\xc3\x2a\xb9\xc6\xcd\xb3\x2d\x57\x77\xe5\x78\x70\xc4\x6c\xcd\x09\xa5" "\x58\x61\x33\x9d\xa2\x21\xf0\xc7\xb8\x7c\x89\xe0\x79\x50\x5c\x09\x69" "\xd3\x70\x0f\x59\x47\x79\x6b\x34\x8c\x70\x39\x71\x7c\xab\xfc\x68\x95" "\xd3\x2b\x61\xcf\xac\x7b\x88\xd0\x2d\x8e\xa7\xca\xb9\x4f\xee\x2f\x9c" "\xd2\x63\x4f\x51\x16\xf3\x0e\xa3\xed\x15\x7e\x9f\xe6\x57\x51\x10\xeb" "\x75\x68\x14\x9c\xb1\xd3\x0b\x68\xd8\x78\x0d\xcf\x59\xde\x37\x9c\x49" "\x59\x1b\x9c\x4b\x15\x8d\x36\x3a\x15\x70\x51\xff\x5c\x92\x2d\x17\x20" "\x5a\x62\x15\x53\x51\xa0\x65\x46\xda\x43\xc1\xe3\x23\xf2\xc4\xf2\xc6" "\x13\xaf\xc2\x9b\x01\x1f\xd2\xc6\x01\x71\xba\x29\x47\xe9\x27\x60\xc4" "\xcf\x01\x3c\x4c\x33\x2f\x7d\x42\xf4\xdb\x01\x56\x9e\x19\x74\xf5\x67" "\x66\x25\x9c\x11\xa4\x80\x10\x12\xa6\x4f\xba\x6a\x30\xb1\x36\xed\x4e" "\x1d\x71\x03\x2b\x61\xd3\xda\x95\x87\x3d\x23\x91\xd3\xb1\x64\x60\x96" "\x5b\x49\x59\xb4\xf6\x8b\xdd\x7d\xcf\x3e\x97\xb3\xcc\x87\xae\xed\x60" "\x06\xd7\x3c\x8e\xd9\x0d\x0c\x89\x3e\xe1\xd5\xc9\x35\xee\x28\x87\x26" "\xc9\x21\x8f\xe9\xe9\x53\x04\xcd\xc2\xfe\xa8\x6b\x3c\xa5\x43\x59\x8f" "\xb9\xa4\xd2\x56\xe6\x9c\x9b\xeb\xa9\x58\x02\x3f\xb3\x98\x1b\xd0\xce" "\xe2\xde\x2e\xe2\x5a\x0b\xf9\x16\x24\xbf\xd7\xf4\x01\xb9\x6f\x9b\xa8" "\x4c\x8a\xed\x26\x79\xa3\x99\x56\xe3\x7d\x75\x7a\xaf\x6f\x76\x55\x6c" "\x8b\x0b\x32\xa7\x4f\xb7\xf3\xc2\xe0\xf7\x8a\x10\x50\x57\xa4\x5f\x5f" "\x31\x5b\xd2\x54\xe9\x4e\xe8\xae\xe8\x41\x8e\xc5\x8b\x28\x7e\xba\xdd" "\xc5\x5c\xc3\xea\x61\x88\x68\x3a\x83\x9e\x42\xd4\x68\xe9\x11\x94\xa7" "\x55\x5b\xa3\x88\x49\x4d\x7e\xfd\x3c\xcc\x39\x96\x73\xc3\x74\xce\xab" "\xa4\x7f\xc8\x17\x2f\x7a\x2a\x13\x76\x4c\x23\x28\xa8\xaa\xe3\x01\xb2" "\x8f\xe7\xdc\xed\xac\x3d\x04\x8a\xaf\xbf\xf8\xa7\xd6\x5c\x5c\x9e\xa0" "\xc6\x80\xa9\xaf\x2a\x70\x45\x44\xa3\xfc\xed\x41\x5d\xa4\x3c\xf1\xcc" "\xf7\xd7\x01\x6b\x87\x14\x17\xe7\x59\x97\x3c\x77\x44\xfd\x03\x6d\x20" "\x72\xdc\x31\x35\x3a\x48\xee\xcb\xc6\xb9\x39\x0b\xc7\xda\x16\xc1\x0a" "\xc7\x31\xcb\x82\xc9\x04\xb2\xe5\xfc\xb4\x04\xa1\x00\x1c\x0d\x1e\x2b" "\x48\x16\xa1\xe4\x8a\x9b\x45\x62\xbf\x2c\x28\x67\xfa\xa2\x35\x3a\x91" "\x18\x2b\xce\xe7\x34\x60\x9a\x53\xed\x15\x84\x83\x76\x9d\x98\xcf\xb7" "\xe5\xf0\x16\xc0\xee\xfd\x52\x04\x1c\x00\x29\x06\xe1\x00\x83\xc9\x46" "\x6b\xeb\xc5\x6e\x38\x90\xfc\x7a\xc7\xab\x52\x8a\xea\x73\x41\x0e\xd0" "\x4a\x94\x05\x41\x48\x88\x65\x32\x00\x27\xf8\x75\xfd\xcf\xb1\xc7\xc4" "\x02\xb4\x03\x4a\xf1\xb6\x79\xe7\xb6\x14\xba\x49\xe6\xec\x1b\xb7\xb0" "\x6f\x66\xae\xe7\x4a\x39\x26\x2a\x51\xf3\x72\x12\x9a\xdd\xdb\x76\xa2" "\x64\x71\x39\x3e\x9b\x42\x75\x77\x10\xc4\x16\x11\x89\xb5\xe1\x45\x88" "\x90\xf2\xb4\x3a\xcf\xda\xf8\x2d\xa7\x51\xa7\xe7\x2c\xca\x1d\xae\x37" "\xc8\x45\x22\x5b\x04\xd3\x2e\xf8\x4e\x98\xd5\xa2\x6a\xe4\xd3\xcd\x16" "\x25\x10\xb3\x55\x88\x68\xec\xa6\xbf\x72\xb4\xb9\xfb\xd4\x0c\xb3\xad" "\x2d\x17\xb7\x09\x7c\x54\x08\xbd\xda\x9e\xee\x95\x7a\x39\xab\xae\xb5" "\x94\xd5\x24\x97\xc5\xa8\x10\x2c\x9c\xf5\x0c\xd9\xb6\xc5\xb8\xd8\xa2" "\xa0\x03\x40\xda\xe4\x95\xe4\x71\xc6\x91\x33\x85\xd0\x5f\x99\x4e\x82" "\xae\xa9\x16\x47\xa6\x8c\x47\x4a\x5e\xf4\xd1\x59\x65\x2a\xf0\x69\x13" "\xab\x2c\x78\xa5\xc6\x8a\xe8\xd5\xd8\xc1\xa6\xcb\xb4\xb0\xdf\xa9\x20" "\x4a\x1b\xdd\xa2\x56\x44\xc4\x8d\x4b\xe6\x8d\xec\x36\xfb\xde\x82\x6e" "\xc1\x95\x6e\xc3\xc2\x36\xb7\x38\x6c\x61\x0a\xec\xe9\x9c\x3a\xaa\x74" "\x37\xf6\x03\xbd\x10\xa9\x67\x82\xb6\x52\xed\x78\x23\x52\x04\xaf\x2a" "\x1a\x45\x80\x4d\xac\x5b\x21\xd0\x2c\x2c\x0c\xe8\xe5\x33\xcd\xf5\x05" "\x5b\x27\x11\xd5\x80\xdf\x3c\x31\xba\xae\x14\x59\x7c\xd4\x0c\x3f\xa0" "\xd1\x0f\x3d\x41\x2c\xc7\x80\xaf\xd6\xde\x9c\xe1\x12\x08\x7c\x04\xa1" "\x03\x74\x33\x71\xe5\xf3\xa5\x62\xcf\x94\x4c\x01\xcb\x3e\xaf\x31\x5d" "\x3f\xff\x5c\xe3\x96\x9e\x81\x29\x0f\x2b\x94\xe4\xf4\x67\xe4\xc4\x9f" "\x93\x8a\x09\xd9\xfa\xa7\xce\xfa\xe6\x17\xec\x50\x34\xb7\xb8\x44\x27" "\xda\x61\x9b\x06\xd8\x7a\x4d\xde\x68\xc4\xee\x42\x2e\x75\x17\x7b\x1d" "\xcd\x18\xd2\x93\x4d\x12\x79\x3d\xfe\x64\xd2\x14\xea\x56\xa7\x60\x9c" "\xfb\x16\xc6\xa0\x4b\x0a\x19\x94\xe6\x59\x58\xcb\x5b\xd7\xfc\x95\x0f" "\x3d\xfd\x0f\xa7\x35\x08\x7c\x79\x15\xae\x8a\xb3\x2f\x12\x68\x40\x22" "\xf0\x1f\x00\x7c\xa7\x1d\x2c\x58\x34\x3a\x60\xdf\x29\x4f\x28\xb0\x7e" "\xfd\xd8\xbc\x8c\x94\xc9\xb4\xef\xf5\x42\xf5\x83\xe8\x4c\x07\xde\x16" "\x51\xaf\xb7\x28\x65\xbf\x32\xbe\x31\x35\x5f\x47\x92\x35\x5a\x8f\xd3" "\x91\x90\x60\x81\x9f\x43\x85\x21\x31\x87\xd8\x59\xe4\x0e\xfd\x4a\x0a" "\x83\xd9\x7d\xc7\x5b\xff\xad\xfb\x35\x70\xcf\x2b\x5f\xc6\xcd\x70\xe5" "\xbc\x26\xc2\xc9\x77\x49\xb4\x2e\x5d\xcc\x14\xf8\x3f\x55\x1e\x86\x78" "\x2f\xcc\x2b\x7c\x01\xb1\xfc\x22\xec\x39\x4b\x38\x30\xfc\xd4\xb1\x7f" "\xa0\xa1\x89\xd1\x01\xa8\x46\x36\xd3\xf0\xe9\xa6\x71\xa7\xa3\xf3\x73" "\x01\x6c\x63\x2b\x56\xb0\x4a\xf6\x4d\x6e\xae\x53\xc7\x03\x1e\x3c\xf3" "\x9e\x55\x79\x4f\x71\x0f\xfa\x86\x62\x53\x5d\x93\x6c\xb6\x04\x1e\x69" "\xee\x3b\x7a\x24\x8e\xe8\x28\x6b\x9c\x51\x3a\x64\x2e\x88\x6d\x26\x0c" "\x28\xf9\xbd\x09\x00\xf2\x1c\xcc\xca\x98\xde\xb1\x53\xe8\xba\x03\x35" "\xde\x54\x49\x52\x1a\x93\xc3\x34\xcb\x83\x7c\x9f\xb2\x94\x24\xff\xc6" "\x57\xf3\x43\x23\x87\xbf\x25\x13\x1a\xd9\xdb\x75\x78\x5b\x90\xe5\xfc" "\xde\x71\x8d\xd6\x64\x62\x1b\xa3\x49\xc7\x9e\xe1\x5c\x4e\x8b\x37\x65" "\xea\x36\x2a\xb6\xf8\xdd\xf0\xa9\x43\x32\x5d\xc1\x7c\x75\x35\xc4\x45" "\xf5\x1e\x17\x4e\x15\x7c\xc0\x96\x3d\x08\x08\x76\x04\x39\x03\x7e\x39" "\xe6\xe9\x7f\x7c\xff\x48\x82\xb0\xc3\x01\xf5\xa3\xb1\x00\x04\x11\x5a" "\x6b\x59\x6d\x91\xc6\x53\x54\xad\xf7\xdd\xe3\x14\xdb\x67\x59\xf1\x55" "\x7b\xa1\xbc\xfc\x76\xab\x1d\x3c\xe7\xea\x60\x7a\xfa\xe7\x4f\xd8\x2e" "\xa0\x67\x4a\x43\x59\x8f\x84\x7e\x5b\xce\xbe\x51\xd9\x08\xdc\x14\x16" "\x72\x04\x70\x20\xbd\x48\xa3\x1a\x59\x4e\x36\x28\xa3\x6c\xcd\xc4\x4d" "\x03\x17\xa2\x04\x3d\xa8\x7c\xb1\xd2\xcc\xe3\x6b\x83\x4c\xd9\x77\x07" "\xc4\x65\x2e\xd4\xb8\x8e\x95\x7d\x32\xb2\x72\x57\x67\x07\x16\x66\xb6" "\xa9\xb9\xa4\xd0\x8d\x61\x9d\x34\x92\x87\x19\x23\x8b\xbd\x06\xdc\x4d" "\x9d\x05\xd8\x2f\xa2\x5f\x87\x1e\xd9\x66\x02\x88\xad\xb2\x36\x52\xca" "\xc5\x10\x0b\xa7\x50\x9b\xd1\x0e\x9f\x6a\x46\x3f\xc0\x55\x9a\x42", 4096); *(uint64_t*)0x200000000108 = 0x1160; *(uint64_t*)0x200000000158 = 1; *(uint64_t*)0x200000000160 = 0; *(uint64_t*)0x200000000168 = 0; *(uint32_t*)0x200000000170 = 1; syscall(__NR_sendmsg, /*fd=*/-1, /*msg=*/0x200000000140ul, /*f=MSG_BATCH*/ 0x40000ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-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=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); setup_cgroups(); const char* reason; (void)reason; if ((reason = setup_usb())) printf("the reproducer may not work as expected: USB injection setup " "failed: %s\n", reason); use_temporary_dir(); do_sandbox_none(); return 0; }