// https://syzkaller.appspot.com/bug?id=ebe2bbed618638b7d309da88058dce0b7bf80214 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) 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, 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; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; retry: while (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; memcpy((void*)0x20000040, "ext4\000", 5); memcpy((void*)0x20000500, "./file1\000", 8); memcpy( (void*)0x20003e80, "\x00\xbf\x60\x42\xaa\xa5\xc8\x9f\x1a\xa1\xfc\xbc\xbb\xaa\x9c\xac\x31\xb2" "\x75\x03\xdf\x50\x07\x14\xd7\x94\x63\x48\x62\xc1\xe6\x0c\x6e\x22\xf9\x25" "\x56\x71\x3c\x0f\xe3\xf4\xe1\x3f\xa3\x61\x84\xa1\x61\x44\x77\x56\xdd\x0c" "\xf8\xdc\x7d\x5c\xea\x09\x88\xba\xf0\x3e\xfe\xbb\x63\xbd\x7a\x59\x83\xf0" "\x81\xf8\x11\xf1\x97\xb7\x8a\x5f\x5e\x95\x83\x8c\xc9\x0e\x64\x46\xd8\x18" "\x9c\x91\x21\xb3\xcc\xf5\xb2\x4d\x46\x84\x24\x2b\x4f\x85\xf6\xd4\x32\x31" "\xb7\xb9\x24\x0f\x74\xbd\xac\xf3\x4c\xb8\x60\x4b\x21\x79\x65\xc0\x2b\x7b" "\xe4\x19\x32\x6a\x31\x68\xc7\xdf\x4e\xb8\xdc\x2e\x7c\xc0\xd1\xc7\x08\xa1" "\x50\x28\x78\x63\x3e\xca\x49\xf3\x58\xe5\xb8\x55\x51\xff\x6e\x49\x77\x65" "\x08\xbf\x45\xb3\xc7\x1a\xf4\x15\x48\x93\x65\x64\xab\xd9\x9b\xb3\x4d\x1c" "\x23\x03\xb5\x1c\x29\xd0\x2f\xae\x2c\x7f\x03\x7b\xe4\xb4\xbc\x63\xea\xa6" "\x8a\x1e\x08\xe3\xfb\xc0\x77\x44\xa5\xdd\x13\x55\x53\xdb\x00\x6f\x1e\x0a" "\x90\x70\xbe\x08\x5a\x71\x8d\x79\x06\xa6\x8d\xc2\x6e\xc1\xf3\x19", 232); memcpy( (void*)0x20000540, "\x78\x9c\xec\xdd\xdf\x6b\x5b\xd7\x1d\x00\xf0\xef\xbd\xb6\xb2\xfc\x70\x66" "\x67\xdb\x43\x16\x58\x16\x96\x0c\x27\x6c\x91\xec\x78\x49\xcc\x1e\xb2\x0c" "\xc6\xf2\x14\xd8\x96\xbd\x67\x9e\x2d\x1b\x63\xd9\x32\x96\x9c\xc4\x26\x0c" "\x87\xfd\x01\x83\x31\xd6\x42\x9f\xfa\xd4\x97\x42\xff\x80\x42\xc9\x9f\x50" "\x0a\x81\xf6\xbd\xb4\xa5\xa5\xb4\x49\xfb\xd0\x87\xb6\x2a\x92\xae\xd2\xc4" "\x95\x62\x87\xc8\xbe\x60\x7f\x3e\x70\x7c\xcf\xb9\x57\xd2\xf7\x7b\x6c\x74" "\x75\xcf\xbd\xc7\xba\x01\xec\x5b\xa7\x22\xe2\x6a\x44\x0c\x44\xc4\xb9\x88" "\x18\xce\xd6\xa7\x59\xb9\xd6\x6c\x6c\xb4\x1f\xf7\xe8\xe1\xdd\xe9\x66\x49" "\xa2\xd1\xb8\xf1\x59\x12\x49\xb6\xae\xf3\x5a\x49\xb6\x3c\xd2\x7e\x4a\x1c" "\x8c\x88\xbf\x5d\x8b\xf8\x67\xf2\xc3\xb8\xb5\xb5\xf5\x85\xa9\x4a\xa5\xbc" "\x92\xb5\x4b\xf5\xc5\xe5\x52\x6d\x6d\xfd\xfc\xfc\xe2\xd4\x5c\x79\xae\xbc" "\x34\x31\x31\x7e\x69\xf2\xf2\xe4\xc5\xc9\xb1\xbe\xf4\x73\x24\x22\xae\xfc" "\xe9\xa3\xff\xff\xe7\xb5\x3f\x5f\x79\xeb\xb7\xb7\xdf\xbf\xf9\xc9\xd9\x7f" "\x35\xd3\x1a\xca\xb6\x3f\xd9\x8f\x7e\x6a\x77\xbd\xd0\xfa\x5d\x74\x0c\x46" "\xc4\xca\x4e\x04\xcb\xc1\x40\xb6\x2c\xe4\x9c\x07\x00\x00\xdb\xd3\x3c\xc6" "\xff\x49\x44\xfc\xaa\x75\xfc\x3f\x1c\x03\xad\xa3\x53\x00\x00\x00\x60\x2f" "\x69\xfc\x61\x28\xbe\x4e\x22\x1a\x00\x00\x00\xc0\x9e\x95\xb6\xe6\xc0\x26" "\x69\x31\x9b\x0b\x30\x14\x69\x5a\x2c\xb6\xe7\xf0\xfe\x2c\x0e\xa7\x95\x6a" "\xad\xfe\x9b\xd9\xea\xea\xd2\x4c\x7b\xae\xec\x48\x14\xd2\xd9\xf9\x4a\x79" "\x2c\x9b\x2b\x3c\x12\x85\xa4\xd9\x1e\xcf\xe6\xd8\x76\xda\x17\x36\xb5\x27" "\x22\xe2\x58\x44\xfc\x6f\xf8\x50\xab\x5d\x9c\xae\x56\x66\xf2\x3e\xf9\x01" "\x00\x00\x00\xfb\xc4\x91\x4d\xe3\xff\x2f\x87\xdb\xe3\x7f\x00\x00\x00\x60" "\x8f\x19\xc9\x3b\x01\x00\x00\x00\x60\xc7\x19\xff\x03\x00\x00\xc0\xde\x67" "\xfc\x0f\x00\x00\x00\x7b\xda\x5f\xae\x5f\x6f\x96\x46\xe7\xfe\xd7\x33\xb7" "\xd6\x56\x17\xaa\xb7\xce\xcf\x94\x6b\x0b\xc5\xc5\xd5\xe9\xe2\x74\x75\x65" "\xb9\x38\x57\xad\xce\xb5\xbe\xb3\x6f\x71\xab\xd7\xab\x54\xab\xcb\xbf\x8b" "\xa5\xd5\x3b\xa5\x7a\xb9\x56\x2f\xd5\xd6\xd6\x6f\x2e\x56\x57\x97\xea\x37" "\xe7\x9f\xba\x05\x36\x00\x00\x00\xb0\x8b\x8e\xfd\xf2\xfe\x7b\x49\x44\x6c" "\xfc\xfe\x50\xab\x34\x1d\xc8\x3b\x29\x60\x57\x24\xcf\xf3\xe0\x0f\x77\x2e" "\x0f\x60\xf7\x0d\xe4\x9d\x00\x90\x9b\xc1\xbc\x13\x00\x72\x53\xc8\x3b\x01" "\x20\x77\x5b\x9d\x07\xe8\x39\x79\xe7\xed\xfe\xe7\x02\x00\x00\xec\x8c\xd1" "\x9f\xf7\xbe\xfe\xef\xdc\x00\xec\x6d\x69\xde\x09\x00\x00\xbb\xce\xf5\x7f" "\xd8\xbf\x0a\x66\x00\xc2\xbe\xf7\xe3\x2d\xb6\xbf\xf8\xf5\xff\x46\xe3\xb9" "\x12\x02\x00\x00\xfa\x6e\xa8\x55\x92\xb4\x98\x5d\x0b\x1c\x8a\x34\x2d\x16" "\x23\x8e\xb6\x6e\x0b\x50\x48\x66\xe7\x2b\xe5\xb1\x6c\x7c\xf0\xee\x70\xe1" "\x47\xcd\xf6\x78\xeb\x99\xc9\xf3\xfd\xef\x30\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\x63\x8d\x46\x12\x0d" "\x00\x00\x00\x60\x4f\x8b\x48\x3f\x4e\x5a\xdf\xe6\x1f\x31\x3a\x7c\x66\x68" "\xf3\xf9\x81\x03\xc9\x57\xc3\xad\x65\x44\xdc\x7e\xe5\xc6\x4b\x77\xa6\xea" "\xf5\x95\xf1\xe6\xfa\xcf\x1f\xaf\xaf\xbf\x9c\xad\xbf\x90\xc7\x19\x0c\x00" "\x00\x00\x60\xb3\xce\x38\xbd\x33\x8e\x07\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x7e\x7a\xf4\xf0\xee\x74\xa7" "\xec\x66\xdc\x4f\xff\x18\x11\x23\xdd\xe2\x0f\xc6\xc1\xd6\xf2\x60\x14\x22" "\xe2\xf0\x17\x49\x0c\x3e\xf1\xbc\x24\x22\x06\xfa\x10\x7f\xe3\x5e\x44\x1c" "\xef\x16\x3f\x69\xa6\x15\x23\x59\x16\xdd\xe2\x1f\xca\x31\x7e\x1a\x11\x47" "\xfa\x10\x1f\xf6\xb3\xfb\xcd\xfd\xcf\xd5\x6e\xef\xbf\x34\x4e\xb5\x96\xdd" "\xdf\x7f\x83\x59\x79\x51\xbd\xf7\x7f\xe9\xe3\xfd\xdf\x40\x8f\xfd\xcf\xd1" "\x6d\xc6\x38\xf1\xe0\x8d\x52\xcf\xf8\xf7\x22\x4e\x0c\x76\xdf\xff\x74\xe2" "\x27\x3d\xe2\x9f\xde\x66\xfc\x7f\xfc\x7d\x7d\xbd\xd7\xb6\xc6\xab\x11\xa3" "\x5d\x3f\x7f\x92\xa7\x62\x95\xea\x8b\xcb\xa5\xda\xda\xfa\xf9\xf9\xc5\xa9" "\xb9\xf2\x5c\x79\x69\x62\x62\xfc\xd2\xe4\xe5\xc9\x8b\x93\x63\xa5\xd9\xf9" "\x4a\x39\xfb\xd9\x35\xc6\x7f\x7f\xf1\xe6\xb7\xcf\xea\xff\xe1\x1e\xf1\x47" "\xb6\xe8\xff\x99\x6d\xf6\xff\x9b\x07\x77\x1e\xfe\xb4\x5d\x2d\x74\x8b\x7f" "\xf6\x74\xf7\xcf\xdf\xe3\x3d\xe2\xa7\xd9\x67\xdf\xaf\xb3\x7a\x73\xfb\x68" "\xa7\xbe\xd1\xae\x3f\xe9\xe4\xeb\xef\x9c\x7c\x56\xff\x67\x7a\xf4\x7f\xab" "\xbf\xff\xd9\x6d\xf6\xff\xdc\x5f\xff\xfd\xc1\x36\x1f\x0a\x00\xec\x82\xda" "\xda\xfa\xc2\x54\xa5\x52\x5e\x51\x51\x51\x51\x79\x5c\xc9\x7b\xcf\x04\x00" "\x00\xf4\xdb\xf7\x07\xfd\x79\x67\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xfb\xd7\x6e\x7c\x9d\xd8\xe6\x98\x1b\xf9\x74\x15" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xe0\x99\xbe\x0b\x00\x00\xff\xff\xf7\xa0\xd4\xed", 1204); syz_mount_image(/*fs=*/0x20000040, /*dir=*/0x20000500, /*flags=*/0x4500, /*opts=*/0x20003e80, /*chdir=*/0x12, /*size=*/0x4b4, /*img=*/0x20000540); memcpy((void*)0x20000180, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x20000180ul, /*flags=*/0x14d07eul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x600000ul, /*prot=*/0x27ffffful, /*flags=*/0x4002011ul, /*fd=*/r[0], /*offset=*/0ul); syscall(__NR_fallocate, /*fd=*/r[0], /*mode=*/0ul, /*off=*/0x8947ul, /*len=*/7ul); memcpy((void*)0x20000380, "/dev/loop", 9); *(uint8_t*)0x20000389 = 0x30; *(uint8_t*)0x2000038a = 0; memcpy((void*)0x20000140, "./bus\000", 6); syscall(__NR_mount, /*src=*/0x20000380ul, /*dst=*/0x20000140ul, /*type=*/0ul, /*flags=*/0x1000ul, /*data=*/0ul); *(uint64_t*)0x200000c0 = 0; *(uint32_t*)0x200000c8 = 0; *(uint64_t*)0x200000d0 = 0x20000080; *(uint64_t*)0x20000080 = 0x20002a40; *(uint32_t*)0x20002a40 = 0x1014; *(uint16_t*)0x20002a44 = 0x28; *(uint16_t*)0x20002a46 = 0x200; *(uint32_t*)0x20002a48 = 0x70bd28; *(uint32_t*)0x20002a4c = 0x25dfdbff; memcpy( (void*)0x20002a50, "\x58\x14\x75\x01\x0b\x1b\xb0\x3b\x89\xfc\x2d\xf8\x33\xfb\x4f\x42\x00\x93" "\x5c\x82\x18\xff\xb8\x8b\xa2\xee\xd1\xe7\xc6\x4f\xa9\xfc\x6c\xe8\x64\x48" "\xa8\x3f\x0c\xea\xfe\x0a\xf2\x9a\x0c\x17\x9d\xc1\x21\xa0\x11\x9b\x8d\x47" "\xea\xbc\x50\x87\xb8\x07\xe8\xe5\x52\xb4\x88\x64\xa4\x0e\xe2\x0f\xdb\x2f" "\xa9\xca\x0c\x6b\xac\x87\x1c\x55\x77\x47\xa6\xa8\xd7\xb6\x82\x3d\x32\xc0" "\xa9\x44\x89\x94\xf7\xaa\x21\x91\x94\xcd\xbb\xaa\x96\xc3\x5c\xb5\xbb\x5a" "\xd4\x2e\x95\x8d\xd4\x4b\x42\xac\x28\xc6\x6b\x13\x81\xb6\x95\x5b\x07\x80" "\x7b\x6c\x58\x0a\x1d\xd6\x58\xcb\xb6\x7f\x05\xb1\xd0\xbc\x02\x7c\xd1\xa5" "\x01\xaa\x20\x75\xc7\x3d\x28\xe3\x0d\x5f\x3f\x61\xc8\x67\xb8\xbe\x03\x15" "\xb8\xf0\x59\x49\xac\x0a\x86\x9d\xaa\xd0\xa5\x06\x20\x27\x19\x80\xf7\x78" "\x1f\xe8\xb3\xcd\x0f\x9a\xc8\x61\x92\xc5\x5e\x37\x6a\xfd\xa4\x66\x72\x62" "\x3c\xda\xdd\x17\xa9\xdc\x45\xd4\x4a\x41\x80\xcb\x6f\xe1\x0f\xec\x8f\x42" "\xf5\x4f\x5c\x5e\xde\x94\x39\x81\xf8\x35\x77\xd9\xa3\xcf\xb4\x77\x28\x6a" "\x8b\xd3\xbf\xa4\x70\x65\x54\x5c\x31\xac\xe5\x68\xa6\x4b\x1d\x95\xe0\xbc" "\x5a\x80\xda\x6a\xa5\x36\x8c\x3e\xe9\x15\x1b\xfd\x3c\xb8\x33\xf5\xe4\x97" "\xbc\x6a\x5c\x93\x4a\x8f\x0f\x09\x9f\x7e\xdb\xe9\x62\x5c\x80\x58\x0c\x20" "\xbd\xd7\xfb\x61\x4a\xd9\x35\x25\x76\xfb\x9d\x09\x9e\xac\x5e\x24\xc6\x97" "\xb7\x88\x28\xcb\x7a\x89\x5b\x18\xc0\x57\xaf\x4b\xba\x85\x9d\xfa\x33\x6c" "\x04\x41\xca\x89\x85\x3f\xa3\xb2\xad\xc9\xa7\x6d\xc6\x45\xd9\x36\x83\x6b" "\x38\xc8\x0a\x5a\x2c\x78\xa1\xd4\x4a\x5b\x18\x1a\xf2\x05\x8e\x86\xc4\x54" "\xcc\xeb\xd2\xd9\xe8\x9b\x7d\x98\x37\xe2\x53\x7f\x2c\xd5\x2f\x9b\xff\x15" "\xff\x0e\x39\x12\x24\x00\xb9\x97\x84\xae\xc4\x6f\x7a\x1b\x09\x65\x6d\xb7" "\xa0\x48\xb1\x7f\xec\x7a\x4f\xee\xc9\x16\x43\xdd\x8e\xb3\x72\xbf\x72\x89" "\x81\x1b\x78\x23\x64\x7a\x97\x86\x09\xed\x2e\x57\x61\x58\x16\x65\xca\x0b" "\xed\x50\xba\xe4\x79\xe9\xd0\x79\x87\x90\x95\xce\x66\xfd\xc3\x37\xbd\x57" "\x5f\x88\x29\x3f\x72\x73\x16\xd9\x8c\xbf\xa0\xce\xe7\x4c\xd6\x27\xe7\x22" "\x0a\x5f\xdd\x8f\x7c\xee\x99\xe1\x8f\x1a\x5b\x9b\x3e\xc2\xe5\xea\x36\xf9" "\xed\xb8\x8d\x50\x81\xe3\x48\x08\x37\x23\x14\xc0\xb4\x21\xa3\x5c\x6a\x1e" "\xa8\x90\xd2\x44\x07\xb2\xdc\x69\x46\x7b\xbb\xb2\x5d\x33\xef\x35\xec\xd1" "\x81\x1c\x09\xff\x90\x9a\xb8\x67\xc2\xcf\x75\x2e\x32\xd0\x23\xaf\xfe\xf2" "\x31\xb0\xf4\xb7\x52\xc2\xf7\x2e\x01\x3d\xbd\x7d\x1b\x5c\xe4\x1c\xf0\xff" "\x2e\x79\xa2\xaf\xbd\xbf\x4d\x90\xf6\x95\xaa\xfe\x36\xe2\x42\xa1\x11\x5e" "\xa0\x9a\x03\x2a\x95\xfd\xb6\x20\x1e\xd6\xdf\x90\xb1\x59\x3e\x70\xa3\x64" "\xb2\xc1\x3b\x7b\xa8\xb2\x60\x76\xf9\xe6\xdb\x64\x8e\x00\x82\x3b\x47\xe4" "\x51\x34\xa6\xc1\xc4\x38\x53\x5f\x73\xf0\x17\x4b\xef\x74\x9d\x0a\x05\x47" "\x11\x66\x43\x9d\xd2\x99\x28\x92\x98\xea\x81\x9c\x2b\xfb\xbf\x39\xbf\x2e" "\xa5\xf2\xb0\x0c\x26\xd7\xd4\x45\xa0\xcb\x32\x11\xf5\xaf\x2b\xca\xa3\xc2" "\x6d\x55\x9c\xf3\xfc\x39\xe3\x91\x89\x31\xfd\xa5\x45\xec\xa7\x9a\x1f\x1e" "\x47\x8e\xdf\xf8\x63\x1e\xcc\x3b\x31\x1a\xc3\x3b\xae\xd8\x9c\xea\xec\x0d" "\x10\xec\x9d\x81\x1e\x75\x8f\x0f\xad\x2d\x2f\x42\xea\x69\xfd\xfc\x8a\x98" "\x82\x00\x04\x87\x4e\x95\x52\xf4\x29\xab\x34\x93\x3f\x1c\x3b\x3f\x56\xf3" "\xfe\x3f\xee\xc0\xde\xe3\x40\x4c\xaa\x9c\x5d\x60\xbf\x5c\x46\x5e\x38\xad" "\x28\x5f\xdc\xfb\x17\xcd\xb1\x49\x4b\x01\xc7\x3b\x38\xcd\xb1\x0d\x6a\x4f" "\x66\xf1\xbb\x52\x60\x78\x4a\x27\xda\xf6\xea\x3d\xf3\xda\x9a\x11\x00\xfe" "\xcf\xb4\x33\x13\xe2\x68\x37\xfa\x97\x5c\xcd\x34\x32\xb2\x09\x0f\xe7\xcd" "\x8c\x43\xc6\x7b\xf2\x75\x83\xc2\xa3\x07\x1b\x91\x7f\xb3\xcc\x78\xba\xc2" "\xb1\x29\x81\x27\xae\x1a\x88\x61\x8e\x01\x08\x1e\xff\x35\xd1\xf5\x87\xb3" "\x06\x65\xba\xd1\x46\xe8\x92\x3b\x48\xd4\xb6\xfe\x92\x3a\x11\x8c\xc3\xe3" "\xa6\x30\xa3\x9c\xd6\x57\x79\xe5\x6a\x94\x6c\xde\x7e\x97\xce\xeb\x93\xcd" "\xcb\x57\xee\xf1\xb2\x81\xaa\x26\x95\xd4\xb7\x80\x10\xd4\x22\xea\xd5\xe7" "\xe4\x3b\x6c\x88\x62\xe0\xa7\x70\x46\x87\xb6\x5f\x81\x39\x24\x53\xc6\x3a" "\xc2\x1b\x46\x66\x4a\x5f\x57\xe0\x5c\x72\x40\xd4\x37\x36\x53\xbf\x39\xb1" "\x0a\x46\x75\x1b\x1e\x44\x61\xc3\x7f\xbd\xc7\x0c\x9d\x35\x6d\x50\x47\xd4" "\x13\xc0\xf3\x91\xea\xf7\x13\x55\x24\x5b\xc2\xf5\x6e\x8f\x26\x80\xb1\x85" "\x86\x69\xa6\x47\xce\xf1\x00\x4a\x4a\xbf\xaa\xad\x42\x2f\x51\x24\x7c\x21" "\xfd\x44\x30\x07\xae\xc9\xf7\xc9\xb1\x5c\x5a\x96\x62\xd5\xdb\xf0\x9b\x28" "\xba\xa6\xe1\xc7\x55\x31\x9e\x6d\x97\xb3\x0c\x1d\x25\xdf\x7c\x38\x7f\xaa" "\xd9\xcf\x33\x31\x4d\x0a\x53\x79\x25\xc7\xaf\x16\x0d\xb4\x8c\xf3\xb1\x2a" "\xf6\x3b\xc8\xed\x81\x50\x21\xc7\x76\x0e\x5f\x98\x4e\x49\xc5\x1d\x19\x0d" "\x84\x16\xd8\x5b\x74\xd3\xe2\xc9\xb4\x0d\x22\x7e\x7f\xd8\x94\x0f\x41\x86" "\xfd\x81\xae\x1b\x5e\x21\x17\x31\x37\x68\xad\xda\x00\x08\x49\x0d\x03\x4d" "\x5c\x03\xcb\xe9\x4d\x95\xe8\x62\x3b\x2b\xbd\xf9\x1f\xb0\xaf\xd2\x7a\xd9" "\xa8\x63\x1d\x4c\xe1\x76\x83\xa3\x1c\x81\x70\x34\xa5\x37\x1b\x9c\x39\xa1" "\x26\x7c\x4a\x68\xff\x19\xcb\x09\x27\x9c\x94\x68\x86\x9d\x8f\x73\x4e\x21" "\xae\x8b\xfb\xcc\x94\xab\x6e\xce\xdd\x8f\x43\x85\xd3\xe6\xf9\xb3\x84\xe0" "\xa9\x22\x78\xdb\xd0\x16\x86\x98\xc2\xea\x12\x57\xe5\x56\xf9\x85\x63\xba" "\x51\x7d\x5b\xe0\xf1\x26\xf7\xfb\xb9\x95\x50\x00\xd6\xf3\x95\x73\xb2\xfb" "\x72\x99\x27\x03\x2d\x50\x7f\xad\x45\xe3\xfe\xc7\xa2\x18\x41\x43\xf7\x31" "\x89\x9a\x33\x87\xb0\x0a\xdd\xda\x6b\xb0\x60\x29\xa2\xd3\x5c\xb1\x2d\xf8" "\x1a\xda\x17\x1f\x54\x27\xe4\xf9\xed\xc0\x83\x0a\xed\x50\xa0\xf3\x3b\x78" "\xfb\x50\x67\x9e\x10\x62\x18\xa3\x78\x22\x93\x55\x1e\xc7\xeb\xff\xc8\xd8" "\x2a\x7f\xb9\x43\xd7\xdf\x6d\x9b\x1e\x46\x07\xb6\xd2\x53\xac\x04\xd7\xdf" "\x57\x4b\xe6\x0a\xe9\xf7\x6d\xfb\xe2\xef\x64\x12\xd5\xbf\x02\xab\x35\xaa" "\x68\x41\x39\xa4\x68\xf8\x30\x6c\xba\x1f\xc4\x00\xa7\xe1\x99\x52\xd1\x14" "\xb3\x6c\x01\xad\xc2\x0d\xef\xb3\xef\x1d\x09\x0b\x00\x21\xbe\x6d\x99\x72" "\xf3\x82\xd2\xa8\x1d\x0c\x7c\x1e\x7e\x5d\x90\x70\x16\xd5\x39\xdd\x03\x61" "\xdb\xb5\x97\xa8\x04\x92\x25\x86\x63\x99\x70\xa6\x7a\x23\xeb\xda\x03\x10" "\x4b\xc5\x01\x83\x5a\x07\x8a\xd5\x50\x1e\xb4\x1c\x80\x40\xe9\xd9\x4b\xfd" "\x04\x70\x9b\xbd\xd9\x18\x9d\x32\xcb\xd4\x19\x0f\x6a\x21\xac\x4d\x19\x82" "\xe8\xd1\xe4\x52\x93\x17\x5d\x14\x5f\x3b\x47\x97\x52\xf4\xae\x55\x0e\xa8" "\xcd\x0c\x41\x38\x24\x80\xf9\xd0\x4c\x58\x8e\x4a\x9d\x19\xbc\xa0\x28\x40" "\x6e\xf5\xf6\x99\x51\x11\xdf\x84\x60\x08\x88\x7d\x79\xf7\x30\x7a\x8f\x6c" "\xcb\x2b\xe1\xdc\x2d\x93\xe2\xac\xe7\x4e\x99\xd9\xb1\xca\x1e\x90\x09\xf4" "\xc5\xa2\x58\x1e\x6e\xeb\x07\xc1\xdf\xff\xc4\x41\x98\x44\x65\x0e\x5b\xbe" "\x91\xd4\x69\x60\x61\xce\x7e\xd5\x61\x09\x4d\xb4\xfa\x46\x25\x34\xb6\xea" "\x53\x93\x59\x58\xc2\xa8\x72\x48\x99\x6c\x63\xb2\xd3\x9d\x9b\x93\xe2\x0a" "\x44\x29\x9b\xaa\x3c\x81\x50\x74\x15\xda\xec\x65\x1a\x1b\x77\xc5\xe4\x97" "\xfc\xea\x34\x7b\xa6\xa9\x00\x58\x86\x93\x7c\x94\x75\xeb\x7c\x7b\x07\xd1" "\x9c\x36\xf5\xb3\x00\xe4\x51\xab\x27\x81\x91\x36\x41\xc1\x45\xd7\xe9\x47" "\x1c\xc8\xdd\x65\xc8\x5c\x44\x25\xe2\xcb\xa4\x8b\x45\xc3\xb1\xe2\xe9\x14" "\x9f\x37\xdf\x8a\x35\xde\xc6\x43\xeb\xf8\x56\xfd\x08\x69\x40\x49\x07\x87" "\xe8\x57\xda\x01\x7d\x46\xbe\x11\x46\xb1\x79\x15\xc4\x67\xe1\x43\x11\x6c" "\x2b\x24\xd8\xc1\xd4\x60\x1b\xa8\x51\x50\xf2\x6a\x2b\x39\x33\x58\x9c\x5d" "\xac\x2d\xc7\xb9\x7e\xbe\x3c\x58\xf1\x31\x42\x0c\x5b\x16\x90\x18\x3c\x0b" "\x6e\x30\xb3\x20\x3a\x92\x2c\x94\x1f\xa7\x22\x62\x88\xa3\x9a\x1d\xde\xfc" "\xeb\xf6\x0b\x09\x38\xfe\x32\x43\x31\xa9\xa3\xc7\x32\x37\xae\xbb\x65\x9e" "\x16\xab\xe4\x8a\x77\x67\xce\xf7\x48\xfa\x20\x9a\xa9\xaf\xfa\xc3\x60\x30" "\x94\x5b\x75\xf3\xc8\x75\x45\xb4\x31\x71\x20\x36\x70\x47\x65\xad\x97\xb3" "\x3c\x78\xc2\xa2\x32\x9c\xa3\x42\xd2\x00\x74\x63\xdf\x6d\x63\x10\x1f\x36" "\x25\xe2\x57\x54\xbf\x7c\xb7\x47\x25\x78\x5b\xc4\xc3\x9e\x31\x55\x27\x16" "\x5a\xad\xe6\x0d\x28\xaa\x59\x99\x9b\x07\xbb\x4b\x67\xd5\x4b\xfb\xa1\xc9" "\xe4\x62\xb7\x89\x0d\x9a\x71\xdf\x9a\x91\xb8\x0d\x0c\x75\x00\x4e\xa2\x28" "\xd0\xc2\x71\x67\x9b\x94\xa5\x49\x7c\x5c\x0a\xb4\x8c\x97\x6f\x8c\x0a\xd0" "\xa3\xeb\xcb\x89\xf6\x79\xbd\xee\x34\xf1\x9e\x63\xf9\x8c\x86\xa8\x5f\x55" "\x39\x01\xeb\x94\xeb\x71\xba\xe6\x24\x2f\x24\xaa\xa3\xce\x0a\xff\x07\x89" "\xc2\x56\xaf\xbd\x7d\xe7\x41\x07\x32\x73\x48\xc2\xd7\xad\x49\xef\x74\x29" "\x41\x74\x82\xca\x46\x3f\x13\x52\x05\xc1\xbc\x7c\x5c\xe2\x56\xfe\x0b\x4a" "\x3c\x41\xd9\xe5\x43\x9c\xc2\x7b\x42\xb4\xfb\x23\x64\xa6\xd6\x2d\xe6\xf5" "\x65\x8b\x11\x9c\x4b\xd0\xc4\x7e\xdf\xfa\xc6\x8a\xa4\x35\x8e\x2d\xbf\xae" "\x24\xb8\x29\xed\x8e\x43\x91\x50\x68\x66\x72\x23\x08\xfd\x18\x1f\x4b\x9f" "\xb0\x03\x82\x4e\x90\x7b\xb0\xb3\x22\x1d\x1e\x34\xb9\xef\x8c\x33\xba\x08" "\xc3\xf0\x73\x66\xc9\x99\xa6\xf7\xa7\xb8\xd0\x93\xf8\x24\x0a\x45\x6d\xd3" "\xdc\xfe\x62\x5f\x30\x8e\x02\x32\x96\xf2\x01\x4a\xf3\x08\x08\x54\x99\xf9" "\xc4\xf5\xc7\x9b\xb3\x09\x3a\x84\x90\x52\x97\xe0\xa8\x42\x70\x20\xa6\x88" "\x91\x19\x07\x71\x3b\xe6\x9e\x5d\x95\x74\xe7\x4d\xb8\xc9\xba\xba\x37\x82" "\x67\x06\x9b\xbb\xb6\x6f\x8a\xa1\xa1\x89\x14\x2b\x73\x87\x76\x49\xb2\x79" "\x8f\x83\x75\xcb\xb1\x50\x63\xbe\x64\x90\x6f\xa4\x85\x7d\xaf\x64\x94\x6f" "\x3a\xa9\xe9\xb0\xc1\x36\xa9\x33\xd9\x0a\x58\xd8\x1b\x9c\x89\xf6\xf7\xd1" "\x5a\x89\xa6\x04\xf4\x18\x3d\xf1\xbf\xe3\x22\xea\xdc\xf2\xf6\x53\xe5\x49" "\x50\xd2\x9d\xd3\x6d\x4f\x47\xbf\x0e\x56\x7a\x07\x39\x69\xd4\x3f\x79\x47" "\x81\x57\xfe\xd7\x30\x9c\x23\x98\x02\xb8\xcd\x17\x0b\x44\xad\x0c\x28\xf0" "\x98\x74\x82\xc7\x08\xff\x5f\xbc\x2a\x90\xce\x0d\x92\x59\xb2\x51\x95\x56" "\xe2\x5d\xf5\x64\xc3\x6a\x1c\x84\x5e\x07\x52\x2b\xfc\x17\xeb\x42\x0b\x9f" "\x89\x2a\x1b\x48\x56\xb5\x28\x91\x94\x76\x61\xc8\x0e\x66\xc2\x84\xbf\xc4" "\x0c\x86\xf1\x0f\xb1\x7f\xea\x96\xad\xd1\x9a\x6f\xee\x5a\x7b\xe3\xfe\x95" "\x66\x0a\xb1\xf7\xb4\xfb\x63\x54\xe2\x92\xf7\x33\x8a\x49\x59\x91\xb0\x60" "\x94\xd6\xb1\x14\x40\x65\xd1\xf4\xd2\xda\x50\x43\x16\x7d\xc1\xc0\xdd\x88" "\x03\xa9\x2c\xcd\x30\xa5\x6c\x8b\xa5\x93\x4a\xd3\xfd\x70\x7a\xa6\x29\x43" "\xe6\xc6\x8d\xe4\x9c\xe9\xfe\x3c\xad\xd5\xa2\x6f\x4e\x82\xd7\xb4\x4c\xa8" "\x1f\xd8\xcc\xc2\xc2\xaa\x38\x6d\x1d\x4d\x18\xfb\x12\xfd\xf8\x9c\x53\x31" "\x21\x06\x79\xb0\x01\xbb\x55\x5f\x1e\x84\x65\x02\xba\xa8\x86\xe8\x7a\x3f" "\xbe\xf7\x2e\xc0\xf4\x95\x02\x21\x98\xc8\x6c\xfb\x43\xac\x1c\x48\x20\xe2" "\x00\x38\xb1\x0c\xaa\x5d\x13\xa1\xa4\x0d\x44\xf9\x41\x7d\xbb\x73\xf0\x48" "\x73\xaf\x18\x7f\x01\x01\xc9\xb8\xb7\x6e\x47\xe6\xfa\x7d\x98\xc2\xff\x1f" "\xfd\x3e\xe2\xec\xd9\x59\x1e\xd5\x25\x92\xbb\xb0\x1f\x5e\x69\xf1\xf2\xe1" "\xd9\xea\x26\x1b\xe9\xb6\xe5\x3c\x12\x23\xe7\xa5\xe0\x9d\xd9\x7c\xac\x48" "\xa1\xce\x39\x15\xd0\x8c\x7c\x95\x96\xce\x48\x35\x60\x71\xf8\x5d\xe3\xa9" "\xca\x53\x44\x16\x4f\x94\xc8\xbc\xf7\xa3\x2d\xbe\x5c\x8c\x2d\xe8\xac\xd7" "\xb3\xc6\x86\xae\x5a\x3f\xf3\xfa\x84\x32\x90\x9b\xff\x23\x1e\xbe\x24\x40" "\x6b\x00\xcc\x3e\xf9\x39\xd2\x89\x2d\x34\x86\x21\xfa\xdb\xe4\x70\x24\xc1" "\x22\x12\xe8\x6c\xcb\x6e\x73\x10\xde\xb9\x52\xed\xdc\x33\x74\x63\x2f\x9d" "\x2e\x72\xdb\xd6\x8b\xac\x38\xa5\x0c\xa8\x22\xb8\xd0\xb6\xcf\x27\x19\x0c" "\x90\xa2\x07\xe3\xa4\xf3\x57\xd4\xda\xfb\xb9\x65\x41\x6f\x8c\x27\x5d\x08" "\xea\xba\x93\x4e\x2d\xff\x08\xa4\xe7\x16\x5c\xf9\x74\x53\x72\xd1\xd1\x67" "\x2f\xfc\x5c\x41\xf5\xea\xf7\x7c\x99\xc5\xa1\xd8\x55\xdb\xec\x85\x64\xc2" "\x35\xfa\x29\xc8\xbe\x49\x44\xfa\xe0\x60\xa5\x8b\x58\x41\x00\x1d\x07\xb6" "\x77\x7d\x71\x55\xea\x2f\x0a\xe8\x9e\x0a\x75\x32\xc1\x30\xf1\x0b\x47\xd0" "\x52\x5b\x66\x91\x8b\x49\xed\x53\x9f\x84\xc2\x4a\x95\xd6\x12\x48\xef\xf6" "\x59\x8f\xa5\x08\x24\x00\xcd\xb9\xcb\x83\x72\xef\xf1\xaf\xed\x95\x38\x4e" "\x31\x8a\xc1\x9e\xc8\xf6\x17\x4d\xe0\x95\x1e\xd7\x0c\x4a\x34\x95\x2a\x1a" "\x41\x56\xa0\x3d\x7a\x96\xc0\x6f\x34\x95\xa1\xa6\x92\x21\x4e\xc9\x4d\x9a" "\xb3\x55\x7c\x7b\xd9\x91\xee\xec\x28\x05\x8c\x8e\x9f\xa3\xbe\x07\x75\xed" "\x76\x20\x9b\x8a\x36\x67\x01\x2b\x87\xbe\x0f\xdd\xec\x7e\x90\xf9\x5f\x9b" "\x37\xf3\x96\xc2\x1c\x00\xb5\x94\xa8\xc7\x39\xfd\x7a\x12\xf2\xfe\xfb\x4e" "\x5b\x47\xd8\x6e\xb9\x99\x55\x04\x7e\x80\x95\x56\x25\x1f\x95\x7d\xa3\xed" "\x70\x84\x7e\x4c\xa2\xb6\x79\x5e\xc7\x26\x62\x73\x10\x35\x4a\xd2\x98\x37" "\xce\x4b\x22\x8c\x7a\x2d\x02\x87\xc4\x23\xe8\x18\x47\xab\xe3\xeb\xfe\x25" "\xdd\x42\x9d\x24\x18\x68\xab\xb2\x59\x1a\x59\x9a\xbf\xc5\xeb\x33\x7e\x3d" "\xa6\x48\x9f\x97\x8b\x2e\xbe\x1b\x5a\x83\x87\xe5\xab\xc2\x03\x26\x4a\x27" "\xcc\x34\xbc\x11\x8e\x53\x75\x80\x34\x50\x0d\x4a\x26\x35\xaf\x06\xf0\x2d" "\xeb\x36\xb7\x07\xd4\x79\x0c\xd4\xc6\x05\xba\xbe\xe9\xa8\x34\x85\x0f\x30" "\xc2\x73\x41\x1c\x10\xbc\x29\xe7\x9f\x85\x8f\xc8\x4d\x5c\xf8\x4f\x15\x8d" "\xf4\x46\x0c\xff\x30\x09\x00\xd9\xcc\xc4\x07\xec\x2c\xe1\x23\x61\x99\xd5" "\xf3\x28\x64\x77\xdc\xbe\x04\x36\xfe\xc6\x56\x1e\xb5\x93\xf5\x6a\x5f\xee" "\x51\x8d\xae\x50\x0f\x27\xa1\x82\x9e\x9d\x35\x5a\xd5\xdd\xcf\x3b\x0b\x29" "\x2b\x2c\x3c\xd9\x1e\x0c\x39\xbe\x43\xdd\xb7\x55\x77\xa2\xdf\x44\x2e\xf9" "\x27\x61\x3c\x57\x62\xc1\x74\x1a\x0f\xa9\x5f\x19\x4e\xff\x3d\xb8\x23\xc0" "\x08\x3e\xa6\x2e\x8f\xe3\x70\x31\xe5\x9a\xee\x86\xde\x0d\x1b\xce\x6a\x69" "\x53\x7e\x71\x5c\x86\x52\x73\x3b\x5f\x1f\x85\x9b\xa9\x12\xe8\xa0\x2e\xdc" "\xb5\xe0\x8b\x6d\x6b\xc0\x14\x99\x37\x2e\x81\x2a\xc9\x37\x24\x5f\x35\x66" "\x09\x20\x82\x06\x52\xc6\x82\x03\x27\x71\xbc\xaa\xd0\x2d\xc7\x55\x4b\x99" "\x67\x60\xf4\xc5\xee\x4f\x4a\xd6\xba\x2f\x6f\x70\xfb\x9b\xde\xcd\x5a\x3e" "\x2a\xf2\x1f\x61\x74\x2e\xbf\x18\x8c\xca\x71\x7d\x5a\xc5\x9a\x8b\x04\xe5" "\x6c\x51\xc6\xd3\x7c\x26\xb8\x86\x0a\xa2\x8c\x7e\x45\xaa\xf7\x94\x2e\xcf" "\x94\xbe\x38\xaa\xee\x0f\xfe\x6b\x87\xe9\xe3\x64\xed\x3c\xbd\x02\x0c\x3a" "\xb3\x28\xd2\xf8\xde\xd9\xc0\xa4\x2f\xdb\xfb\xe0\x12\x4a\x61\xf0\x8c\xd9" "\x78\x67\x05\x9c\x6e\xfa\x81\x52\x2b\xb5\x0f\xfc\x8e\x79\x82\xe1\xab\x26" "\x4f\x1d\x32\xdc\x5c\x68\xf9\xa5\x5c\x73\xaa\x9d\x2c\x36\xe8\x89\x23\x19" "\x4c\x90\x51\x8d\xed\x05\x50\x32\x9a\xf0\xbc\x62\x88\x8b\x19\xde\x5c\xb4" "\xb4\xa3\xe8\x31\xee\x53\xdb\x67\x69\xa1\xa0\xa6\x54\xad\xd8\x46\x33\xb9" "\x6a\x16\x11\xc9\x37\xb1\x0b\xdf\x3d\x2a\xc9\x8a\xad\x0a\xb0\xdd\x34\x6a" "\x8e\x1b\x4c\xc7\xe5\xfe\xa1\xf8\x98\x87\x62\xfe\xa0\xb8\xa8\xf3\x08\x61" "\xb9\xf0\x7a\xd4\xc2\x18\x1d\x80\x92\x5d\xc6\x1d\xe8\x1f\x10\xa0\xab\xe4" "\xc4\x82\xb7\x33\x14\x90\x33\x93\x9c\xa7\xd0\x89\x3a\xc7\xf1\x49\x50\x63" "\x37\xee\x4b\xe9\x75\x2c\x14\xfe\xe1\x63\x63\x85\xc9\x34\x80\x45\xb3\xfd" "\xf1\x23\x52\x31\x25\x0f\x95\xf2\x69\x41\x0a\x9c\x5f\x32\xcb\x6b\xb7\xfe" "\xbc\x4d\xc5\xef\x1f\x04\xa2\xdb\xce\xda\xd0\x19\xcb\xa7\x64\x92\x5e\xfa" "\xcd\x0f\xd2\xd3\xb9\x59\x5f\xef\x40\xb2\x17\x87\x18\xcc\xc5\x33\x33\x53" "\x25\x5a\xe9\xeb\xd1\x5c\x29\xa2\x45\x4e\x03\xae\x90\xfd\x03\xc3\xf7\x9a" "\x4a\xa7\x2d\x5b\xe5\x9a\x1e\xff\x44\x49\x3e\x1f\x21\xb1\xb0\x0f\xc8\x37" "\x30\x0e\xc1\x77\x4c\xbb\x10\x25\x85\xa3\x8f\x2e\x01\xd8\x22\xb0\x6f\x7a" "\x59\x37\x8c\xd2\x81\x5e\x36\x2e\xc0\x6d\x85\xaa\xf3\xb5\x45\x2e\x11\x0d" "\x10\x69\x42\xa9\xa0\xba\xc1\x08\x2a\xfc\xcc\xa6\x9a\x77\xd2\xe8\x47\x77" "\xdc\x98\x99\x80\xe1\x5f\xd7\x14\x3b\xff\x39\x8a\x1d\xa8\x99\x40\x93\xed" "\x57\x69\x88\x7b\xa8\xa2\xf0\xd7\xfc\x10\xed\x78\xd2\x62\x1a\x95\xc9\xe8" "\x03\x5c\xa1\x0a\x9b\xa0\x91\x84\x0e\x04\x2e\x52\xb8\xbe\xd0\xb9\x09\xe1" "\xe6\x34\x44\x5b\xe0\x54\xb3\x12\xe0\xc4\x59\x31\x5c\x55\x26\x05\x30\x85" "\xb2\x0d\x98\xb7\xb6\xd0\xf2\x77\xac\x13\xeb\xf1\x4b\x18\xab\x97\x70\x20" "\xc7\x4d\x67\x63\x1f\xed\x8e\xe9\x6d\x03\xce\xa7\xd0\xfb\xb6\x76\xa1\x10" "\x56\x8a\x21\x7a\xcb\x03\x3e\xec\xce\xf3\x43\x10\x5c\x8b\xe7\x06\x8b\xe3" "\x07\x27\x17\x00\xcd\xb1\x4a\x73\x0f\xd2\xab\x8c\x01\x13\xdb\x05\x60\x5a" "\x4e\x27\x2f\xa1\xe7\xb3\x75\xfd\x11\xbe\xa9\x38\x44\x23\x97\x3c\x03\xea" "\xe4\xd1\x35\x2d\x2f\x58\x6f\x62\x6b\x47\x90\x6e\x8e\xcc\x68\xa4\x3a\x30" "\xf3\x48\xed\x5d\x89\x6b\x16\x9a\x94\x4e\x01\x7b\xb4\x0c\xce\x13\x03\x56" "\x89\x79\x9d\x71\x19\xe9\x06\xb5\xc7\xe5\x54\x90\xe3\xa6\x80\x16\x77\x9f" "\x5f\x12\x0d\xea\x3e\x31\xe8\x48\x57\xee\xf2\xdf\xe2\xba\x20\x21\x3a\x97" "\xde\x2f\x92\xe5\x01\xfd\x4f\xdb\x23\xd1\xba\xc4\x52\xf2\xfb\xba\x89\xc2" "\x54\xca\x94\x1b\x0c\xce\x28\xe5\x64\xb9\x9c\x59\xcb\x60\x65\xd2\x22\xc0" "\xf8\x46\xe3\x64\x82\x7c\xe4\xce\x9b\x94\x16\x47\x3a\xec\xb3\xf0\xa0\x77" "\x19\x53\x92\x87\x44\x84\x5b\xbb\xed\x51\xc7\x88\xe9\x66\xdf\xd8\xff\x88" "\x90\x4b\x3b\x2e\x12\xb0\x06\x2a\x1a\x14\x66\xb9\x2b\x7e\x70\xea\x9a\x2d" "\x21\x03\x87\x42\xa8\xef\xf9\x0c\x8a\x9c\x9b\x04\xdd\xa5\xc2\xae\xe3\x14" "\x0b\x81\xb8\x4c\xfd\x55\x1a\x3f\x5c\x0c\x55\x09\xc7\xa0\x94\x34\x49\x99" "\xea\x4b\x88\x30\xee\x07\x09\x73\x9a\x66\x2f\xa1\xbc\x38\xbd\xe1\xc5\xed" "\x28\xad\xf0\x93\xb5\xeb\x05\x79\x0d\xef\xca\x02\x5e\xd1\x2b\xa9\x52\xcc" "\x05\x2d\xdb\x9f\xae\x7a\xff\x6e\x6a\xf3\x67\x18\x34\x64\x7d\x7c\xe7\x9d" "\x1e\x7e\xdb\xe0\x85\xf6\xbf\xd0\xd3\x86\x9e\xbd\xa2\x6e\xba\xfb\x56\xab" "\xcc\x37\x7e\x81\x79\x06\xb7\x69\x1f\x61\xac\xbc\xab\xc7\x5d\xda\xb5\xde" "\xd0\x4e\x2e\xd5\xab\x51\xe2\x53\xa0\x96\xe0\x47\x4b\xf2\x9e\x06\x3e\xf4" "\x22\x99\x48\xf3\xba\xa7\x0e\x79\x1c\xd1\x20\x7e\xe3\x10\xdd\xa8\x95\x9f" "\x1b\x19\x7a\x2d\xed\xde\x03\x09\xd8\x4d\xda\xb5\xe8\xc0\xef\xb4\x8e\xda" "\x7a\x9a\x86\x1f\xe2\xa9\x6d\x1a\xca\x14\x0e\x57\x25\xdf\x1f\x3c\xdd\xcc" "\x16\xb3\x64\x9a\x18\x98\xc9\x9c\xcb\x2b\xa9\x5b\x53\xe6\x00\xf9\xbc\x4a" "\x6d\x41\xc0\x3c\x90\x21\x83\xa4\x2e\x94\xde\x64\xcc\x46\x56\xfb\x64\x00" "\xab\xb0\x9c\x9f\xf7\x22\xb5\x46\x5d\x7e\x6b\x5d\xcb\x21\xc0\x75\x38\x61" "\x37\x36\xb7\x50\xb8\xc0\xd8\x06\x66\x4c\x58\x2b\x22\x76\x23\x6d\x27\x11" "\xa4\x5c\x36\x4c\xff\x53\xe9\x42\x67\xcb\xf5\xd2\x13\x78\x9c\x76\x26\xa3" "\x0e\xba\x28\x46\x80\xf1\xd7\x1b\xfe\xb3", 4096); *(uint16_t*)0x20003a50 = 4; STORE_BY_BITMASK(uint16_t, , 0x20003a52, 0x66, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x20003a53, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x20003a53, 0, 7, 1); *(uint64_t*)0x20000088 = 0x1014; *(uint64_t*)0x20000090 = 0; *(uint64_t*)0x20000098 = 0; *(uint64_t*)0x200000a0 = 0; *(uint64_t*)0x200000a8 = 0; *(uint64_t*)0x200000b0 = 0; *(uint64_t*)0x200000b8 = 0; *(uint64_t*)0x200000d8 = 4; *(uint64_t*)0x200000e0 = 0; *(uint64_t*)0x200000e8 = 0; *(uint32_t*)0x200000f0 = 0x4004000; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x200000c0ul, /*f=*/1ul); memcpy((void*)0x20000000, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x20000000ul, /*flags=*/0x14113eul, /*mode=*/0ul); if (res != -1) r[1] = res; syscall(__NR_write, /*fd=*/r[1], /*data=*/0x20002a40ul, /*len=*/0x156a396ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); use_temporary_dir(); loop(); return 0; }