// https://syzkaller.appspot.com/bug?id=d5346cf7f8dfa39e8f25b5b085dfec6cf6bb288e // 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_getegid #define __NR_getegid 177 #endif #ifndef __NR_lsetxattr #define __NR_lsetxattr 6 #endif #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #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 bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } 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"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; res = syscall(__NR_getegid); if (res != -1) r[0] = res; memcpy((void*)0x20000100, "ext4\000", 5); memcpy((void*)0x20000200, "./file1\000", 8); *(uint32_t*)0x20000280 = r[0]; sprintf((char*)0x20000284, "0x%016llx", (long long)r[0]); *(uint16_t*)0x20000296 = r[0]; memcpy( (void*)0x20000298, "\xca\x42\xad\x87\xb1\x1b\xb3\xb2\x50\x7e\x03\x12\x9a\x43\x5e\x7c\x99\x10" "\x4f\x0c\xd5\x07\x00\x00\x00\x04\x6f\x94\x45\x63\x10\x55\xf2\x8a\x4e\x67" "\x77\xe9\x70\x47\xe5\x80\x7d\xb4\x99\x6b\x10\x20\x8d\x04\x45\x4e\xa6\x54" "\x88\x8b\xf7\x54\x95\x69\x45\x96\x16\x77\xb3\x48\xd3\x34\x78\xb3\xd8\xf7" "\x0e\xac\x43\x9f\x50\x11\x7f\xf9\x2b\xea\x81\x07\x0b\xba\x59\xcc\xec\x17" "\xe7\xd1\x82\xea\x9f\xdf\xde\x2b\x94\xe8\x26\xd2\x44\x92\xfd\x7f\x89\x83" "\x92\x59\x47\xdc\x2b\x35\x79\x43\x62\x2c\x9f\xea\xa4\x35\x12\xf4\xaf\xed" "\x56\xe4\x01\x0e\x25\x43\x16\x6d\xfc\x76\xe5\xea\xaa\x01\xa6\x5f\x10\x5a" "\x20\xfd\xcd\x2d\xc9\x95\xc2\xa8\xf4\x9e\x54\x09\x3b\x00\xdf\x3a\xe4\x9c" "\xbb\x07\xdb\x66\x9e\x4a\x36\x74\xc0\xa6\x39\x7c\xa5\x94\x87\x37\x55\x02" "\x7d\xeb\x72\xb0\x94\xa2\x95\x53\xf6\x74\xe5\xa4\x4c\x59\x7f\x04\x73\xf4" "\x96\x84\x71\x9c\x94\x45\x83\x9a\x59\xa0\x9e\x1c\x13\x61\xd7\x2b\x8a\x1d" "\xd1\x63\xee\xcd\x03\xbd\x21\x8b\xa8\x80\x48\x2b\x17\x33\xef\x3f\x91\xcb" "\xd4\x27\x96\xbd\xeb\x13\xd6\x3c\x3e\xad\xec\xb3\xdf\xe8\x3f\x1d\x88\xb8" "\xb7\xfb\x05\x3e\xed\x7e\x74\x2b\xff\xf2\x69\xa5\xc1\x60\x70\xd4\xde\x1d" "\x19\x8d\x2f\xdc\xfa\x40\x4f\xc9\xe6\xdf\x20\x25\x78\xe9\x62\x54\x47\x94" "\xe7\x7c\x24\x25\xf7\x3f\xcd\x3d\x0c\xd1\xd4\xff\xbc\x4e\xc0\x75\x4e\x94" "\x6a\xdf\xf5\xe9\xe8\x3f\xfc\x58\x61\x26\xde\x12\xee\x3a\x2b\x1e\x34\x7c" "\xbf\x59\x8c\x20\x64\x8b\xfc\x3f\xa3\x86\x87\x57\x5c\xb8\x46\x09\x68\x94" "\x90\x03\xbd\x44\xb8\x51\x1d\xd9\x53\xcf\xd9\xee\xf7\xb0\xcf\x14\x9f\x77" "\x74\x1a\xbf\xf4\x71\x03\xa5\x0a\xc1\xef\xb3\x9e\xba\x52\x8a\x63\xcc\xa0" "\x32\x9e\xf5\xc2\x24\x7e\xfc\x16\x85\x7a\xd9\x82\x55\x69\x3a\x11\x14\x9d" "\xde\x8f\xed\x62\x62\x3d\x07\xd3\x57\xb0\xc1\x25\x1f\x9c\x4f\x74\x92\xc9" "\xe5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 427); *(uint16_t*)0x20000443 = r[0]; memcpy( (void*)0x20000e00, "\x78\x9c\xec\xdd\xdf\x6b\x5c\x59\x1d\x00\xf0\xef\xbd\xc9\x64\x93\x36\x6b" "\x66\x55\x64\x5d\x70\x77\x71\x57\xd2\x45\x3b\x93\x6c\x6c\x1b\x44\xda\x0a" "\xa2\x4f\x05\xb5\xbe\xc7\x98\x4c\x42\xc8\x24\x13\x32\x93\xda\x84\xa2\x29" "\xfe\x01\x82\x88\x0a\x3e\xf9\xe4\x8b\xe0\x1f\x20\x48\xff\x04\x11\x0a\xfa" "\x2e\x2a\x8a\x68\xab\x8f\xda\x2b\x33\x73\xa3\x4d\x32\x93\xa4\x66\x92\xe9" "\x4e\x3e\x1f\x38\xb9\xe7\xdc\x5f\xdf\x73\x2e\x99\x33\xf7\xce\x3d\xdc\x1b" "\xc0\x85\xf5\x76\x44\xdc\x8e\x88\xa1\x88\x78\x2f\x22\x26\xf2\xf9\x69\x9e" "\xe6\x9a\x85\xdd\xf6\x7a\x4f\x9f\x3c\x58\x68\xa6\x24\xb2\xec\xee\xdf\x92" "\x48\xf2\x79\x7b\xfb\x6a\x96\x87\x23\xe2\x72\x7b\x93\x18\x8d\x88\xaf\x7d" "\x39\xe2\x9b\xc9\xe1\xb8\xf5\xed\x9d\xd5\xf9\x6a\xb5\xb2\x99\x97\xcb\x8d" "\xb5\x8d\x72\x7d\x7b\xe7\xea\xca\xda\xfc\x72\x65\xb9\xb2\x3e\x33\x33\x7d" "\x7d\xf6\xc6\xec\xb5\xd9\xa9\x2c\x77\xaa\x76\x16\x23\xe2\xe6\x17\xff\xf4" "\xc3\xef\xfd\xec\x4b\x37\x7f\xf5\x99\x6f\xfd\x7e\xee\x2f\x57\xbe\xdd\xac" "\xd6\xe7\x3f\xd6\xae\x77\x44\x2c\x9c\x2a\x40\x17\xed\x7d\x17\x5a\xc7\x62" "\x4f\xf3\x18\x6d\x9e\x45\xb0\x3e\x18\xca\xdb\x53\x18\x7a\x81\x8d\xc6\xce" "\xb0\x42\x00\x00\x1c\xa9\x79\x8e\xff\xe1\x88\xf8\x64\xeb\xfc\x7f\x22\x86" "\x5a\x67\x73\x00\x00\x00\xc0\x20\xc9\x6e\x8d\xc7\xbf\x92\x88\x0c\x00\x00" "\x00\x18\x58\x69\x44\x8c\x47\x92\x96\xf2\xb1\x00\xe3\x91\xa6\xa5\x52\x7b" "\x0c\xef\x47\xe3\x52\x5a\xad\xd5\x1b\x9f\x5e\xaa\x6d\xad\x2f\x36\x97\x45" "\x14\xa3\x90\x2e\xad\x54\x2b\x53\xf9\x58\xe1\x62\x14\x92\x66\x79\x3a\x1f" "\x63\xbb\x57\x7e\xff\x40\x79\x26\x22\x5e\x8b\x88\x1f\x4c\x8c\xb5\xca\xa5" "\x85\x5a\x75\xb1\xdf\x3f\x7e\x00\x00\x00\xc0\x05\x71\xf9\xad\xfd\xd7\xff" "\xff\x9c\x48\x5b\x79\x00\x00\x00\x60\xc0\x14\xbb\x16\x00\x00\x00\x80\x41" "\xe1\x92\x1f\x00\x00\x00\x06\x9f\xeb\x7f\x00\x00\x00\x18\x68\x5f\xb9\x73" "\xa7\x99\xb2\xbd\xf7\x78\x2f\xde\xdb\xde\x5a\xad\xdd\xbb\xba\x58\xa9\xaf" "\x96\xd6\xb6\x16\x4a\x0b\xb5\xcd\x8d\xd2\x72\xad\xb6\xdc\x7a\x66\xdf\xda" "\x71\xfb\xab\xd6\x6a\x1b\x9f\x8d\xf5\xad\xfb\xe5\x46\xa5\xde\x28\xd7\xb7" "\x77\xe6\xd6\x6a\x5b\xeb\x8d\xb9\x95\x7d\xaf\xc0\x06\x00\x00\x00\xce\xd1" "\x6b\x6f\x3d\xfa\x5d\x12\x11\xbb\x9f\x1b\x6b\xa5\xc8\x9f\x03\x08\xb0\xcf" "\x1f\xfb\x5d\x01\xa0\x97\x86\xfa\x5d\x01\xa0\x6f\x86\xfb\x5d\x01\xa0\x6f" "\x0a\xc7\xae\xa1\x87\x80\x41\x97\x1c\xb3\xbc\xeb\xe0\x9d\x5f\xf7\xbe\x2e" "\x00\x00\xc0\xd9\x98\xfc\xf8\xe1\xfb\xff\x23\xf9\xb2\xe3\x7f\x1b\x00\x3e" "\xc8\x8c\xf5\x01\x80\x8b\xc7\xdd\x3d\xb8\xb8\x0a\x46\x00\xc2\x85\xf7\xa1" "\xf6\xe4\x95\x6e\xcb\x4f\x7f\xff\x3f\xcb\x5e\xb8\x52\x00\x00\x40\x4f\x8d" "\xb7\x52\x92\x96\xf2\x7b\x81\xe3\x91\xa6\xa5\x52\xc4\xab\xad\xd7\x02\x14" "\x92\xa5\x95\x6a\x65\x2a\xbf\x3e\xf8\xed\x44\xe1\x95\x66\x79\xba\xb5\x65" "\x72\xec\x98\x61\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xa0\x2d\xcb\x92\xc8\x00\x00\x00\x80\x81\x16\x91\xfe" "\x39\x69\x3d\xcd\x3f\x62\x72\xe2\xdd\xf1\xfd\xbf\x0e\x1c\x78\xeb\xd7\x4f" "\xee\xfe\xe8\xfe\x7c\xa3\xb1\x39\x1d\x31\x92\xfc\x7d\xa2\x39\x6b\x24\x22" "\x1a\x3f\xce\xe7\xbf\x9f\x79\x25\x00\x00\x00\x00\xbc\x04\xda\xd7\xe9\xf9" "\x74\xba\xdf\xb5\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x60\xd0\x3c\x7d\xf2\x60\x61\x2f\x9d\x67\xdc\xbf\x7e" "\x21\x22\x8a\x9d\xe2\x0f\xc7\x68\x6b\x3a\x1a\x85\x88\xb8\xf4\x8f\x24\x86" "\x9f\xdb\x2e\x89\x88\xa1\x1e\xc4\xdf\x7d\x18\x11\xaf\x77\x8a\x9f\xc4\xb3" "\x2c\xcb\x8a\x79\x2d\x3a\xc5\x1f\x3b\xe3\xf8\xc5\xd6\xa1\xe9\x1c\x3f\x8d" "\x88\xcb\x3d\x88\x0f\x17\xd9\xa3\x66\xff\x73\xbb\xd3\xe7\x2f\x8d\xb7\x5b" "\xd3\xce\x9f\xbf\xe1\x3c\x9d\x56\xf7\xfe\x2f\xfd\x6f\xff\x37\xd4\xa5\xff" "\x79\xf5\x84\x31\xde\x78\xfc\x8b\x72\xd7\xf8\x0f\x23\xde\x18\xee\xdc\xff" "\xec\xc5\x4f\xda\xf1\x93\x38\x10\xff\x9d\x13\xc6\xff\xc6\xd7\x77\x76\xba" "\x2d\xcb\x7e\x1a\x31\xd9\xf1\xfb\x27\xd9\x17\xab\xdc\x58\xdb\x28\xd7\xb7" "\x77\xae\xae\xac\xcd\x2f\x57\x96\x2b\xeb\x33\x33\xd3\xd7\x67\x6f\xcc\x5e" "\x9b\x9d\x2a\x2f\xad\x54\x2b\xf9\xdf\x8e\x31\xbe\xff\x89\x5f\x3e\x3b\xaa" "\xfd\x97\xba\xc4\x2f\xee\x6f\xff\xa1\xe3\xff\xee\x09\xdb\xff\xef\xc7\xf7" "\x9f\x7c\xa4\x9d\x2d\x74\x8a\x7f\xe5\x9d\xce\xdf\xbf\xaf\x77\x89\x9f\xe6" "\xdf\x7d\x9f\xca\xf3\xcd\xe5\x93\x7b\xf9\xdd\x76\xfe\x79\x6f\xfe\xfc\x37" "\x6f\x1e\xd5\xfe\xc5\x2e\xed\x1f\x3d\xa6\xfd\x57\x4e\xd8\xfe\xf7\xbe\xfa" "\xdd\x3f\x9c\x70\x55\x00\xe0\x1c\xd4\xb7\x77\x56\xe7\xab\xd5\xca\xe6\x11" "\x99\xd1\x13\xac\x73\xce\x99\x5b\x2f\x47\x35\x64\x7a\x95\xc9\xbe\xd3\xfe" "\x7f\x3c\xdd\x7e\x4e\xb9\xf9\xa1\x4c\x76\x9a\xcd\x87\xa3\x07\xd5\x18\x79" "\x81\xcf\x69\x6f\x33\xfd\xec\x95\x00\x00\x80\xb3\xf0\xbf\x93\xfe\x7e\xd7" "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2e\xae" "\xff\xf3\x09\x61\xa3\x11\x71\xe2\x95\x0f\xc6\xdc\xed\x4f\x53\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x8e\xf4\x9f\x00\x00\x00\xff\xff\xdb\xae\xd6\x23", 1274); syz_mount_image(/*fs=*/0x20000100, /*dir=*/0x20000200, /*flags=*/0x2000000, /*opts=*/0x20000280, /*chdir=*/1, /*size=*/0x4fa, /*img=*/0x20000e00); memcpy((void*)0x20000180, "./file0\000", 8); memcpy((void*)0x200001c0, "trusted.overlay.upper\000", 22); *(uint8_t*)0x200013c0 = 0; *(uint8_t*)0x200013c1 = 0xfb; *(uint8_t*)0x200013c2 = 1; *(uint8_t*)0x200013c3 = 0; *(uint8_t*)0x200013c4 = 0; memcpy((void*)0x200013c5, "\x95\xb4\x60\x99\x93\x92\x8c\xb8\x19\x48\x9b\x12\xaa\x5e\xe1\x3e", 16); memcpy( (void*)0x200013d5, "\x31\x30\x87\x92\x99\xa7\x3d\xeb\x1f\x6b\x9d\xc1\x3c\x86\xc1\xf4\x3b\xcc" "\xe0\xab\x08\x4f\x90\xc5\xca\xb3\xd3\xeb\xd1\x96\x80\x05\xdf\x06\xe1\x64" "\x63\xd4\x03\xa5\x82\x7d\x3d\x70\xc1\x46\xb0\x6b\x57\xa2\x3a\x93\x83\x32" "\x41\xc4\xf9\x9b\x1b\x92\xe2\xc5\xd8\xc8\xc1\xc2\x30\xac\x11\xc7\x6d\xf5" "\x15\xdf\x95\x8d\xc1\xbf\x5d\x05\xbf\x7c\xb0\x8c\x71\x89\x71\xb4\xe0\xd6" "\x2e\xab\xa0\x32\x9b\x91\x5c\xd5\xea\x4b\x63\x29\x84\x73\x3e\x42\xd1\x12" "\x25\x6f\xfa\xb0\x37\xab\x6c\x4e\x4a\x48\xa2\x6a\x22\x50\x98\xb8\xcb\x37" "\x14\xd1\xe7\x81\xc6\xe9\x2c\x50\xc5\x7c\x0d\x46\x2b\xdb\xcb\x15\xe1\x99" "\x2e\xb6\xd8\x56\x41\x6e\x4b\x3e\x8b\x70\x1f\x90\x91\x91\x2d\x22\xa0\x61" "\x51\x39\x8b\xe0\x44\xe9\x23\x83\xab\xac\x47\x33\x3a\x7b\x88\x85\x41\x95" "\x03\x56\x55\x3c\x35\x40\xea\x70\x03\x24\x76\xb5\x05\xbf\x10\xa6\x28\x19" "\x1b\x72\x2e\x17\x5f\x40\x2b\xa2\x66\x34\x74\xa4\x1a\x97\xfb\x12\x3e\x9c" "\xbd\xba\x2d\x48\x6f\x52\xfa\xdc\xa2\x16\xd8\x35\x67\xe7\xa1\xee\xc0\x82" "\x4d\x3e\x33\x40\x1f\x9f\xbb\x52\x3b\x2b\x1d\x89\x0c\x6e\xe9\xaa\xbf\xb0" "\x18\x10\x55\x7e\x9e\x76\x5e\xbf\x09\x06\xaa\x77\xdd\x34\x44\x4c\x70\x98" "\x87\x31\x8d\x93\xed\xa9\x00\x80\x62\x49\x64\x3d\x98\x1a\x70\xec\xec\x2b" "\x05\x64\x48\x66\xcb\x53\xaf\x41\x76\xe6\x00\x50\x68\x05\x55\x93\xac\x32" "\x94\x67\xb3\x4f\xf6\x77\x0d\x5f\x02\x43\xaf\xbc\xb3\x32\x0d\x4a\x1d\xd7" "\xaa\xa5\x7f\x2c\x62\x5b\xc4\xb1\xa4\x24\x3b\x8c\x8a\xeb\x4a\xab\xf1\x22" "\xcb\x9c\xa8\xe3\x5d\xa9\xf0\xdb\x32\xe7\xe2\x06\xea\xb0\x68\x8d\xff\xa6" "\x06\xf7\xa4\x5d\x1b\x5b\xe9\x99\x4a\x8f\xaf\xac\x85\x6c\x2b\x78\xfd\x7e" "\x65\xb5\x18\x7c\x01\x8e\x02\x69\x5e\xb5\xfb\x3b\x46\xdd\x72\x3c\x8a\x5f" "\x5d\xca\xc0\xc4\x6c\xa9\xec\x0b\x22\x49\xab\xe5\x4d\x94\x3a\x98\xbf\x1c" "\xb0\xe5\xa3\xf3\x3a\x38\x33\x42\xa3\xbf\x3c\x41\xcc\x42\xf7\xa8\xe2\xa6" "\xe3\xd0\xaa\x4b\x81\x9e\x50\x35\xe5\xce\xa6\x3c\x56\xa7\x6b\x68\x81\xa1" "\xb5\x44\xd0\x58\xb7\xa7\x33\x21\xe0\x15\x77\x9a\x3d\x49\x12\xe3\xa9\x1f" "\x2a\xd7\xfd\x82\x3f\xf6\x38\x7a\xba\xfc\x8d\x8e\x62\x53\x7f\x4c\x7d\x40" "\x9a\x9d\x50\xc5\x8c\x94\x8b\xca\x16\x09\x28\xd8\xab\x9a\xb5\x80\x6f\xd8" "\x83\x9e\xe3\xd3\x08\x82\x84\x32\xcf\x69\x53\x8f\xbd\xa2\xaa\x2a\x66\x1d" "\xcc\x0f\x25\xc6\x00\xa2\x88\x9e\x59\xa3\x74\x63\xc6\x7c\x38\x14\xd0\x52" "\xe5\x11\x44\xae\x01\x3c\x18\x22\x64\x82\xf4\xdb\x3b\x55\xfd\x18\x48\xcd" "\x4a\x97\x06\xb3\xb5\x4a\x14\xf4\xd4\xe2\x17\x64\xba\xb6\x01\xdc\x69\x0e" "\x55\x84\x7e\x6c\x16\x1e\x6d\x1d\x99\x02\x31\xc3\x39\x44\x70\x14\xcb\xa1" "\xdc\xaa\x8f\xc4\xed\x1a\x3f\x0c\xb9\xa5\xf0\xfc\xb8\x6c\xbd\x11\x7e\xe3" "\x52\x2e\x0d\xeb\x07\x45\xa4\x9a\x30\xb2\xd0\x6e\xb3\xc2\xb1\xf3\xff\xf8" "\x52\xc9\x5a\xda\xe2\x75\xf4\x9c\x61\xc9\xa0\x2b\xf4\x13\x81\x88\x12\xae" "\xf5\x3b\xee\x26\xfc\xc8\xe7\x58\x31\x3d\xfd\xe1\xe8\x3c\xff\x40\x79\x8e" "\xce\x6c\x24\x35\x93\x82\x87\x9d\x56\xfd\xd2\x8f\x3e\xc0\xc5\xe3\x22\xfc" "\x57\x1d\x21\x6f\x62\x53\x7f\xac\xc2\xa5\xf7\x84\x96\x6b\xec\x6c\x75\x93" "\x3a\x3e\x7c\xcd\x1c\x0e\x74\x05\x11\x8e\x78\xb6\xe1\xcb\xab\x51\x57\xa3" "\x14\xed\xf0\x00\x8d\x73\xc3\xd9\xf7\xcb\xda\xac\x4d\x8c\x6b\x25\xca\xd8" "\xcd\xd6\x6f\xf0\x53\x0b\xc9\x6a\xd1\x03\x90\x9c\x95\xbc\x45\x3b\xaa\xc1" "\xbb\xc9\x7e\x25\x0d\x6f\x56\x1d\x25\xb8\xec\xb6\x6a\x7a\x11\x37\x7b\xfa" "\x6a\x92\x5c\x2f\x4a\x2a\x06\x42\xfd\x0d\xb7\x10\xff\x56\xe5\x12\xdf\xe0" "\x6b\x51\x8d\xd0\x33\x9b\x7c\x05\x61\x99\x45\x81\xbd\x8f\xd5\xf5\x93\x98" "\x54\xfb\xf4\x4c\x46\xb9\x53\x1b\xd3\x13\x35\xa2\x1f\xb1\x96\x69\x9d\x6c" "\x6b\x42\xaa\xec\xad\xdf\xe9\x1c\x31\xb6\xe3\x95\x65\x64\xa3\xee\xf7\x21" "\x7c\x24\x60\x91\xb0\x9b\xf6\x23\x8d\x57\xc7\x59\xb3\x49\xd4\x8e\xc2\x0f" "\x8b\x29\x60\xe6\xb0\x3a\x3b\xcb\x4f\x83\x59\x2a\x3d\x78\x2d\x46\xff\xaa" "\xba\x7e\x64\xb5\x78\x72\x29\xa0\x60\x15\x87\x1c\xde\xd5\xd2\xfb\x28\x7c" "\x47\xae\x39\xc9\xb0\x5a\x2a\x4b\x7b\x4a\x2f\x0d\xfb\x34\x92\xa7\x62\x77" "\xff\x1f\x0d\xf7\x7e\x9d\xe2\xb0\xfa\xf5\xa3\x4e\x14\xa7\x87\x68\x69\x62" "\x9b\x3d\x3f\x73\x91\x5f\xc2\x1d\x6d\xd1\x48\x48\x1f\x9e\x2b\xe6\xa3\x23" "\x8c\x13\xd8\x89\x05\x04\x76\x4d\x04\xe7\x39\xc1\x4b\xfe\x7b\x3b\xc8\x08" "\xc7\x5f\x2c\x84\xce\x2b\x79\xa1\x7b\xa0\x7d\x0f\x0c\xdd\x6c\xf9\x48\xac" "\xe0\x5a\x0d\x72\xa3\xeb\x3b\xd4\x51\x35\x15\x81\x2a\x37\x77\x0e\x50\xd8" "\xcf\xb7\xe4\xef\x1f\x1b\xd6\xa1\x9f\x03\x02\x90\x1f\x40\x81\x38\xaf\x7f" "\x74\xdd\x03\x5f\x89\xbb\x66\xd9\xb2\x4e\xc6\x07\x5f\xcf\x87\x15\xc5\x93" "\xd6\xcb\x30\x4f\x61\x02\x6b\xa0\xd1\x71\xaa\x7f\xae\x6d\x55\xd0\xaf\x9c" "\xba\x12\x01\x4c\x67\x05\x6a\x71\xe5\x8e\xe9\x0a\xb8\x70\x59\xbb\x12\x14" "\xeb\xcc\x12\x0e\xf7\x81\xda\xa9\x0d\xd3\x68\x50\x53\xcf\x40\x6f\x77\x22" "\xfd\x28\x36\x81\x4b\xd2\xc4\x59\x7a\x9f\x9d\xa0\x8e\x66\x33\x48\x37\xab" "\x71\x7b\x53\x4b\x8e\xb4\x20\x6d\x3e\xa0\x4d\xf4\x74\x94\x68\xd8\x0f\xd5" "\x31\x4b\xae\xe4\xcc\xd5\x49\x77\xb6\x74\xdf\x1f\xd6\x3e\x3c\x82\x26\x2e" "\x82\x18\xcc\x1f\x01\x58\x90\xb4\xc7\x26\xb8\xa8\xe2\xd1\xb3\xe5\x89\x88" "\x45\x3c\x70\x1c\x91\x51\x2e\x6a\x11\x2c\x27\xe4\x58\x85\x92\x79\xa1\xa8" "\xc5\xd0\x94\x99\x22\x3e\xbb\xb7\xe1\x52\xc4\xc5\x96\x7f\xf8\xa4\x6c\x74" "\x83\xa8\x6e\x55\xe2\x30\x6f\x49\xcc\x7f\x2f\xeb\xb5\x9b\x76\x2d\x89\x33" "\x2c\x48\xbd\xbc\xc5\xa8\xf7\xb8\xc6\x27\x41\x03\xe0\x8b\x8b\xa6\xd8\x5e" "\xb1\xbd\xa4\x28\x28\xcc\xaf\xc2\x3e\xfb\x2a\x8d\x4e\x73\x4b\xfa\x04\x69" "\xc2\x30\x05\x11\x97\x0a\x53\x8b\x27\x3b\x14\xca\xc4\xe4\xee\x4e\x6d\x0a" "\x90\xd7\x76\x26\xb4\xb6\x7e\x5d\xdb\x9b\x85\xc1\x00\x59\xae\x41\xb0\xe4" "\x8c\x2f\x2b\x37\x83\xfb\xe3\x1f\x26\x53\x46\x27\xe1\x00\x46\xdb\x9c\xa4" "\x24\x3a\x98\xe8\x59\xa8\x06\x42\xce\x16\xf1\x29\x14\xbe\x6c\x9f\x6e\xe3" "\x44\x72\x76\xb1\xdd\xdb\xf8\xb5\x91\xd5\x96\xb0\x67\xb7\xe1\x28\x61\xad" "\xc6\xdb\x7e\xbd\xd0\xa3\xaa\x8c\x3e\x1f\xe4\xb7\x94\x24\x1a\xd2\xf4\x4e" "\xdf\xce\x40\x22\xe1\x23\x38\xb6\x4d\xd6\x91\xf5\x99\x07\x33\xea\x96\x7e" "\x73\x3e\xee\x6f\x88\x0b\x5c\x8e\x0a\x05\x80\x1e\x81\xb9\x46\x02\x65\x9c" "\x74\x8b\xdb\x93\xe4\xf3\x66\x89\x64\x1f\x6d\x49\x0c\x34\x1a\xca\x8a\x82" "\x3b\x79\x4a\x55\x2b\x01\xc2\x20\x0a\x26\x1d\x64\x93\x23\xeb\x8d\xbe\x61" "\xc5\x73\xa5\x76\xf2\x53\xb2\xf6\xb6\xd1\x59\x08\x4d\xa4\x09\xb9\x16\x42" "\x15\x97\xcb\x53\x28\x5c\xf2\xd5\x87\x8f\x46\xa4\x61\x50\xef\xf7\x66\xa9" "\xde\xa8\x40\xd2\x2c\xc8\x80\x20\xa8\x9d\x90\xcc\x29\xea\x6a\x1a\x50\xef" "\xa0\xb3\xd3\x8c\x5d\x44\xd9\xa3\x7e\xca\xb4\xee\xa3\x88\xb2\x1a\x55\x3b" "\x01\x03\xaa\x2c\x07\xd4\x36\x24\x01\x42\x6a\xa1\x72\x29\xad\x5b\x6a\xc9" "\x98\xe6\x19\xbc\x26\xa8\x5f\xac\xb1\xda\xf4\x90\x9d\xb0\x08\x04\x57\x7f" "\xae\x2f\x28\xfe\xa9\xbe\x6e\xd4\x55\xaa\x44\x7f\xbe\x12\xd4\xd8\xe3\xb3" "\x45\x26\x31\x90\x17\x65\xf9\xce\xfa\x5f\x5b\xef\x5b\x0e\x86\x0d\x84\x15" "\x07\x16\x46\x9f\xda\x16\xf7\x66\x86\x72\x3c\x17\xc3\xd1\x83\x21\x31\x0f" "\x8a\xa9\xb7\x95\xa8\x8b\x33\x08\x13\x6f\xc3\xe1\xae\x65\x67\x4b\xa6\x00" "\x43\x37\x4f\x65\xde\x81\x4e\xf0\xe3\x2c\xc5\xee\x9f\x59\x95\x98\x83\xa3" "\x8e\x5a\x27\x91\x1c\x06\x2a\x40\xf2\xbf\xcc\x12\x6a\x67\xc0\xc9\x57\x94" "\xec\x02\x1e\x45\xb0\x99\xee\x37\x78\xb2\x5e\xb9\xa2\x3a\x30\x82\x05\xad" "\x07\xcf\x0d\x59\x1a\xc4\x9e\x9d\x64\xc0\x44\x76\x33\x58\x16\x1f\x42\x12" "\x4c\x65\x2b\x48\x4c\xb3\xa6\x7f\xd0\x02\x90\x82\x49\x1b\x8d\xc9\xa4\x37" "\x5f\x83\xbb\x3f\x12\x42\x17\x80\xba\xe5\x3f\xee\x7d\xca\x84\xa0\xf0\x97" "\x6d\x37\xb0\x54\x38\x19\x47\x9d\xf0\x5b\xae\x97\x65\x77\xf0\x0f\x35\xbc" "\xcc\xb0\x21\x94\x1c\x20\xf1\x02\x06\xbc\xa2\xce\xcc\x13\xe4\xf6\x09\x6b" "\x72\xe1\xa3\x67\xd9\x8c\x35\x40\x16\x8c\x89\x07\x52\xfa\x2b\x14\xa5\x43" "\x6b\x83\xa6\x12\x2f\xd2\x10\x5f\x59\xc8\x9e\xa2\xea\x2f\x72\x07\xc2\xcf" "\x9a\x26\x81\x7a\x39\xde\x82\xbc\x28\x57\x50\x1e\x4f\x77\x39\x0c\x06\xeb" "\x34\xc7\xc9\x7b\xae\x57\xea\x5f\x5a\xe4\x02\xde\xde\x71\xc8\x7c\xce\x9a" "\x81\xdb\x6c\x0c\x4e\x72\x94\xf7\xf1\x84\x75\xd3\xbd\x0c\xad\xff\x37\xae" "\xda\x34\xd7\x45\x11\x70\x2d\x29\x89\x42\x60\x8a\xdb\xfe\x47\xc9\xe2\x1b" "\x2b\x84\x9b\xb2\xe5\xcc\x5f\x6c\x6f\x22\x56\x80\x7a\x54\xb9\x24\x8c\x1b" "\x02\x25\x5e\x1f\xd2\xd4\x27\xdf\xda\xfc\x32\x94\x10\x52\x1d\xcb\x90\x18" "\x93\x67\xc3\xb5\xad\x6e\xb8\xfd\x06\x71\x1c\x8f\x64\xf0\x4c\x03\x4f\x1a" "\x72\x5d\xd7\xba\x19\x10\x6f\xc5\x58\x5a\xd6\xe6\x95\xa2\x2c\x18\xec\x0e" "\x5e\xfd\x62\x98\xa5\xa4\x09\x82\x7c\x7f\xc5\xc5\x6d\x0b\x51\xb2\x16\xe7" "\xc2\xed\x9f\x8b\x85\x10\xff\xe1\xd7\xc0\x52\xc5\x50\x6f\x50\x89\x3e\x6e" "\xec\xdc\xee\xac\x5a\x4c\x34\xab\x4a\x4a\x6b\x51\x63\xb3\x2c\x6b\x3a\x0d" "\xab\x4c\x25\x77\x3d\x31\x72\xb9\xd2\x8d\x9f\x55\xf7\x22\x23\x40\x0b\xd4" "\x03\x9b\x46\x31\xcf\x8e\xde\x28\x54\x0c\xcd\x91\x3e\xde\x48\x16\x68\x10" "\xf8\xcb\x8c\x7d\x07\xc1\xcc\x6c\xaf\x20\xcd\xd4\xee\x4e\x7a\xf7\x71\x1e" "\x68\x57\x3a\x21\x54\xff\x1b\x7c\x76\x1a\x18\x70\x0b\xb4\x3a\xb5\x82\x9a" "\x63\xb5\xa4\x22\xb6\xc7\x1e\x9b\x2e\x72\xb4\x8e\x01\x2e\xc6\x90\x4a\x65" "\xd4\x86\x0b\xdc\x64\x5a\x47\xd8\x41\x54\x79\xaa\xd4\xa2\x91\xb2\xfe\x26" "\xc0\xa8\x3e\xff\xa5\x20\xfa\xf2\xfb\x46\x11\x46\xbf\x76\xd6\x67\x38\xb4" "\xd4\x6d\xd2\xdb\x76\x41\xe7\x84\x99\xda\x85\xf4\x0c\xf9\x71\xf5\xbb\x6d" "\x71\x42\xc7\xdd\x5f\x8f\x42\x82\x7c\x67\x70\xc7\xa2\x05\xaf\xa2\x53\x62" "\xe3\xfa\xf0\x57\xd0\xa2\x9e\x91\xe6\xfc\xb7\xbe\xb0\x78\xbb\x42\xe2\x34" "\x30\x8a\xe7\x8e\xc6\x1e\xa5\x09\x7c\x3f\x0b\x8b\x86\x23\xa6\xaa\x90\x27" "\x1a\x47\x80\xf9\xd0\x14\xd1\xdc\xe2\xf2\xe7\x89\x6a\x61\x90\x4d\x37\xd4" "\xa4\x20\x16\x71\x6d\x26\x7a\x53\x0a\x71\xcd\x22\x7f\x08\xfc\xbd\x71\x30" "\x34\x64\xd7\xa6\x1a\x64\x79\x24\x6a\x94\x79\x5b\x64\xe1\x1f\x78\x00\x6c" "\x90\x68\xaf\xdf\x9c\xba\xbf\xc4\xb3\xf5\x75\xa2\xdf\x57\x53\x82\xf8\xdd" "\x05\x28\x44\x24\xff\x84\x31\xdf\x6c\xa3\x3c\xd7\x3b\xa7\x25\x05\x7c\x3e" "\x04\xa9\x72\x67\x5c\x8a\xa7\x03\xe7\xf4\x47\x97\x1e\x19\xf7\x6a\x26\x94" "\xc9\x0f\x90\xc9\xce\x1c\xff\x51\xdc\x5a\x36\x54\x57\x2d\x57\xa9\x8d\x8d" "\x3a\x88\x9f\x23\x3c\x7a\x0f\xd2\xca\x9f\x1d\x66\xb1\x85\xa7\xbc\x08\x72" "\xcf\xca\x37\x54\x10\x53\xb9\x1b\x3f\x0f\xaa\x63\x2e\x81\x3e\x22\xc3\xe2" "\xb0\x3c\x67\xdb\x42\xae\xab\x31\x6d\x2c\xcf\x4b\xc0\xec\x8b\x77\x0a\x6b" "\x3e\x33\x67\xd7\x35\xc7\x07\xf7\x1a\x25\x06\xa0\x8a\x7c\xc9\x65\x88\x06" "\x39\x49\x13\x2d\x36\x70\x7e\x60\x71\x59\x8b\x5c\xa9\x1f\x1b\x8e\x73\xaa" "\xd3\x3e\x2a\x99\x99\x17\xfb\xaf\x07\x7b\x8f\x82\x52\xa5\x8f\x6c\x80\x5e" "\xf9\x3d\xc1\x3d\xdf\xf2\x36\xae\x14\x67\x0d\xb5\x97\x38\x99\x1c\x84\x09" "\xb5\x76\x2b\x21\x0e\x5c\x61\x83\x2b\x52\x08\xb3\xed\xe6\xbf\x5e\x69\xb8" "\x1a\xbd\x50\xa3\x8a\xe1\x84\xab\x13\x19\xa5\xc5\x0e\x13\x0e\x05\x13\x75" "\x1a\x97\x41\x14\x42\x6d\xf1\xe7\x7a\x33\x78\x96\x8d\xd0\x48\xdd\x27\xcf" "\x91\x98\x10\x0f\x61\x09\x3a\x2b\xb6\x96\xf0\xfb\xac\x0d\xc2\x27\x96\xcd" "\xe6\xb9\x6a\x97\xd9\xcc\x6f\x00\xab\x0b\xc7\x03\x0f\xe8\xff\xb7\x12\x6c" "\x93\x67\xa2\x5d\x82\x1b\x0a\x95\x26\x5e\xf8\x58\xb1\x9a\xd5\x9e\x40\xcb" "\xa9\x86\xc0\x81\x28\x37\x2d\xca\x96\xf9\xb6\xfd\xdb\x0a\x84\xbd\xa4\x7c" "\x7b\x26\x76\xa1\xcf\xe3\x8e\x1e\x8c\x4f\xdb\x1a\xc9\x23\x31\x45\xda\xb1" "\xf6\xc2\x38\x85\xd2\x0a\x75\xa0\x2d\x3c\x3d\x04\xad\xc9\xb3\xd7\xfd\xe4" "\xed\x7b\x2c\xa1\x58\xd7\xa9\x08\x76\xdd\x5b\x4a\xe4\xae\xff\x74\xb2\x0e" "\xb0\xa1\x0a\x04\x48\x34\x6d\x81\x8d\xf3\x47\xd6\x3d\xc8\x16\x4c\x69\x93" "\x39\xd6\xd8\xee\x53\x34\xab\x23\x15\x81\xef\x8b\x43\x6f\xf7\xc5\x9e\x1e" "\x65\xa4\x83\xb0\x63\x2c\x9e\x42\x24\xb8\x16\xf4\xf3\xee\x12\x4e\x41\xd1" "\x56\x92\x45\x01\xb0\xdf\x28\x9b\x46\xc2\x3f\x52\xe1\x63\x08\x5e\x81\xf4" "\xc6\xc8\x37\x3b\x92\x3a\xe7\xb3\x94\xc7\x60\x12\x8d\xce\x5d\xd5\x38\x3e" "\x3c\x7f\xfb\xb0\xbd\x3d\x68\xcd\xd2\x37\xeb\x63\x06\xdc\x21\xc0\xc1\x35" "\xa0\x50\x3c\xb4\x98\xd6\x98\x97\xda\xf5\xa1\xce\x87\x17\x07\xd5\xf1\x6d" "\x95\x56\xf8\x96\xff\xb2\xdb\xe5\x73\xa1\x89\xce\x96\x5b\x90\x7d\x27\x18" "\x80\xc6\x60\x78\x95\xc7\xcd\x11\x82\xf6\x6d\x99\xcb\x21\x85\x93\x9b\x88" "\x46\x3b\xd6\x63\xf8\x76\x22\x5f\xf0\x15\xaa\x3c\x33\xe1\x4b\x90\xe1\xcf" "\xcb\xe4\x49\x75\x5a\x89\xe6\xed\x7d\x9b\xe3\x5e\x32\x9c\x79\xc8\x0c\x42" "\xc4\xbb\x1e\xb3\xf7\x8e\xa3\xa8\x3f\x2a\x87\x07\x2a\xea\x61\xb3\xb0\x9f" "\x22\x1d\xa1\xe5\xbb\xef\xfc\x34\xc4\xae\x96\x8d\xbc\x6b\x83\x79\x02\xce" "\x00\x99\x76\xa9\xb7\xae\x27\xb2\x61\xc8\x23\x26\x19\x42\x2c\xf1\xed\xb2" "\x5b\x2f\xc4\x5a\x1e\x68\x79\x93\x7f\xcf\x0d\xf3\x1b\x60\xf3\x56\x16\x5b" "\xff\x5a\x11\x97\x96\x52\x9c\x67\x4e\x64\xeb\xb4\x88\x11\xe5\xce\x91\xe4" "\x69\x68\xe4\x16\x31\x0e\x42\xaa\x62\x03\xcd\xa3\x0f\x29\x14\xe3\x93\x34" "\x3f\xae\xf0\x2f\x43\xa0\x16\x15\xb2\x46\xfe\x2d\x2b\xe5\xbf\x2b\x42\x23" "\xa2\xfb\xec\x95\xa1\xf0\x65\xdf\x60\x67\xbd\x09\xa4\xef\x8e\x48\x3f\x4b" "\x0d\x2c\x25\x33\xf5\x06\x86\x52\x27\x73\x2b\x9f\x33\x9e\x45\xf4\xa5\x92" "\x9d\x3f\x36\x57\xa5\x01\x50\x47\xba\x31\x33\x5b\x3e\x25\xad\x1a\x0a\x58" "\x31\x40\x96\x11\xa9\xc8\x10\x42\xf5\xb3\x25\x4d\xa0\x74\x0d\xb2\xb1\xa1" "\xed\xed\x1d\x9d\xd2\x87\x19\x52\x57\x6b\x51\xf4\x00\x82\x0c\x58\x98\x70" "\x70\x5d\xc7\x95\x2d\x6e\x2e\x2c\x00\x66\x2d\x06\xff\x22\x10\xf7\x43\x93" "\xf0\xfc\x0c\x71\x8d\xdf\x16\xe6\x5c\xe2\xbd\x5a\xce\xc5\xfa\x83\x85\xd5" "\x71\x66\x7b\xde\xfe\xef\x3a\x68\x9d\xf4\xf2\x90\x11\xfd\xf5\x74\xb0\xbb" "\x36\xfe\x29\x3f\xef\x97\x4a\x84\x5e\xec\x86\x67\xf9\x19\xa0\x3a\xfa\xc3" "\xbd\xeb\xca\xd9\xb4\x92\xe0\x68\xfc\xbf\x5b\x5b\x7c\x7d\x47\x26\x03\x5d" "\x45\x72\xcf\xab\xa5\x3d\xad\xc7\x96\x26\x69\x74\x35\xb6\x8d\xbc\xa0\xaf" "\x0d\xf8\x48\x82\x8d\xbd\xb2\xd0\x03\x4e\x31\xc0\x9a\xb7\x79\xdb\xe1\x1c" "\x8d\x43\x25\x95\x54\xc7\x95\x72\x5c\x20\x24\xf3\xe1\x67\xda\xfe\xb3\xb5" "\xb1\x20\x03\xf5\xb8\xbf\x31\xfa\x31\x74\xf0\x3d\xb5\xc3\x65\x47\xaf\xe7" "\xed\x08\xd4\x6d\xea\x2e\x34\xf0\x69\xc9\xec\xb0\x2b\xec\xa9\x58\x87\x17" "\x02\xec\x2b\x18\xd9\x47\xe0\x85\x9e\x65\x53\x12\x75\x6d\xab\xaf\xf4\xd7" "\x7d\xac\xcc\x9a\x20\x6d\x09\x32\xcf\x9d\x9f\x90\x06\x65\x75\x0b\x8d\x99" "\x29\x51\xb6\xb2\xc1\x25\xe3\xe9\x71\x47\x0d\x58\x50\x98\xff\xc1\xd5\x11" "\x46\xa9\x9a\x56\xf9\xad\x06\x9d\xb7\x23\x91\x37\x85\x7b\xdf\xe5\x76\xbe" "\x91\xd9\x3c\x34\xaf\x5c\xef\xb3\xeb\x22\xb0\xd9\x5f\x17\xbc\x37\xbe\x9e" "\x93\x80\x23\x04\x25\x27\xa7\xba\x3c\x8c\x02\x39\xa5\x6a\x85\xfa\xd2\xcd" "\x34\xab\x61\xc2\x34\xf7\xd5\x94\xbc\x38\xa6\x1e\x17\x5d\xab\x0b\x79\x92" "\x5a\x1e\x6c\x4c\x5b\x1c\xad\x85\x07\x42\x3e\x8e\x62\x88\xe6\x09\x94\xf5" "\x26\x8c\xa0\xa9\x9f\xb2\x0d\x85\xf2\xda\x02\x86\x04\x07\x2e\x5a\x92\x35" "\x02\xc7\xd4\x3f\xe1\x37\x72\x7f\xb3\x66\xfc\x98\x47\xa1\x96\x52\xe0\x3f" "\x9c\x25\xbc\x36\x88\x7a\xe7\xd8\x1f\xf8\x58\x78\xf6\x34\x58\x7f\x2b\xe8" "\x46\x86\x9c\x8a\x93\x2b\xe0\xc0\x59\x2c\x99\x0f\x90\xf5\x7b\xb9\x6b\x71" "\x6a\x85\xc4\xcc\x6d\xad\x9c\x7e\xb2\xf7\x25\x0d\xc0\x47\x11\x83\x4c\x96" "\xed\xb0\xe9\x76\xcf\x9a\x83\x74\x2b\xb4\x73\x34\x43\xf0\xd7\x2c\x6d\x1d" "\xf6\xd6\x99\x4f\xd1\xf7\x93\x04\x70\x61\xe2\x56\x7c\x48\xdf\xef\x46\xc8" "\xc1\x00\xaa\x82\xbc\x39\x0b\xf4\xa7\xd4\xdb\xb5\xc1\x53\x6c\x87\x05\x41" "\x01\x90\x3e\xcb\x11\xb8\x4e\xa8\x7f\xef\x00\x60\x82\x08\xf9\xeb\x7b\xa7" "\x19\xcf\x44\x8c\x55\x83\x55\xd0\x4f\xf7\xcc\x05\x7b\x4d\x07\x40\xc8\x42" "\x61\xec\x27\xf8\xef\x98\x83\x25\x93\xc5\xc8\xf9\x46\x33\x33\x71\x11" "\x80", 3564); syscall(__NR_lsetxattr, /*path=*/0x20000180ul, /*name=*/0x200001c0ul, /*val=*/0x200013c0ul, /*size=*/0xe01ul, /*flags=*/0ul); memcpy((void*)0x20000000, "./file0\000", 8); memcpy((void*)0x20000080, "trusted.overlay.upper\000", 22); syscall(__NR_lsetxattr, /*path=*/0x20000000ul, /*name=*/0x20000080ul, /*val=*/0ul, /*size=*/0ul, /*flags=*/2ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); loop(); return 0; }