// https://syzkaller.appspot.com/bug?id=f86606dfb403cc9435c0ed5f17e1d80c110cddef // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; //% 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; } 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); memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file0\000", 8); memcpy((void*)0x20000080, "\x00\x0b\x92\x40\xc8\xae\xe6\x63\x1a\x00\x01\x01\x8f\xe5\xee\x25\xc4" "\x54\x8d\x92\xba\xb2\x85\xcb\x8c\x1d\x27\x60\x2c\x04\x8d\xb0\x81\x09" "\x20\x9e\x5e\x4c\x03\x00\x96\x28\xb0\x63\x6f\x3b\x0f\x11\x00\xbf\xf9" "\x11\x7e\x57\xd0\xf2\xc3", 57); memcpy( (void*)0x20000c80, "\x78\x9c\xec\xdd\x4f\x6b\x1c\xe7\x1d\x07\xf0\xef\xac\x25\xd9\x72\xc1\x51" "\x12\x3b\x49\x4b\x4a\x85\x7d\x68\x89\xa9\x2d\x69\x13\x47\x87\x42\xdd\x52" "\x8a\x0e\xa6\x04\x7a\xc9\x25\x07\x61\xcb\xb1\xf0\x5a\x09\x92\x52\x94\x50" "\x52\xb9\x7f\xaf\x7d\x07\x49\x0f\xf2\xb9\xa7\x1e\x4a\x0f\x86\xf4\xdc\xb7" "\x20\xe8\x21\x87\x42\xef\xa2\x97\x2d\x33\x3b\xbb\x5a\x45\xca\x4a\x8a\x14" "\xef\x8a\x7c\x3e\x30\xfb\x3c\x33\xcf\x3c\x7f\xe6\xc7\xcc\xb3\x33\x23\xc4" "\x06\xf8\xc6\x5a\x78\x3b\xe3\x4f\x53\x64\xe1\xfa\x9d\x8d\x72\x7d\x7b\xab" "\xd9\xda\xde\x6a\x3e\xea\xe6\x93\x9c\x4f\xd2\x48\xc6\x3a\x49\x8a\x95\xa4" "\xf8\x2c\xb9\x9d\xce\x92\x6f\x97\x1b\xeb\xe6\x8a\x2f\xeb\xe7\x9d\x4f\xde" "\x9c\xff\x7c\xf6\xc9\xe3\x64\xa2\xde\x32\xd6\xdd\xbf\x31\xa8\xde\xd1\x6c" "\xd6\x4b\xa6\x93\x9c\xab\xd3\xd3\x6a\xef\xee\x21\xed\x3d\x3e\xb4\xb9\xa2" "\x77\x84\x65\xc0\xae\x75\x03\x07\xc3\xd6\xde\x67\xf3\x38\xd5\x4f\x78\xdd" "\x02\xa3\xa0\xe8\x7c\x6f\xee\x33\x95\x5c\x4c\x72\xa1\xbe\x0f\x48\x3d\x3b" "\x34\x9e\xed\xe8\x4e\xdf\xb1\x66\x39\x00\x00\x00\x38\xa3\x9e\xdb\xc9\x4e" "\x36\x72\x69\xd8\xe3\x00\x00\x00\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\xb3\xa4\xfe" "\xfd\xff\xa2\x5e\x1a\xdd\xfc\x74\x8a\xee\xef\xff\x4f\xd4\xdb\x52\xe7\xcf" "\xb4\xa7\xc3\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x9c\x82\xef\xed\x64\x27" "\x1b\xb9\xd4\x5d\x6f\x17\xd5\xdf\xfc\xaf\x56\x2b\x97\xab\xcf\x6f\xe5\x83" "\xac\x65\x29\xab\xb9\x91\x8d\x2c\x66\x3d\xeb\x59\xcd\x6c\x92\xa9\xbe\x86" "\x26\x36\x16\xd7\xd7\x57\x67\x8f\x50\x73\xee\xc0\x9a\x73\xcf\xe6\x78\x01" "\x00\x00\x00\x00\x00\x00\x60\x94\xb5\xdb\x03\xca\x7e\x33\xb0\xea\x6f\xb3" "\xb0\xfb\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\x18\x05\x45" "\x72\xae\x93\x54\xcb\xe5\x6e\x7e\x2a\x8d\xb1\x24\x17\x92\x4c\x94\xfb\x6d" "\x26\xff\xe8\xe6\xcf\xb2\xa7\xc3\x1e\x00\x00\x00\x00\x3c\x03\xcf\xed\x64" "\x27\x1b\xb9\xd4\x5d\x6f\x17\xd5\x33\xff\x4b\xd5\x73\xff\x85\x7c\x90\x95" "\xac\x67\x39\xeb\x69\x65\x29\xf7\xaa\x77\x01\x9d\xa7\xfe\xc6\xf6\x56\xb3" "\xb5\xbd\xd5\x7c\x54\x2e\xfb\xdb\xfd\xc9\x7f\x8f\x35\x8c\xaa\xc5\x74\xde" "\x3d\x1c\xdc\xf3\x4c\xb5\xc7\xff\x7a\x35\x16\xf2\xf3\xfc\x32\xd7\x33\x9d" "\xb7\xb2\x9a\xe5\xfc\x2a\x8b\x59\xcf\x52\xa6\xf3\xb3\x2a\xb7\x98\x22\x53" "\xf5\xdb\x8b\xa9\xee\x38\x0f\x1e\xef\xed\x3d\x6b\x6f\x1d\x36\xd6\x57\xaa" "\x91\x4c\xe6\x7e\x96\xab\xb1\xdd\xc8\xdd\xbc\x97\x56\xee\xa5\x51\x1d\x43" "\xb5\xcf\xe0\x1e\x1f\x97\xd1\x29\x7e\x5c\x3b\x62\x8c\xee\xd5\x69\x79\x44" "\x7f\xae\xd3\xd1\x30\x55\x45\x64\xbc\x17\x91\x99\x3a\xf6\x65\x34\x9e\x1f" "\x1c\x89\x01\xe7\x49\xbb\xdd\x6e\x1f\xd6\xd3\x6c\x1a\xbd\x77\x50\x97\xcb" "\xd6\xc7\x72\xaa\x31\xbf\x58\xa7\x65\xac\xff\x38\xd2\x31\x9f\xeb\x3b\xfb" "\x5e\x1a\x1c\xf3\xe4\xea\xbf\xbf\xfb\xb7\x07\xad\x95\x87\x0f\xee\xaf\x5d" "\x1f\x9d\x43\xfa\x8a\xbe\x18\x89\x66\x5f\x24\x5e\xfe\x46\x45\x62\xa2\x8e" "\x46\x67\x16\x6d\xe4\x4a\xaf\xe4\xf0\xd9\xf2\x6a\x55\xf7\x52\x96\xf3\x8b" "\xbc\x97\x7b\x59\xca\x1b\x99\xcf\x1b\x99\xcb\xeb\x79\x3d\x33\x99\xcf\xad" "\xbe\xb8\x5e\x39\xc2\xfc\xd6\x38\xde\xb5\x76\xed\x07\x75\x66\x32\xc9\x9f" "\xea\x34\x63\xdd\xe2\xf1\x13\xc6\xe6\x58\x5e\xdd\xbb\x5a\xc6\xf5\xf9\xbe" "\xb8\xf6\xcf\x74\x53\x55\x59\xff\x96\xdd\x28\xbd\x70\xfa\xdf\x02\x63\xdf" "\xa9\x33\x65\x1f\xbf\xab\xd3\xd1\xf0\xc5\x48\xcc\xf6\x45\xe2\xc5\xc1\x91" "\xf8\x4b\x35\xd1\xaf\xb5\x56\x1e\xae\x3e\x58\x7c\xff\x88\xfd\x7d\xbf\x4e" "\xcb\xcb\xf6\x0f\x23\x35\x37\x97\xe7\xcb\x0b\xbd\x93\x77\xef\xd9\x51\x96" "\xbd\x78\x60\xd9\x6c\x55\x76\xb9\x57\xd6\xd8\x57\x76\xa5\x57\x76\xd8\x95" "\x3a\x51\xdf\xc3\xed\x6f\x69\xae\x2a\x7b\xf9\xc0\xb2\x66\x55\xf6\x4a\x5f" "\xd9\xde\xbb\x9c\xa2\xef\x2e\x04\x80\x11\x76\xf1\xb5\x8b\x13\x93\xff\x99" "\xfc\xd7\xe4\xa7\x93\xbf\x9f\x7c\x30\x79\xe7\xc2\x4f\xcf\xcf\x9f\x7f\x75" "\x22\xe3\xff\x1c\xfb\xfb\xb9\xbf\x36\x9e\x34\x7e\x54\xbc\x96\x4f\xf3\xf1" "\xee\xf3\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xd5\xad\x7d\xf8\xd1\xc3\xc5\x56\x6b" "\x69\xf5\xe4\x99\x8f\xd3\xdb\x72\xa7\x71\x84\x5a\x9b\xa7\xd1\xe9\x68\x64" "\x8a\x24\x23\x30\x0c\x19\x99\x53\xcb\x0c\x7b\x66\x02\xbe\x6e\x37\xd7\x1f" "\xbd\x7f\x73\xed\xc3\x8f\x7e\xb8\xfc\x68\xf1\xdd\xa5\x77\x97\x56\x9a\xcd" "\xd9\x5b\x73\xf3\xb7\xe6\xe7\x6e\xdd\xbc\xbf\xdc\x5a\x9a\xe9\x7c\x0e\x7b" "\x98\xc0\xd7\x60\xf7\x4b\x7f\xd8\x23\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x8e\xea\x59\xfc\x3b\xc1\xb0\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\x38\xdb\x16\xde\xce" "\xf8\xd3\x14\x99\x9d\xb9\x31\x53\xae\x6f\x6f\x35\x5b\xe5\xd2\xcd\xef\xee" "\x39\x96\xa4\x91\xa4\xf8\x75\x52\x7c\x96\xdc\x4e\x67\xc9\x54\x5f\x73\xc5" "\x97\xf5\xf3\xce\x27\x6f\xce\x7f\x3e\xfb\xe4\xf1\x6e\x5b\x63\xdd\xfd\x1b" "\x83\xea\xd5\x36\xab\xcf\xf3\x83\x8a\xab\x5d\xa6\x93\x9c\xab\xd3\x13\xd8" "\xd3\xde\xdd\x13\xb7\x57\xf4\x8e\xb0\x0c\xd8\xb5\x6e\xe0\x60\xd8\xfe\x1f" "\x00\x00\xff\xff\xbb\x2d\x13\x1e", 1556); syz_mount_image(/*fs=*/0x20000600, /*dir=*/0x20000040, /*flags=*/0, /*opts=*/0x20000080, /*chdir=*/0, /*size=*/0x614, /*img=*/0x20000c80); memcpy((void*)0x20000000, "./file0\000", 8); syscall(__NR_chdir, /*dir=*/0x20000000ul); memcpy((void*)0x20000140, "./file0\000", 8); syscall(__NR_chdir, /*dir=*/0x20000140ul); memcpy((void*)0x20000000, "./file0\000", 8); syscall(__NR_creat, /*file=*/0x20000000ul, /*mode=S_IROTH|S_IXGRP|S_IRUSR*/ 0x10cul); return 0; }