// https://syzkaller.appspot.com/bug?id=82ad35bc46edf3f7249743dfc76b48af0a13c78e // 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 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_pwritev2 #define __NR_pwritev2 287 #endif #ifndef __NR_write #define __NR_write 64 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000200, "hfsplus\000", 8); memcpy((void*)0x20000240, "\023\023w\305\3745\324\024T\325\324\035)\255\032`)" "Y\201F\346\276\026nA\255\r\275@T\003<\2373\273\332\202$" "\242\363\327r\347cnH\263<\277p\203r\350\361\271\223>" "\305\022wC\276\"\006 \236\360-\371\313\362\366\350\200\3238/\000", 78); memcpy((void*)0x20000180, "nobarrier", 9); *(uint8_t*)0x20000189 = 0x2c; memcpy((void*)0x2000018a, "decompose", 9); *(uint8_t*)0x20000193 = 0x2c; memcpy((void*)0x20000194, "gid", 3); *(uint8_t*)0x20000197 = 0x3d; sprintf((char*)0x20000198, "0x%016llx", (long long)0); *(uint8_t*)0x200001aa = 0x2c; memcpy((void*)0x200001ab, "barrier", 7); *(uint8_t*)0x200001b2 = 0x2c; memcpy((void*)0x200001b3, "gid", 3); *(uint8_t*)0x200001b6 = 0x3d; sprintf((char*)0x200001b7, "0x%016llx", (long long)0); *(uint8_t*)0x200001c9 = 0x2c; memcpy((void*)0x200001ca, "nodecompose", 11); *(uint8_t*)0x200001d5 = 0x2c; memcpy((void*)0x200001d6, "uid", 3); *(uint8_t*)0x200001d9 = 0x3d; sprintf((char*)0x200001da, "0x%016llx", (long long)0); *(uint8_t*)0x200001ec = 0x2c; memcpy((void*)0x200001ed, "nls", 3); *(uint8_t*)0x200001f0 = 0x3d; memcpy((void*)0x200001f1, "default", 7); *(uint8_t*)0x200001f8 = 0x2c; *(uint8_t*)0x200001f9 = 0; memcpy( (void*)0x200009c0, "\x78\x9c\xec\xdd\xcd\x6b\x1c\xe7\x19\x00\xf0\x67\x56\xab\xd5\xae\x0a\x8e" "\x9c\xf8\x23\x2d\x81\x2c\x31\xa4\xa5\xa2\xb6\x64\xa1\xb4\xea\xa5\x6e\x29" "\x45\x87\x50\x42\x7a\xe8\x79\xb1\xe5\x58\x78\x2d\x07\x49\x29\x4a\x28\xb5" "\xd2\xf6\x0f\xe8\x21\xa7\x9e\xd2\x83\x6e\xa1\x87\x92\xde\x0d\xed\xb9\x21" "\x50\x72\xd5\x31\x50\xc8\x25\x27\xdd\x54\x66\x76\x66\xb5\xab\xfd\xb4\xb5" "\x96\xe4\xe4\xf7\x33\x33\xf3\xce\xbc\x1f\xf3\xce\x33\x3b\x33\x9a\x5d\xcc" "\x1b\xc0\xb7\xd6\xea\x7c\x94\x1f\x47\x12\xab\xf3\x6f\xee\xa4\xeb\xfb\x7b" "\x4b\xcd\xa9\xbd\xa5\x99\x3c\xbb\x19\x11\x95\x88\x28\x45\x94\x5b\x8b\x48" "\x36\x22\xcb\xbd\x95\x4f\xf1\xdd\x74\x63\x5e\x3e\x19\xb4\x9f\x8f\xd6\x57" "\xde\xfe\xe2\xeb\xfd\x2f\x5b\x6b\xe5\x7c\xca\xca\x97\x86\xd5\xeb\xa3\xd2" "\xbb\x69\x37\x9f\xa2\x1e\x11\x53\xf9\xb2\xd7\xf4\x80\x16\x3f\x3d\xbe\xfb" "\xae\xf6\x6e\x0f\x6c\x6f\x5c\x49\xfb\x08\xd3\x80\x5d\x2b\x02\x17\x7f\x3d" "\x51\xab\x70\x62\x87\x3d\x76\xdb\x79\x9f\xfc\x37\x9b\x0f\xab\xfe\x24\xd7" "\x2d\x70\x4e\x25\xad\xe7\x66\x8f\xb9\x88\xd9\x88\xa8\x46\xb4\x9e\xfa\xf9" "\xdd\xa1\x74\xba\xbd\x9b\xbc\xdd\xb3\xee\x00\x00\x00\x00\x3c\xa9\xda\xa8" "\x02\xbd\xaf\xeb\x2f\x1c\xc4\x41\xec\xc4\x85\x67\xd5\x25\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xf8\x26\xca\xc7\xff\x4f\xf2\xa9\x54\xa4\xeb\x91\x14" "\xe3\xff\x57\xf2\x6d\x91\xa7\x9f\x4b\x9f\xcf\xb4\x96\x8f\xcf\xba\x23\x00" "\x00\x00\x00\x00\x00\x00\x30\x01\xaf\x1e\xc4\x41\xec\xc4\x85\x62\xfd\x30" "\xc9\x7e\xf3\x7f\xad\xe3\x37\xfe\xef\xc4\x7b\xb1\x15\x6b\xb1\x19\xd7\x63" "\x27\x1a\xb1\x1d\xdb\xb1\x19\x8b\x11\x31\xd7\xd1\x50\x65\xa7\xb1\xbd\xbd" "\xb9\x98\xd5\x8c\xb8\x34\xa4\xe6\xcd\xf8\xac\x4f\xcd\x9b\x83\xfb\x78\x6b" "\xc2\xc7\x0c\x00\x00\x00\x00\x00\x00\x00\xe7\x5c\x75\x44\xfe\xfd\xe9\xde" "\x6d\x7f\x8c\xd5\xa3\xdf\xff\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" "\xe0\x3c\x48\x22\xa6\x5a\x8b\x6c\xba\x54\xa4\xe7\xa2\x54\x8e\x88\x6a\x44" "\x54\xd2\x72\xbb\x11\x9f\x15\xe9\xe7\x44\xd2\x6f\xe3\xe3\xd3\xef\x07\x00" "\x00\x00\x9c\x48\xb5\x7b\x35\xa9\x8e\x51\xe7\x85\x47\x71\x10\x3b\x71\xa1" "\x58\x3f\x4c\xb2\x77\xfe\x2b\xd9\xfb\x72\x35\xde\x8b\x8d\xd8\x8e\xf5\xd8" "\x8e\x66\xac\xc5\x9d\xfc\x1d\x3a\x7d\xeb\x2f\xed\xef\x2d\x35\xf7\xf7\x96" "\x1e\xa4\x53\x6f\xbb\x3f\xff\xea\x89\xba\x9e\xb5\x18\xad\xef\x1e\xfa\xef" "\xf9\xe5\xac\x44\x2d\xee\xc6\x7a\xb6\xe5\x7a\xdc\x8e\x24\x0e\x33\xa5\xbc" "\x95\x97\xf7\xf7\x96\xd2\xe5\x83\xfd\xbd\xa4\x4f\xbf\x3e\x4c\xfb\x94\xfc" "\x2c\x37\xa4\x37\x53\x1d\xe9\x3b\xe9\xec\xea\xa7\x59\xfa\x2f\xdd\xdf\x22" "\x94\x9f\xe8\x10\x9f\x52\x69\x60\xce\x5c\x96\x3b\xdd\x8e\xc8\x42\xde\xb7" "\xb4\xc6\xc5\xe2\xcc\xf4\x3f\x43\x23\xcf\x4e\x79\xe8\x9e\x16\xa3\xd4\xfe" "\xe6\xe7\xd2\xf0\x3d\xf5\x8f\xf9\x87\xc3\xf7\x3e\x7b\xac\x54\xdf\x6f\x6e" "\xce\xc4\xf1\x48\xdc\x8c\x52\xfb\x0c\x5d\x19\x1e\x89\x88\xef\xff\xf3\x93" "\xdf\xde\x6b\x6e\xdc\xbf\x77\x77\x6b\xfe\xfc\x1c\x52\x5f\x8f\x46\x96\x38" "\x1e\x89\xa5\x8e\x48\x5c\xfd\x06\x45\x62\xb4\x85\x2c\x12\x97\xdb\xeb\xab" "\xf1\xab\xf8\x4d\xcc\xc7\x57\x33\x6f\xc5\x66\xac\xc7\xef\xa2\x11\xdb\xb1" "\x56\x2f\xf2\x1b\xf9\xe7\x39\x9d\xcf\x0d\x8f\xd4\xe7\xb3\x9d\x6b\x6f\x8d" "\xea\x49\x7a\x4d\xd6\xdb\xf7\xaf\x7e\x7d\xaa\x47\x57\x9f\xa2\x1e\xbf\xcc" "\x52\x8d\x78\x2d\x3b\xa7\x17\x62\x3d\x92\x78\x18\x31\xbd\x16\x6f\x64\xff" "\x6e\xc6\x62\xfb\x6e\x70\x74\x86\x2f\x8f\x71\xd5\x97\xc6\xb8\xd3\x76\xb8" "\xf6\x83\x6c\xd1\x0e\x53\xd4\x06\x97\xfd\xfb\x78\x4d\x4e\x4a\x1a\xd7\x8b" "\x1d\x71\xed\xbc\xe7\xce\x65\x79\x9d\x5b\x8e\xa2\xf4\x62\xdf\x28\x15\xcf" "\xba\xf1\x9f\x47\x1d\xca\xdf\xcb\x13\x69\x0b\x7f\x1a\xfa\x7c\x38\x6d\xc7" "\x23\xb1\xd8\x11\x89\x97\x06\x7d\x5e\x5a\x21\xfd\xdb\x61\x3a\xdf\x6a\x6e" "\xdc\xdf\xbc\xd7\x78\x77\xcc\xfd\xbd\x9e\x2f\x8b\x4f\xe7\xf9\xb9\x91\xa4" "\x67\xf8\xc5\xa8\xe6\x07\x77\x31\x9b\xa7\xbd\x4b\x3f\x1d\x69\xde\x4b\xed" "\x5e\x77\xc7\xab\x92\xff\xe2\xd2\x52\xea\xc9\xbb\xdc\xae\xd7\xba\x52\x7f" "\x1d\x0f\xe3\x4e\x74\x5e\xa9\x3f\x8e\xe5\x58\x8e\x95\xac\xf4\x95\xac\xf4" "\x74\xcf\x13\x2b\xcd\xbb\xda\x6e\xa9\xfb\x1e\x9e\xe6\xa5\x7f\x69\x95\xdb" "\x3f\xec\x74\xfe\xbd\xf5\x30\x9a\xad\xbf\x87\x00\x38\xdf\x66\x7f\x38\x5b" "\xa9\xfd\xaf\xf6\x9f\xda\xc7\xb5\x3f\xd7\xee\xd5\xde\xac\xfe\x62\xe6\x27" "\x33\xaf\x54\x62\xfa\xdf\xd3\x3f\x2d\x2f\x4c\xbd\x5e\x7a\x25\xf9\x47\x7c" "\x1c\x7f\x38\x7a\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\x9e\xde\xd6\xfb\x1f\xdc\x6f" "\x34\x9b\x6b\x9b\xfd\x13\xa5\xfe\x59\xc9\xf0\x5a\x8d\xe6\x61\x3e\x90\xd8" "\xb0\x32\x5d\x89\x24\x1f\x2a\x67\x8c\xc2\xc9\x58\x0d\x0e\x4f\xcc\xe4\x87" "\x7f\xd2\x76\xba\x12\xf5\xa7\x6a\xb0\x18\xad\x71\x74\xe1\xfa\xe4\xba\xda" "\x93\x48\x76\xf3\x13\xd6\xde\x52\x1d\x7d\x2e\xb2\x51\x9e\x1e\x8d\x75\x96" "\x93\x9e\x80\xa7\x95\x9f\xba\xcf\xc5\xf8\x52\xcf\x28\x1a\x13\x4a\xd4\x27" "\xd7\x60\xf1\x81\x1d\x56\x66\xe4\x55\x59\x8c\xac\xd6\x95\x35\x15\x11\xfd" "\x0a\x8f\xb8\x71\x4c\x4d\xea\x0e\x04\x9c\x95\x1b\xdb\x0f\xde\xbd\xb1\xf5" "\xfe\x07\x3f\x5a\x7f\xd0\x78\x67\xed\x9d\xb5\x8d\xe9\xe5\xe5\x95\x85\x95" "\xe5\x37\x96\x6e\xdc\x5d\x6f\xae\x2d\xb4\xe6\x1d\x15\x4e\x65\xf0\x5b\xe0" "\x34\x1c\x3d\xf4\x3b\xb7\x96\x22\x5e\x1d\x5d\x77\xc8\x40\xad\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xc0\x33\x74\x1a\xff\x17\xe2\xac\x8f\x11\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x78\xbe\xad\xce\x47\xf9\x71\x24\xb1\xb8\x70\x7d\x21\x5d\xdf\xdf\x5b" "\x6a\xa6\x53\x91\x3e\x2a\x59\x8e\x88\x52\x44\x24\xbf\x8f\x48\xfe\x15\x71" "\x2b\x5a\x53\xcc\x75\x34\x97\x0c\xda\xcf\x47\xeb\x2b\x6f\x7f\xf1\xf5\xfe" "\x97\x47\x6d\x95\x8b\xf2\xa5\x88\xdd\x81\xf5\xc6\xb3\x9b\x4f\x51\x8f\x88" "\xa9\x7c\x39\xa9\xf6\x6e\x8f\x6e\xaf\x72\x94\x9c\xe9\x93\x9d\xb4\x23\x93" "\x06\xec\x5a\x11\x38\x38\x6b\xff\x0f\x00\x00\xff\xff\xcb\x97\xeb\x70", 1763); syz_mount_image(/*fs=*/0x20000200, /*dir=*/0x20000240, /*flags=MS_I_VERSION|MS_NOEXEC|MS_NODEV*/ 0x80000c, /*opts=*/0x20000180, /*chdir=*/1, /*size=*/0x6e3, /*img=*/0x200009c0); memcpy((void*)0x20000040, "./file2\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000040ul, /*flags=O_SYNC|O_NOFOLLOW|O_NOATIME|O_CREAT|FASYNC|0x2*/ 0x14b042, /*mode=*/0); if (res != -1) r[0] = res; *(uint64_t*)0x20000380 = 0x20000080; memset((void*)0x20000080, 255, 1); *(uint64_t*)0x20000388 = 0x5e13f; syscall(__NR_pwritev2, /*fd=*/r[0], /*vec=*/0x20000380ul, /*vlen=*/1ul, /*off_low=*/0, /*off_high=*/0, /*flags=*/0ul); memcpy((void*)0x20000180, "hfsplus\000", 8); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x200000c0, "barrier", 7); *(uint8_t*)0x200000c7 = 0x2c; memcpy((void*)0x200000c8, "uid", 3); *(uint8_t*)0x200000cb = 0x3d; sprintf((char*)0x200000cc, "0x%016llx", (long long)0); *(uint8_t*)0x200000de = 0x2c; memcpy((void*)0x200000df, "nodecompose", 11); *(uint8_t*)0x200000ea = 0x2c; memcpy((void*)0x200000eb, "nodecompose", 11); *(uint8_t*)0x200000f6 = 0x2c; memcpy((void*)0x200000f7, "part", 4); *(uint8_t*)0x200000fb = 0x3d; sprintf((char*)0x200000fc, "0x%016llx", (long long)0x3ad4); *(uint8_t*)0x2000010e = 0x2c; *(uint8_t*)0x2000010f = 0; memcpy( (void*)0x20000280, "\x78\x9c\xec\xdd\x4d\x68\x1c\xf7\xdd\x07\xf0\xef\xac\x56\x6f\x7e\xc0\x91" "\x13\xbf\x3d\x25\x10\x11\x43\x5a\x6a\x6a\xcb\x16\x4e\xeb\x5e\xe2\x96\x52" "\x7c\x08\x25\xa4\xd0\x9e\x85\x2d\xc7\xc2\x6b\x3b\xc8\x4a\x51\xd2\xd2\x28" "\x7d\xb9\xf7\x90\x53\x4f\xe9\x41\xb7\xd0\x43\x49\xef\x86\xf4\xdc\x50\x28" "\xb9\xea\x18\x08\xe4\x92\x93\x6f\x2e\x33\x3b\xbb\x5a\x59\xfb\x62\x59\xb2" "\x24\x27\x9f\x8f\x99\x99\xff\xcc\xff\x65\x7e\xfb\x9b\x9d\x19\xed\x2e\x66" "\x02\x7c\x6b\x5d\x3d\x9b\xe6\xfd\x14\xb9\x7a\xf6\xf5\xd5\x72\x7d\x63\x7d" "\xbe\xb5\xb1\x3e\x3f\x59\x57\xb7\x92\x4c\x24\x69\x24\xcd\xf6\x22\xc5\x9d" "\xa4\xf8\x34\xb9\x92\xf6\x94\xff\x2f\x37\xd6\xed\x8b\x41\xfb\xf9\x70\xe9" "\xf2\x9b\x9f\x7f\xbd\xf1\x45\x7b\xad\x59\x4f\x55\xfb\x5f\xed\x30\xe4\x89" "\xed\x9b\xd6\xea\x29\xb3\x49\xc6\xea\xe5\x76\xe3\x03\x46\xfc\xe4\xd1\xb0" "\xb7\x8c\x77\x6d\xe0\x78\x8f\xab\xe8\x66\xa6\x4c\xd8\x99\x4e\xe2\xf2\xd7" "\x5d\x8d\x0a\xbb\xf6\x70\x9b\xb5\x6e\xdd\xc7\xff\x1d\xd9\x7d\xe0\xf9\x0e" "\x3c\x3b\x8a\xf6\x7d\x73\x9b\x99\xe4\x48\x92\xa9\x24\xd5\xdf\x04\xf5\xd5" "\xa1\xb1\xbf\xd1\xed\xbd\xb5\x83\x0e\x00\x00\x00\x00\x76\x6a\x7a\xe7\x5d" "\x9e\x7b\x90\x07\x59\xcd\xd1\xa7\x11\x0e\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x7c\x53\xd5\xcf\xff\x2f\xea\xa9\xd1\x29\xcf\xa6\xe8\x3c\xff\x7f\xa2" "\xde\x96\xba\xfc\x4c\xfa\xcf\x64\x7b\x79\xff\xa0\x03\x01\x00\x00\x00\x00" "\x00\x00\x80\x3d\xf0\xd2\x83\x3c\xc8\x6a\x8e\x76\xd6\x1f\x16\xd5\x6f\xfe" "\x2f\xf7\xfc\xc6\xff\x7f\x79\x27\xf7\xb2\x98\xe5\x9c\xcb\x6a\x16\xb2\x92" "\x95\x2c\xe7\x42\x92\x99\x9e\x81\x26\x56\x17\x56\x56\x96\x2f\x54\x3d\x93" "\xe3\x43\x7a\x5e\xcc\x67\x7d\x7a\x5e\x1c\x1c\xe3\x95\x3d\x7e\xcd\x00\x00" "\x00\x00\x00\x00\x00\x70\xc8\x4d\x8d\xa8\xbf\x35\xbe\x7d\xdb\x1f\x72\x75" "\xf3\xf7\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0c\x8a\x64" "\xac\xbd\xa8\xa6\xe3\x9d\xf2\x4c\x1a\xcd\x24\x53\x49\x26\xca\x76\x6b\xc9" "\x67\x9d\xf2\x33\xa2\xe8\xb7\xf1\xfe\xfe\xc7\x01\x00\x00\x00\xbb\x32\x35" "\x62\xbd\x9f\xe7\xde\xcf\x83\xac\xe6\x68\x67\xfd\x61\x51\x7d\xe6\x3f\x59" "\x7d\x5e\x9e\xca\x3b\xb9\x93\x95\x2c\x65\x25\xad\x2c\xe6\x7a\xfd\x19\xba" "\xfc\xd4\xdf\xd8\x58\x9f\x6f\x6d\xac\xcf\xdf\x2e\xa7\xed\xe3\xfe\xe4\xab" "\x1d\x85\x5e\x8d\x98\xf6\x77\x0f\xfd\xf7\x7c\xba\x6a\x31\x9d\x1b\x59\xaa" "\xb6\x9c\xcb\xb5\xdc\x4d\x2b\xd7\xd3\xa8\x7a\x96\x4e\x6f\xac\xcf\x97\xcb" "\xdb\xfd\xe3\xfa\xa0\x8c\xa9\x78\xad\x34\x3c\x9a\xb1\x9e\xf2\xf5\x72\x76" "\xea\x93\xaa\xfc\x97\xad\xdf\x22\x34\x77\xf4\x12\x77\x6c\xad\x9a\x37\x06" "\xd6\xcf\x54\xb5\xe3\xdd\x8c\xcc\xd5\xb1\x95\x3d\x8e\x75\x32\xd0\x3f\x13" "\x23\x8f\x4e\x73\xe8\x9e\x2e\xa4\xd1\xfd\xe6\xe7\xf8\xf0\x3d\xf5\xe4\xbc" "\x27\xed\x1f\x0c\xdf\xfb\x91\x47\x5a\xf5\xfd\xe6\xe6\x40\x3c\x9a\x89\x8b" "\x3d\xef\xbe\x93\xc3\x33\x91\x7c\xf7\x9f\x1f\xff\xfa\x66\xeb\xce\xad\x9b" "\x37\xee\x9d\x3d\x3c\x2f\xa9\xaf\xf7\x47\xb6\x78\x34\x13\xf3\x3d\x99\x38" "\xf5\x0d\xca\xc4\x68\x73\x55\x26\x4e\x74\xd7\xaf\xe6\xe7\xf9\x65\xce\xe6" "\xab\xc9\x37\xb2\x9c\xa5\xfc\x26\x0b\x59\xc9\xe2\x6c\xa7\x7e\xa1\x7e\x3f" "\x97\xf3\x99\x51\x99\xea\xf5\xc6\xa8\x48\x26\xea\xe3\xd2\xbe\x7e\xf5\x8b" "\x69\x36\x5b\x62\xca\x6c\x7e\x56\x95\x16\xf2\x72\xd5\xf7\x68\x96\x52\xe4" "\x6e\x92\xc5\xbc\x5a\xfd\xbb\x98\x0b\xdd\xab\xc1\xe6\x11\x3e\xb1\x19\x73" "\xd1\xe7\x04\xad\xce\xfa\xc6\xa3\x67\xfd\x70\x67\xbe\x57\x2d\xda\x69\x9a" "\x4c\x32\xfd\x78\xfd\xf6\x41\x99\xd7\x63\x3d\x79\xed\xbd\xe6\x96\xf9\xfe" "\x7b\xd2\xb3\x65\x33\x4b\xcf\xf7\x3d\xba\x9d\x7b\xdd\x80\x6b\xe3\x70\xcd" "\xef\xd4\x85\x72\x84\x3f\x0e\xbd\x3f\xec\xb7\x99\x2a\x4b\x5b\xef\x12\x9d" "\xe8\x5e\x18\xf4\x3e\x6f\xa7\xf4\x6f\x0f\xcb\xf9\xbd\xd6\x9d\x5b\xcb\x37" "\x17\xde\x7e\xcc\xfd\xbd\x52\x2f\xcb\x37\xdf\x9f\x0f\xd5\x5d\xa2\x3c\xc2" "\xcf\x67\xaa\x7e\x71\xc7\xaa\x79\x51\x9d\x53\x73\x55\xdd\x0b\xdd\x3b\xec" "\xd6\x7c\x4d\xd4\xbf\xb8\xb4\x35\xb6\xd5\x9d\xe8\xf6\x6b\x9f\xa9\xbf\xc8" "\xdd\x5c\xdf\x72\xa6\xfe\x30\x97\x72\x29\x97\xab\xd6\x27\xab\xd6\xe3\x9d" "\x91\xaa\x8e\xe5\x1d\xab\xac\x3b\xd5\x1d\x69\xeb\x35\xbc\xac\x3b\xdd\x53" "\xd7\xef\xef\x2d\x00\x0e\xbd\x23\xdf\x3f\x32\x31\xfd\xe5\xf4\xbf\xa7\x3f" "\x9a\xfe\xd3\xf4\xcd\xe9\xd7\xa7\x7e\x3a\xf9\xa3\xc9\x17\x27\x32\xfe\xaf" "\xf1\x1f\x37\xe7\xc6\x5e\x69\xbc\x58\xfc\x23\x1f\xe5\xf7\x9b\x9f\xff\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x80\x27\x77\xef\xdd\xf7\x6e\x2d\xb4\x5a\x8b\xcb\xfd\x0b" "\x8d\xfe\x55\xc5\xf0\x5e\x0b\xad\x87\xf5\x83\xc4\x86\xb5\xd9\x52\xe8\x3c" "\x4d\xea\x31\x1a\x17\x8f\x35\xe0\xf0\xc2\x64\xfd\xf2\x77\x3b\xce\x1e\x14" "\x3a\x4f\x6b\x1c\xdd\x78\xf6\x29\x86\x51\xac\xd5\x07\x6c\x27\xbd\x3a\x4f" "\x79\x7a\xa2\x9d\x96\x9d\x9f\x38\xe6\xf6\x9e\x27\x73\x90\x07\x6e\x74\x61" "\x76\xef\x06\xec\xbc\x61\x77\x33\xce\x6b\xd3\xfd\x8e\xd7\x58\x92\x7e\xbd" "\x46\x5c\x38\xc6\xf6\xf0\x22\x04\x1c\x88\xf3\x2b\xb7\xdf\x3e\x7f\xef\xdd" "\xf7\x7e\xb0\x74\x7b\xe1\xad\xc5\xb7\x16\xef\x8c\x5f\xba\x74\x79\xee\xf2" "\xa5\x57\xe7\xcf\xdf\x58\x6a\x2d\xce\xb5\xe7\x3d\x1d\x9e\xf2\xc3\x6f\x81" "\xfd\xb3\x79\xd3\xef\xdd\xda\x48\x5e\x1a\xdd\xf7\xf0\x3c\xa8\x15\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xbe\x5d\xf6\xe3\xff\x42\x1c\xf4\x6b\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x9e\x6d\x57\xcf\xa6\x79\x3f\x45\x2e\xcc\x9d\x9b\x2b\xd7\x37\xd6" "\xe7\x5b\xe5\xd4\x29\x6f\xb6\x6c\x26\x69\x24\x29\x7e\x97\x14\x9f\x26\x57" "\xd2\x9e\x32\xd3\x33\x5c\x31\x68\x3f\x1f\x2e\x5d\x7e\xf3\xf3\xaf\x37\xbe" "\xd8\x1c\xab\xd9\x69\xdf\x48\xd6\x06\xf6\x1b\x61\x72\xb3\xb8\x56\xce\x66" "\x93\x8c\xd5\xcb\x1d\xf9\xf2\xb7\xbd\x6b\x6b\xbd\xe3\x5d\x1b\x3d\xde\x44" "\xbd\x1c\xdb\x12\x51\x57\xd1\xcd\x4c\x99\xb0\x33\x9d\xc4\xc1\x41\xfb\x5f" "\x00\x00\x00\xff\xff\x28\x8e\xea\x95", 1755); syz_mount_image( /*fs=*/0x20000180, /*dir=*/0x20000080, /*flags=MS_POSIXACL|MS_SILENT|MS_NODIRATIME|MS_NOATIME|0xc0*/ 0x18cc0, /*opts=*/0x200000c0, /*chdir=*/0x81, /*size=*/0x6db, /*img=*/0x20000280); memcpy((void*)0x20000140, "./bus\000", 6); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000140ul, /*flags=O_SYNC|O_NONBLOCK|O_NOATIME|O_CREAT|O_RDWR*/ 0x141842, /*mode=*/0); if (res != -1) r[1] = res; syscall(__NR_write, /*fd=*/r[1], /*data=*/0x20000040ul, /*len=*/0xc00ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*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=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }